A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/cpg__search__tool_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/packages/pkg_sequence/cpg_search_tool.cpp Source File

66 #include <wx/stattext.h> 67 #include <wx/choice.h> 68 #include <wx/srchctrl.h> 71 #define ID_COMBOBOX 10003 73 #define ID_COMBOBOX_UPDATE 10111 165 

*str = NStr::IntToString(m_ObjectList->GetInteger(col+2, row),

171 

*str = m_ObjectList->GetString(col+2, row);

177

int CCpgSearchColumnHandler::GetColumnsCountStatic()

179

return sizeof(s_Columns) / sizeof(string);

196  static string

name(

"CpG Islands Search"

);

224  return

sl_ctx !=

NULL

;

242  return "search_tool::cpg_search_tool"

;

247  return "Datamining Tool - CpG Islands search"

;

255  const string

& xSizeOfSlidingWindow,

256  const string

& xMinLenOfIsland,

257  const string

& xMinGC,

258  const string

& xMinPercentage,

259  const string

& xAdjMergeThreshold)

261

m_SizeOfSlidingWindow(xSizeOfSlidingWindow),

262

m_MinLenOfIsland(xMinLenOfIsland),

264

m_MinPercentage(xMinPercentage),

265

m_AdjMergeThreshold(xAdjMergeThreshold)

273

s.append(

" SizeOfSlidingWindow="

);

275

s.append(

" MinLenOfIsland="

);

277

s.append(

" MinGC="

);

279

s.append(

" MinPercentage="

);

281

s.append(

" AdjMergeThreshold="

);

295

m_SizeOfSlidingWindowCtl(

NULL

),

296

m_MinLenOfIslandCtl(

NULL

),

298

m_MinPercentageCtl(

NULL

),

299

m_AdjMergeThresholdCtl(

NULL

)

357

wxBoxSizer * vSz =

new

wxBoxSizer(wxVERTICAL);

360

wxFlexGridSizer * sz =

new

wxFlexGridSizer(3, 4, 0, 0);

361

sz->AddGrowableCol(1);

362

sz->AddGrowableCol(3);

364  m_Sizer

->Add(sz, 0, wxGROW|wxALL, 0);

367

sz->Add(

new

wxStaticText( parent, wxID_STATIC,

wxT

(

"Search Context:"

),

368

wxDefaultPosition, wxDefaultSize, 0 ),

369

0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

372

wxDefaultPosition, wxDefaultSize,

373

0, (

const

wxString*)

NULL

);

375

