28 #ifndef _FEATEDIT_UTIL_H_
29 #define _FEATEDIT_UTIL_H_
56 static const string kSatelliteTypes[] = {
"satellite",
"microsatellite",
"minisatellite" };
71 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat ) {
return ""; }
73 virtual bool RelaxedMatch(
const objects::CSeq_feat & f1,
const objects::CSeq_feat &f2)
const {
return true; };
74 virtual vector<string>
IsValid(
const vector<string>& values) { vector<string> x;
return x; };
75 virtual vector<CConstRef<CObject> >
GetObjects(objects::CBioseq_Handle bsh);
76 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
81 virtual vector <string>
GetVals(
const objects::CSeq_feat& feat) {vector <string> x;
return x;};
99 objects::CSeqFeatData::ESubtype subtype = objects::CSeqFeatData::eSubtype_any);
108 objects::CSeq_feat & in_out_feat );
110 const objects::CSeq_feat & in_out_feat ) ;
121 objects::CSeq_feat & in_out_feat );
123 const objects::CSeq_feat & in_out_feat ) ;
134 objects::CSeq_feat & in_out_feat );
136 const objects::CSeq_feat & in_out_feat ) ;
137 virtual string GetLabel()
const {
return "Comment"; }
147 objects::CSeq_feat & in_out_feat );
149 const objects::CSeq_feat & in_out_feat ) ;
150 virtual string GetLabel()
const {
return "Exception"; }
161 objects::CSeq_feat & in_out_feat );
163 const objects::CSeq_feat & in_out_feat );
175 virtual vector<string>
IsValid(
const vector<string>& values);
176 virtual string GetLabel()
const {
return "rpt_unit_range\nExample: 1..10"; }
187 virtual vector<string>
IsValid(
const vector<string>& values);
196 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat);
223 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat );
225 virtual bool RelaxedMatch(
const objects::CSeq_feat & f1,
const objects::CSeq_feat &f2)
const;
227 virtual vector<string>
IsValid(
const vector<string>& values);
242 objects::CSeq_feat & in_out_feat );
244 const objects::CSeq_feat & in_out_feat );
245 virtual string GetLabel()
const {
return "product"; }
246 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
258 objects::CSeq_feat & in_out_feat );
260 const objects::CSeq_feat & in_out_feat );
261 virtual string GetLabel()
const {
return "codon_start"; }
262 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
273 objects::CSeq_feat & in_out_feat);
275 const objects::CSeq_feat & in_out_feat);
276 virtual string GetLabel()
const {
return "transl_table"; }
287 objects::CSeq_feat & in_out_feat );
289 const objects::CSeq_feat & in_out_feat );
290 virtual string GetLabel()
const {
return "description"; }
301 objects::CSeq_feat & in_out_feat );
303 const objects::CSeq_feat & in_out_feat );
304 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
330 objects::CSeq_feat & in_out_feat );
332 const objects::CSeq_feat & in_out_feat );
355 objects::CSeq_feat & in_out_feat );
357 const objects::CSeq_feat & in_out_feat );
364 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat );
372 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat );
379 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat );
385 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat );
392 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat );
399 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat );
406 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat );
413 virtual string GetFromFeat(
const objects::CSeq_feat & in_out_feat );
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.
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetLabel() const
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetLabel() const
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetLabel() const
static CRef< CFeatureSeqTableColumnBase > Create(const string &sTitle, objects::CSeqFeatData::ESubtype subtype=objects::CSeqFeatData::eSubtype_any)
virtual vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)
virtual vector< string > GetVals(const objects::CSeq_feat &feat)
objects::CSeqFeatData::ESubtype m_Subtype
virtual bool AllowMultipleValues()
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
void SetMajorType(objects::CSeqFeatData::E_Choice major_type)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
objects::CSeqFeatData::E_Choice GetMajorType()
virtual vector< CRef< objects::edit::CApplyObject > > GetRelatedGeneApplyObjects(objects::CBioseq_Handle bsh)
void SetScope(CRef< CScope > scope)
objects::CSeqFeatData::E_Choice m_MajorType
void SetSubtype(objects::CSeqFeatData::ESubtype subtype)
virtual vector< string > IsValid(const vector< string > &values)
virtual vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetLabel() const
objects::CSeqFeatData::ESubtype GetSubtype()
CFeatureSeqTableColumnBase()
virtual bool RelaxedMatch(const objects::CSeq_feat &f1, const objects::CSeq_feat &f2) const
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
CGbQualColumn(string qual)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual string GetLabel() const
@Gb_qual.hpp User-defined methods of the data storage class.
static bool IsGeneRefField(string qual)
static EFieldType x_GetFieldTypeFromString(string qual)
CGeneRefColumn(string qual)
virtual vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetLabel() const
virtual bool AllowMultipleValues()
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual string GetLabel() const
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetLabel() const
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
virtual string GetLabel() const
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
static EFieldType x_GetFieldTypeFromString(string qual)
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
static bool IsProtRefField(string qual)
CProtRefColumn(string qual)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
virtual string GetLabel() const
CRptUnitRangeColumn(const vector< size_t > lens)
virtual vector< string > IsValid(const vector< string > &values)
virtual vector< string > IsValid(const vector< string > &values)
string x_GetSatelliteName(const string &field) const
string x_AddSatellitePrefix(const string &value, objects::edit::EExistingText existing_text) const
bool x_AddSatelliteName(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
bool x_AddSatelliteType(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetLabel() const
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
CSatelliteColumn(const string &satellite_field)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
void x_ClearSatelliteSubFields(objects::CSeq_feat &in_out_feat) const
string x_GetSatelliteType(const string &field) const
bool x_IsQualAMatch(const CGb_qual &qual) const
virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)
virtual string GetLabel() const
virtual bool RelaxedMatch(const objects::CSeq_feat &f1, const objects::CSeq_feat &f2) const
virtual vector< string > IsValid(const vector< string > &values)
CSatelliteTypeNameColumn(string satellite_type, bool need_unique=false)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
void SetUniqueness(bool val)
virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)
virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)
Include a standard set of the NCBI C++ Toolkit most basic headers.
CRef< CCmdComposite > ApplyFeatureSeqTableToSeqEntry(CRef< objects::CSeq_table > table, objects::CSeq_entry_Handle entry)
int FindHighestFeatureId(const objects::CSeq_entry_Handle &entry)
vector< CRef< CFeatureSeqTableColumnBase > > TFeatureSeqTableColumnList
CRef< objects::CSeq_feat > AddRibosomalRNA(const objects::CBioseq_Handle &bsh, string name, int from, int to, bool ispartial5, bool ispartial3)
static const int kNumSatelliteTypes
void SetRnaProductName(objects::CRNA_ref &rna, const string &product, string &remainder, objects::edit::EExistingText existing_text)
CRef< CCmdComposite > CreateControlRegion(objects::CSeq_entry_Handle entry)
const string kPartialStart
static const string kSatelliteTypes[]
void AddColumnsToFeatureTable(const vector< string > &fields, CRef< objects::CSeq_table > table, objects::CSeq_entry_Handle entry)
CRef< CCmdComposite > AddNamedrRna(objects::CSeq_entry_Handle entry, string rna_name, bool ispartial5, bool ispartial3)
CRef< CCmdComposite > CreateMicrosatellite(objects::CSeq_entry_Handle entry)
CRef< objects::CSeq_table > BuildFeatureSeqTableFromSeqEntry(objects::CSeq_entry_Handle entry, const SAnnotSelector &sel)
const string kPartialStop
CRef< objects::CSeq_feat > AddMiscRNA(const objects::CBioseq_Handle &bsh, string name, int from, int to, bool ispartial5, bool ispartial3)
CRef< objects::CSeq_loc > CreateFeatLocation(const objects::CBioseq_Handle &bsh, int from, int to, bool ispartial5, bool ispartial3)
const string kStopColLabel
const string kStartColLabel
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIPKG_SEQUENCE_EDIT_EXPORT
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
const GenericPointer< typename T::ValueType > T2 value