*str = NStr::IntToString(m_ObjectList->GetInteger(col+2, row),
171*str = m_ObjectList->GetString(col+2, row);
177int CCpgSearchColumnHandler::GetColumnsCountStatic()
179return sizeof(s_Columns) / sizeof(string);
196 static stringname(
"CpG Islands Search");
224 returnsl_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)
261m_SizeOfSlidingWindow(xSizeOfSlidingWindow),
262m_MinLenOfIsland(xMinLenOfIsland),
264m_MinPercentage(xMinPercentage),
265m_AdjMergeThreshold(xAdjMergeThreshold)
273s.append(
" SizeOfSlidingWindow=");
275s.append(
" MinLenOfIsland=");
277s.append(
" MinGC=");
279s.append(
" MinPercentage=");
281s.append(
" AdjMergeThreshold=");
295m_SizeOfSlidingWindowCtl(
NULL),
296m_MinLenOfIslandCtl(
NULL),
298m_MinPercentageCtl(
NULL),
299m_AdjMergeThresholdCtl(
NULL)
357wxBoxSizer * vSz =
newwxBoxSizer(wxVERTICAL);
360wxFlexGridSizer * sz =
newwxFlexGridSizer(3, 4, 0, 0);
361sz->AddGrowableCol(1);
362sz->AddGrowableCol(3);
364 m_Sizer->Add(sz, 0, wxGROW|wxALL, 0);
367sz->Add(
newwxStaticText( parent, wxID_STATIC,
wxT(
"Search Context:"),
368wxDefaultPosition, wxDefaultSize, 0 ),
3690, wxALIGN_CENTER_VERTICAL|wxALL, 5);
372wxDefaultPosition, wxDefaultSize,
3730, (
constwxString*)
NULL);
375sz->Add(
m_DbCombo,1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
378sz->Add(
newwxStaticText( parent, wxID_STATIC,
379 wxT(
"Size of sliding window:"),
380wxDefaultPosition, wxDefaultSize, 0 ),
3810, wxALIGN_CENTER_VERTICAL|wxALL, 5);
383 newwxTextCtrl(parent, wxID_STATIC,
wxT(
"100"),
384wxDefaultPosition, wxDefaultSize, 0 );
391wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
394sz->Add(
newwxStaticText( parent, wxID_STATIC,
395 wxT(
"Minimum length of island:"),
396wxDefaultPosition, wxDefaultSize, 0 ),
3970, wxALIGN_CENTER_VERTICAL|wxALL, 5);
399wxDefaultPosition, wxDefaultSize,
407wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
410sz->Add(
newwxStaticText( parent, wxID_STATIC,
411 wxT(
"Minimum /%G + /%C:"),
412wxDefaultPosition, wxDefaultSize, 0 ),
4130, wxALIGN_CENTER_VERTICAL|wxALL, 5);
414 m_MinGCCtl=
newwxTextCtrl(parent, wxID_STATIC,
wxT(
"100"),
415wxDefaultPosition, wxDefaultSize, 0 );
421sz->Add(
m_MinGCCtl, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
424sz->Add(
newwxStaticText( parent, wxID_STATIC,
425 wxT(
"Minimum CpG percentage:"),
426wxDefaultPosition, wxDefaultSize, 0 ),
4270, wxALIGN_CENTER_VERTICAL|wxALL, 5);
429wxDefaultPosition, wxDefaultSize,
439sz->Add(
newwxStaticText( parent, wxID_STATIC,
440 wxT(
"Adjacency merge threshold:"),
441wxDefaultPosition, wxDefaultSize, 0 ),
4420, wxALIGN_CENTER_VERTICAL|wxALL, 5);
444 newwxTextCtrl(parent, wxID_STATIC,
wxT(
""),
445wxDefaultPosition, wxDefaultSize, 0 );
452wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
507sc_locs.push_back(sl);
576 stringtitle(
"CpG islands on ");
587<<
", min observed/expected CpG: " 596seqInt.
SetTo(
i->m_Stop);
603 size_t size= (
i->m_Stop -
i->m_Start);
604 size_tpct_gc = (
i->m_C +
i->m_G) * 100 /
size;
608 label=
"CpG island: "+ gc_str;
613feats.push_back(feat);
623 static_cast<int>(pct_gc),
656 const string& loc_name,
661 const string& ctx_name)
663 static const intkUpdateIncrement = 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