name(
"VCF Search");
102 boolisCompatible(
false);
106isCompatible = vcf_data !=
NULL;
128 return "search_tool::vcf_search_tool";
133 return "Datamining Tool - VCF search";
140: m_VcfContexts(VcfContexts),
193wxFlexGridSizer * sz =
newwxFlexGridSizer(1, 4, 0, 0);
194sz->AddGrowableCol(3);
197 m_Sizer->Add(
newwxStaticText( parent, wxID_STATIC,
wxT(
"Search Context:"), wxDefaultPosition, wxDefaultSize, 0 ),
1980, wxALIGN_CENTER_VERTICAL|wxALL, 5);
201wxDefaultPosition, wxDefaultSize,
2020, (
constwxString*)
NULL);
206 m_Sizer->Add(
newwxStaticText( parent, wxID_STATIC,
wxT(
"Search Expression:"), wxDefaultPosition, wxDefaultSize, 0 ),
2070, wxALIGN_CENTER_VERTICAL|wxALL, 5);
210 m_Sizer->Add(
m_Text,1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
225vector<ISeqLocSearchContext*> VcfContexts;
233VcfContexts.push_back(seq_ctx);
280 for(
autovcf_context: vcf_contexts) {
288NonAsnData->
DoSearch(vcf_context->GetSearchLoc()->GetId(), ids,
results);
CAppJobError Default implementation for IAppJobError - encapsulates a text error message.
CObjectList * GetObjectList()
CObjectList Data structure representing a list of CObjects with associated Scopes and other optional ...
int AddRow(CObject *obj, objects::CScope *scope)
virtual void UpdateContexts()
updates m_ContextCombo
void UpdateContextCombo(wxChoice *combo)
CRef< CDMSearchResult > m_TempResult
holds temporary results, guarded by Mutex
string m_Descr
human-readable description of the Job
virtual void x_SetupColumns(CObjectList &obj_list)
add custom columns if needed
CMutex m_Mutex
synchronizes access to the Job members
CRef< CAppJobError > m_Error
IDMSearchQuery - abstract data mining query.
IDataMiningContext IDataMiningContext represents an abstract context for a Search.
virtual INonAsnTrackData * GetNonAsnData()
virtual void DoSearch(const objects::CSeq_id *seq_id, const string &sSearchTerm, list< CRef< CObject >> &results) const =0
virtual CIRef< IDMSearchQuery > ConstructQuery()
CVcfSearchForm(CVcfSearchTool &tool)
CVcfSearchForm.
CRef< CVcfSearchQuery > m_Query
virtual void x_CreateWidgets()
virtual void x_SetupColumns(CObjectList &obj_list)
add custom columns if needed
virtual CRef< CSearchJobBase > x_CreateJob(IDMSearchQuery &query)
implementing CSearchToolBase pure virtual function
CRef< CVcfSearchTool > m_Tool
virtual wxSizer * GetWidget(wxWindow *parent)
return a widget associated with the form; the form controls the lifetime of the widget (do not delete...
virtual string GetDescription() const
returns a detailed description of the method that is used in UI
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual IDMSearchTool * x_GetTool()
CVcfSearchJob(CVcfSearchQuery &query)
CVcfSearchJob.
virtual string GetName() const
returns unique name of the method that is used in UI to identify it
CVcfSearchQuery(vector< ISeqLocSearchContext * > VcfContexts, const string &ids)
CVcfSearchQuery.
virtual CIRef< IDMSearchForm > CreateSearchForm()
factory method for creating a form representing the tool
virtual EJobState x_DoSearch()
performs searching, assuming that params are correct; Implement in derived classes
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual bool IsCompatible(IDataMiningContext *context)
retuns true if the tool is compatible with the provided Search Context
const vector< ISeqLocSearchContext * > & GetVcfContexts() const
virtual bool x_ValidateParams()
returns true if Job params are correct, implement in derived classes
virtual IUITool * Clone() const
CVcfSearchTool()
IDMSearchTool.
virtual void UpdateContexts()
updates m_ContextCombo
virtual bool IsCanceled() const override
EJobState
Job states (describe FSM)
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void Start(void)
Start the timer.
Defines: CTimeFormat - storage class for time format.
static CS_CONTEXT * context
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