45 "Remove redundant elements from alignments",
46 "Remove redundant elements from alignments",
47 "https://www.ncbi.nlm.nih.gov/tools/gbench/",
48 "Alignment Creation"),
55 return "advanced_cleanup_tool";
61 return "Advanced Cleanup Tool";
153 m_Descr =
"Advanced Cleanup Job";
158 list< CRef< CSeq_align > > input_aligns, cleaned_aligns;
166 input_aligns.emplace_back(
const_cast<CSeq_align*
>(seq_align));
170 if (input_aligns.empty()) {
171 LOG_POST(
Error <<
"Advanced Cleanup. Input alignments list is empty");
180 unique_ptr<CArgs> args(arg_desc->CreateArgs(argv));
216 if (cleaned_aligns.empty())
220 auto& seqannot_align = annot->
SetData().SetAlign();
221 for (
auto&
a : cleaned_aligns)
222 seqannot_align.push_back(
a);
225 string name(
"Cleaned Alignment: ");
234 pitem->
SetItem().SetAnnot(*annot);
#define SYMBOL_CADVANCEDCLEANUPPARAMSPANEL_STYLE
static void SetupArgDescriptions(CArgDescriptions &arg_desc)
virtual void x_CreateProjectItems()
override this function in derived classes and populate m_Items.
CAdvancedCleanupParams m_Params
CAdvancedCleanupJob(const CAdvancedCleanupParams ¶ms)
virtual void SetRegistryPath(const string &path)
CAlgoToolManagerParamsPanel.
void SetObjects(TConstScopedObjects *objects)
CAdvancedCleanupParams & GetData()
void SetData(const CAdvancedCleanupParams &data)
virtual void LoadSettings()
bool Create(wxWindow *parent, wxWindowID id=ID_CADVANCEDCLEANUPPARAMSPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
TConstScopedObjects GetObjects() const
int GetSplignDirection() const
TConstScopedObjects m_Objects
bool GetInvokeBest() const
CDataLoadingAppJob - a base class for Jobs loading data into projects.
void AddProjectItem(objects::CProjectItem &item)
void SetNameDesc(const string &name)
void SetCreateDate(const CTime &dt)
void SetTitleDesc(const string &title)
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
static void cleanup(void)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual bool x_CreateParamsPanelIfNeeded()
returns / creates Parameters panel, override in derived classes see cpp file for example
virtual IRegSettings * x_GetParamsAsRegSetting()
return a pointer to Parameters object as IRegSettings interface
CAdvancedCleanupParamsPanel * m_Panel
virtual void CleanUI()
override this function in a derived class and clean extra members
TConstScopedObjects m_Alignments
virtual bool x_ValidateParams()
validates user input in Parameters panel, report errors if any
virtual CAlgoToolManagerParamsPanel * x_GetParamsPanel()
returns a pointer to the parameters panel, override in derived classes
virtual void x_SelectCompatibleInputObjects()
virtual void InitUI()
override this function in a derived class and initialize extra members
CAdvancedCleanupParams m_Params
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual wxPanel * GetMaxPanel()
Return the panel that occupies max size on display, to calculate dialog window size.
virtual CDataLoadingAppJob * x_CreateLoadingJob()
factory method for creating the job that executes the tool algorithm override in derived classes
CAdvancedCleanupTool()
CAdvancedCleanupTool.
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
string m_Descr
mutex to sync our internals
vector< SConstScopedObject > TConstScopedObjects
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
@ eCurrent
Use current time. See also CCurrentTime.
void SetLabel(const TLabel &value)
Assign a value to Label data member.
void SetItem(TItem &value)
Assign a value to Item data member.
void SetData(TData &value)
Assign a value to Data data member.