sz->Add(

m_DbCombo

,1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

378

sz->Add(

new

wxStaticText( parent, wxID_STATIC,

379  wxT

(

"Size of sliding window:"

),

380

wxDefaultPosition, wxDefaultSize, 0 ),

381

0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

383  new

wxTextCtrl(parent, wxID_STATIC,

wxT

(

"100"

),

384

wxDefaultPosition, wxDefaultSize, 0 );

391

wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

394

sz->Add(

new

wxStaticText( parent, wxID_STATIC,

395  wxT

(

"Minimum length of island:"

),

396

wxDefaultPosition, wxDefaultSize, 0 ),

397

0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

399

wxDefaultPosition, wxDefaultSize,

407

wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

410

sz->Add(

new

wxStaticText( parent, wxID_STATIC,

411  wxT

(

"Minimum /%G + /%C:"

),

412

wxDefaultPosition, wxDefaultSize, 0 ),

413

0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

414  m_MinGCCtl

=

new

wxTextCtrl(parent, wxID_STATIC,

wxT

(

"100"

),

415

wxDefaultPosition, wxDefaultSize, 0 );

421

sz->Add(

m_MinGCCtl

, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

424

sz->Add(

new

wxStaticText( parent, wxID_STATIC,

425  wxT

(

"Minimum CpG percentage:"

),

426

wxDefaultPosition, wxDefaultSize, 0 ),

427

0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

429

wxDefaultPosition, wxDefaultSize,

439

sz->Add(

new

wxStaticText( parent, wxID_STATIC,

440  wxT

(

"Adjacency merge threshold:"

),

441

wxDefaultPosition, wxDefaultSize, 0 ),

442

0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

444  new

wxTextCtrl(parent, wxID_STATIC,

wxT

(

""

),

445

wxDefaultPosition, wxDefaultSize, 0 );

452

wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

507

sc_locs.push_back(sl);

576  string

title(

"CpG islands on "

);

587

<<

", min observed/expected CpG: " 596

seqInt.

SetTo

(

i

->m_Stop);

603  size_t size

= (

i

->m_Stop -

i

->m_Start);

604  size_t

pct_gc = (

i

->m_C +

i

->m_G) * 100 /

size

;

608  label

=

"CpG island: "

+ gc_str;

613

feats.push_back(feat);

623  static_cast<int>

(pct_gc),

656  const string

& loc_name,

661  const string

& ctx_name)

663  static const int

kUpdateIncrement = 250;

675  if

(

count

>= kUpdateIncrement) {

User-defined methods of the data storage class.

CAppJobError Default implementation for IAppJobError - encapsulates a text error message.

list< SCpGIsland > TIsles

void MergeIslesWithin(unsigned int range)

const TIsles & GetIsles(void) const

CObjectList * GetObjectList()

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

CObjectList Data structure representing a list of CObjects with associated Scopes and other optional ...

int AddRow(CObject *obj, objects::CScope *scope)

void AddObjectLabel(const string &name, CLabel::ELabelType type)

void SetString(int col, int row, const string &val)

void SetInteger(int col, int row, int val)

void Append(const CObjectList &list)

adds rows from the given list, the lists must have identical sets of columns

int AddColumn(EColumnType type, const string &name, int col=-1)

class CRegistryReadView provides a nested hierarchical view at a particular key.

string GetString(const string &key, const string &default_val=kEmptyStr) const

void Set(const string &key, int val)

access a named key at this level, with no recursion

virtual void UpdateContexts()

updates m_ContextCombo

void UpdateContextCombo(wxChoice *combo)

CRef< CDMSearchResult > m_TempResult

holds temporary results, guarded by Mutex

CMutex m_Mutex

synchronizes access to the Job members

CRef< CAppJobError > m_Error

CObjectList m_AccList

accumulates found objects before they are transferred to m_ResultList

TScopedLocs & GetScopedLocs()

vector< SScopedLoc > TScopedLocs

void SetNameDesc(const string &name)

void SetCreateDate(const CTime &dt)

void AddComment(const string &comment)

namespace ncbi::objects::

IDMSearchQuery - abstract data mining query.

IDataMiningContext IDataMiningContext represents an abstract context for a Search.

virtual string GetDMContextName()=0

returns Name of the context to be used in UI

virtual CRef< objects::CScope > GetSearchScope()=0

virtual CRef< objects::CSeq_loc > GetSearchLoc()=0

unsigned int TSeqPos

Type for sequence locations and lengths.

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

static CRef< objects::CSeq_loc > RemapChildToParent(const objects::CSeq_loc &parent, const objects::CSeq_loc &child, objects::CScope *scope=NULL)

remap a location to a parent location.

string m_SizeOfSlidingWindow

virtual void x_LoadSettings(const CRegistryReadView &view)

CCpgSearchForm(CCpgSearchTool &tool)

CCpgSearchForm.

string GetSizeOfSlidingWindow()

string m_AdjMergeThreshold

CCpgSearchJob(CCpgSearchQuery &query)

CCpgSearchJob.

string GetMinPercentage()

virtual CIRef< IDMSearchQuery > ConstructQuery()

wxTextCtrl * m_SizeOfSlidingWindowCtl

vector< ISeqLocSearchContext * > m_SeqLocContexts

virtual string GetExtensionIdentifier() const

returns the unique human-readable identifier for the extension the id should use lowercase letters se...

CCpgSearchTool()

CCpgSearchTool.

virtual string GetName() const

returns unique name of the method that is used in UI to identify it

virtual string ToString() const

Prepare a string representation of a query (for logging and debugging)

string m_SizeOfSlidingWindow

CRef< CCpgSearchQuery > m_Query

wxTextCtrl * m_MinLenOfIslandCtl

virtual void x_SaveSettings(CRegistryWriteView view) const

virtual CIRef< IDMSearchForm > CreateSearchForm()

factory method for creating a form representing the tool

string m_AdjMergeThreshold

wxTextCtrl * m_MinPercentageCtl

virtual void UpdateContexts()

updates m_ContextCombo

virtual CObjectListTableModel * x_GetNewOLTModel() const

factory method creating new column handler for CObjectListWidget

CCpgSearchQuery::TScopedLocs TScopedLocs

virtual IAppJob::EJobState x_DoSearch()

performs searching, assuming that params are correct; Implement in derived classes

void x_AddToResults(CObject &obj, objects::CScope &scope, const string &loc_name, int start, int stop, int length, int gc, const string &ctx_name)

string GetMinLenOfIsland()

CRef< CCpgSearchTool > m_Tool

virtual IDMSearchTool * x_GetTool()

CCpgSearchQuery(TScopedLocs &locs, const string &xSizeOfSlidingWindow, const string &xMinLenOfIsland, const string &xMinGC, const string &xMinPercentage, const string &xAdjMergeThreshold)

CCpgSearchQuery.

virtual void x_SetupColumns(CObjectList &obj_list)

add custom columns if needed

virtual bool x_ValidateParams()

returns true if Job params are correct, implement in derived classes

wxTextCtrl * m_AdjMergeThresholdCtl

virtual CRef< CSearchJobBase > x_CreateJob(IDMSearchQuery &query)

implementing CSearchToolBase pure virtual function

virtual string GetExtensionLabel() const

returns a displayable label for this extension ( please capitalize the key words - "My Extension" )

CCpgSearchQuery::TScopedLocs TScopedLocs

string GetAdjMergeThreshold()

virtual IUITool * Clone() const

virtual bool IsCompatible(IDataMiningContext *context)

retuns true if the tool is compatible with the provided Search Context

virtual string GetDescription() const

returns a detailed description of the method that is used in UI

virtual wxSizer * GetWidget(wxWindow *parent)

return a widget associated with the form; the form controls the lifetime of the widget (do not delete...

static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)

EJobState

Job states (describe FSM)

TRange GetTotalRange(void) const

const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)

If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...

CBioseq_Handle GetBioseqHandle(const CSeq_id &id)

Get bioseq handle by seq-id.

@ eCoding_Iupac

Set coding to printable coding (Iupacna or Iupacaa)

void GetSeqData(TSeqPos start, TSeqPos stop, string &buffer) const

Fill the buffer string with the sequence data for the interval [start, stop).

TObjectType * GetPointer(void) THROWS_NONE

Get pointer,.

void Reset(void)

Reset reference object.

bool IsNull(void) const THROWS_NONE

Check if pointer is null – same effect as Empty().

position_type GetLength(void) const

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static string SizetToString(size_t value, TNumToStringFlags flags=0, int base=10)

Convert size_t to string.

static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)

Convert string to int.

static string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

@ fWithCommas

Use commas as thousands separator.

@ eCurrent

Use current time. See also CCurrentTime.

static const char label[]

TTo GetTo(void) const

Get the To member data.

TFrom GetFrom(void) const

Get the From member data.

void SetLocation(TLocation &value)

Assign a value to Location data member.

const TLocation & GetLocation(void) const

Get the Location member data.

void SetData(TData &value)

Assign a value to Data data member.

void SetTo(TTo value)

Assign a value to To data member.

void SetId(TId &value)

Assign a value to Id data member.

void SetFrom(TFrom value)

Assign a value to From data member.

void SetData(TData &value)

Assign a value to Data data member.

list< CRef< CSeq_feat > > TFtable

const struct ncbi::grid::netcache::search::fields::SIZE size

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...

Process information in the NCBI Registry, including working with configuration files.

#define row(bind, expected)

CRef< objects::CScope > m_Scope

CRef< objects::CSeq_loc > m_Loc

static CS_CONTEXT * context

wxString ToWxString(const string &s)

string ToStdString(const wxString &s)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4