1 #ifndef GUI_OBJUTILS___MACRO_FN_FEATURE__HPP
2 #define GUI_OBJUTILS___MACRO_FN_FEATURE__HPP
89 virtual void TheFunction();
90 static string s_FixProteinNameFormat(
const string& protein,
const vector<string>& taxnames);
93 virtual bool x_ValidArguments()
const;
94 void x_FixProteinNames(objects::CProt_ref&
prot,
const vector<string>& taxnames);
128 static bool s_SetBothEndsPartial(objects::CSeq_feat& feat, objects::CScope& scope,
const string& descr,
bool extend =
false);
141 static bool s_RemoveBothPartials(objects::CSeq_feat& feat, objects::CScope& scope,
const string& descr);
154 static bool s_Set5EndPartial(objects::CSeq_feat& feat, objects::CScope& scope,
const string& descr,
bool extend5 =
false);
167 static bool s_Set3EndPartial(objects::CSeq_feat& feat, objects::CScope& scope,
const string& descr,
bool extend3 =
false);
180 static bool s_Clear5EndPartial(objects::CSeq_feat& feat, objects::CScope& scope,
const string& descr);
193 static bool s_Clear3EndPartial(objects::CSeq_feat& feat, objects::CScope& scope,
const string& descr);
207 static bool s_ConvertLocationStrand(objects::CSeq_feat& feat, objects::CScope& scope,
const string& str_from,
const string& str_to);
220 static bool s_ConvertLocationType(objects::CSeq_feat& feat, objects::CScope& scope,
const string& descr);
278 static bool s_SetCDSFrame(objects::CSeq_feat& cds, ECdsFrame frame_type, objects::CScope& scope);
279 static objects::CCdregion::TFrame s_FindMatchingFrame(
const objects::CSeq_feat& cds, objects::CScope& scope);
280 static ECdsFrame s_GetFrameFromName(
const string& name);
327 static bool s_GeneXrefMatchesNecessary(
const objects::CGene_ref& gene,
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
Base class for any user function that performs editing operations on ASN.1 data.
Include a standard set of the NCBI C++ Toolkit most basic headers.
static const char * str(char *buf, int n)
unsigned int TSeqPos
Type for sequence locations and lengths.
DECLARE_FUNC_CLASS_WITH_FNCNAME(CMacroFunction_SetPubAuthorMI)
CMacroFunction_ApplyCDS(EScopeEnum func_scope)
CMacroFunction_EditFeatLocation(EScopeEnum func_scope)
virtual bool x_ValidArguments() const
Tests the number and the type of function arguments.
virtual ~CMacroFunction_EditFeatLocation()
CRef< objects::CScope > m_Scope
CMacroFunction_MakeLocation(EScopeEnum func_scope)
CMacroFunction_Clear5Partial(EScopeEnum func_scope)
static CTempString GetFuncName()
objects::CSeqFeatData::ESubtype TFeatSubtype
CMacroFunction_MakeWholeSeqInterval(EScopeEnum func_scope)
static CTempString GetFuncName()
CConstRef< objects::CSeq_feat > m_Origfeat
static CTempString GetFuncName()
CMacroFunction_MakeInterval(EScopeEnum func_scope)
static CTempString GetFuncName()
virtual bool x_ValidArguments() const
Tests the number and the type of function arguments.
void x_RetranslateCDS(CNcbiOstrstream &log)
CMacroFunction_ApplyFeature(EScopeEnum func_scope)
static CTempString GetFuncName()
virtual void TheFunction()
Function implementation.
static CTempString GetFuncName()
virtual ~CMacroFunction_ApplyCDSFrame()
static CTempString GetFuncName()
static CTempString GetFuncName()
bool x_SetCurrentBioseq()
class CMacroFunction_MakeLocation Generates different type of seq-loc objects
virtual void TheFunction()
Function implementation.
static CTempString GetFuncName()
CMacroFunction_RemoveGeneXref(EScopeEnum func_scope)
CMacroFunction_RemoveAllFeatures(EScopeEnum func_scope)
CRef< objects::CSeq_feat > m_Seqfeat
~CMacroFunction_ConvertCDS()
CMacroFunction_ApplyOtherFeature(EScopeEnum func_scope)
CMacroFunction_ConvertLocType(EScopeEnum func_scope)
static CTempString GetFuncName()
virtual ~CMacroFunction_ReplaceStopWithSelenocysteine()
CMacroFunction_ReplaceStopWithSelenocysteine(EScopeEnum func_scope)
CMacroFunction_Extend5Feature(EScopeEnum func_scope)
CMacroFunction_ConvertFeature(EScopeEnum func_scope)
CMacroFunction_MakePoint(EScopeEnum func_scope)
bool x_ShouldAddRedundant(size_t index)
class CMacroFunction_ApplyFeature Generates different types of apply feature commands
objects::CBioseq_Handle m_Bsh
virtual ~CMacroFunction_FixProteinFormat()
static CTempString GetFuncName()
CMacroFunction_FixProteinFormat(EScopeEnum func_scope)
void x_RetranslateCDSAdjustGene(const string &descr)
bool x_SetLocation(size_t index)
CMacroFunction_SetBothPartials(EScopeEnum func_scope)
virtual ~CMacroFunction_ConvertFeature()
static CTempString GetFuncName()
CMacroFunction_Set3Partial(EScopeEnum func_scope)
static CTempString GetFuncName()
CMacroFunction_ConvertLocStrand(EScopeEnum func_scope)
CMacroFunction_ApplyCDSFrame(EScopeEnum func_scope)
static CTempString GetFuncName()
CMacroFunction_ApplyRNA(EScopeEnum func_scope)
static CTempString GetFuncName()
static CTempString GetFuncName()
static CTempString GetFuncName()
CMacroFunction_RemoveBothPartials(EScopeEnum func_scope)
virtual ~CMacroFunction_MakeLocation()
virtual void TheFunction()
Function implementation.
objects::ENa_strand x_GetStrand(const string &str)
CRef< objects::CSeq_loc > m_Location
map< objects::CBioseq_Handle, set< objects::CSeq_feat_Handle > > m_ProductToCds
CMacroFunction_ConvertCDS(EScopeEnum func_scope)
static CTempString GetFuncName()
CMacroFunction_Clear3Partial(EScopeEnum func_scope)
CRef< objects::CSeq_feat > m_NewFeat
static CTempString GetFuncName()
bool x_CheckInitFeature()
static CTempString GetFuncName()
void x_SetAdditionalFields(size_t index)
vector< string > m_OrigNames
CMacroFunction_Set5Partial(EScopeEnum func_scope)
CMacroFunction_ApplyGene(EScopeEnum func_scope)
CMacroFunction_Extend3Feature(EScopeEnum func_scope)
static CTempString GetFuncName()
static CTempString GetFuncName()
static CTempString GetFuncName()
virtual bool x_ValidArguments() const
Tests the number and the type of function arguments.
void x_HandleNegativeCoordinates(size_t index)
virtual ~CMacroFunction_RemoveGeneXref()
objects::CBioseq_Handle m_Bsh
static CTempString GetFuncName()
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_GUIOBJUTILS_EXPORT
EGene_xref_suppression_type
Access to EGene_xref_suppression_type's attributes (values, names) as defined in spec.
EGene_xref_necessary_type
Access to EGene_xref_necessary_type's attributes (values, names) as defined in spec.
ENa_strand
strand of nucleic acid