GetKey(EVocabulary vocab = eVocabulary_full)
const;
134eSubtype_cdregion = 3,
136eSubtype_preprotein = 5,
137eSubtype_mat_peptide_aa = 6,
138eSubtype_sig_peptide_aa = 7,
139eSubtype_transit_peptide_aa = 8,
146eSubtype_snoRNA = 15,
147eSubtype_otherRNA = 16,
151eSubtype_allele = 20,
152eSubtype_attenuator = 21,
153eSubtype_C_region = 22,
154eSubtype_CAAT_signal = 23,
155eSubtype_Imp_CDS = 24,
156eSubtype_conflict = 25,
157eSubtype_D_loop = 26,
158eSubtype_D_segment = 27,
159eSubtype_enhancer = 28,
161eSubtype_EC_number = 30,
162eSubtype_GC_signal = 31,
164eSubtype_intron = 33,
165eSubtype_J_segment = 34,
167eSubtype_mat_peptide = 36,
168eSubtype_misc_binding = 37,
169eSubtype_misc_difference = 38,
170eSubtype_misc_feature = 39,
171eSubtype_misc_recomb = 40,
172eSubtype_misc_RNA = 41,
173eSubtype_misc_signal = 42,
174eSubtype_misc_structure = 43,
175eSubtype_modified_base = 44,
176eSubtype_mutation = 45,
177eSubtype_N_region = 46,
178eSubtype_old_sequence = 47,
179eSubtype_polyA_signal = 48,
180eSubtype_polyA_site = 49,
181eSubtype_precursor_RNA = 50,
182eSubtype_prim_transcript = 51,
183eSubtype_primer_bind = 52,
184eSubtype_promoter = 53,
185eSubtype_protein_bind = 54,
187eSubtype_repeat_region = 56,
188eSubtype_repeat_unit = 57,
189eSubtype_rep_origin = 58,
190eSubtype_S_region = 59,
191eSubtype_satellite = 60,
192eSubtype_sig_peptide = 61,
193eSubtype_source = 62,
194eSubtype_stem_loop = 63,
196eSubtype_TATA_signal = 65,
197eSubtype_terminator = 66,
198eSubtype_transit_peptide = 67,
199eSubtype_unsure = 68,
200eSubtype_V_region = 69,
201eSubtype_V_segment = 70,
202eSubtype_variation = 71,
203eSubtype_virion = 72,
208eSubtype_10_signal = 77,
209eSubtype_35_signal = 78,
211eSubtype_operon = 80,
213eSubtype_site_ref = 82,
214eSubtype_region = 83,
215eSubtype_comment = 84,
220eSubtype_txinit = 89,
222eSubtype_psec_str = 91,
223eSubtype_non_std_residue = 92,
225eSubtype_biosrc = 94,
229eSubtype_variation_ref = 98,
230eSubtype_mobile_element = 99,
231eSubtype_centromere = 100,
232eSubtype_telomere = 101,
233eSubtype_assembly_gap = 102,
234eSubtype_regulatory = 103,
235eSubtype_propeptide = 104,
236eSubtype_propeptide_aa = 105,
243 voidInvalidateSubtype(
void)
const;
246 voidInvalidateCache(
void)
const;
249 #define DEFINE_NCBI_SEQFEATDATA_VAL_SETTERS(x) \ 250 void Set##x(const T##x& v) { \ 252 Tparent::Set##x(v); \ 254 T##x& Set##x(void) { \ 256 return Tparent::Set##x(); \ 258 #define DEFINE_NCBI_SEQFEATDATA_SETTERS(x) \ 259 void Set##x(T##x& v) { \ 261 Tparent::Set##x(v); \ 263 T##x& Set##x(void) { \ 265 return Tparent::Set##x(); \ 277 voidSetComment(
void) {
279Tparent::SetComment();
294 #undef DEFINE_NCBI_SEQFEATDATA_SETTERS 295 #undef DEFINE_NCBI_SEQFEATDATA_VAL_SETTERS 302 voidPostRead(
void)
const;
319 static boolCanHaveGene(
ESubtypesubtype);
474 boolIsLegalQualifier(
EQualifierqual)
const;
482 const TQualifiers& GetMandatoryQualifiers(
void)
const;
491 staticstd::pair<EQualifier, CTempString> GetQualifierTypeAndValue(
CTempStringqual);
497 static boolIsRegulatory(
ESubtypesubtype);
498 static const string& GetRegulatoryClass(
ESubtypesubtype);
499 static ESubtypeGetRegulatoryClass(
const string& class_name );
500 static constvector<string>& GetRegulatoryClassList();
501 static boolFixRegulatoryClassValue(
string&
val);
503 static constvector<string>& GetRecombinationClassList();
505 static boolIsDiscouragedSubtype(
ESubtypesubtype);
506 static boolIsDiscouragedQual(
EQualifierqual);
509eFeatureLocationAllowed_Any = 0,
515 staticEFeatureLocationAllowed AllowedFeatureLocation(ESubtype subtype);
517 static boolAllowStrandBoth(ESubtype subtype);
518 static boolRequireLocationIntervalsInBiologicalOrder(ESubtype subtype);
519 static boolAllowAdjacentIntervals(ESubtype subtype);
527 static boolFixImportKey(
string&
key);
528 static boolIsLegalProductNameForRibosomalSlippage(
const string& product_name);
538 voidx_InitFeatDataInfo(
void)
const;
542 static voids_InitSubtypesTable(
void);
559m_FeatDataInfo.
m_Subtype= eSubtype_any;
573 returnIsLegalQualifier(
GetSubtype(), qual);
587 returnGetMandatoryQualifiers(
GetSubtype());
604, m_Description(desc)
605, m_StorageKey(
key) {}
609 intGetType()
const;
611 stringGetDescription()
const;
612 stringGetStoragekey()
const;
631{
returnm_Subtype; }
635{
returnm_Description; }
639{
returnm_StorageKey; }
657 boolTypeValid(
int type,
intsubtype)
const;
661 boolGetItemBySubtype(
intsubtype,
CFeatListItem& config_item)
const;
663 boolGetItemByDescription(
const string& desc,
CFeatListItem& config_item)
const;
664 boolGetItemByKey(
const string&
key,
CFeatListItem& config_item)
const;
667 stringGetDescription(
int type,
intsubtype)
const;
671 boolGetTypeSubType(
const string& desc,
int&
type,
int& subtype)
const;
674 stringGetStoragekey(
int type,
intsubtype)
const;
676 stringGetStoragekey(
intsubtype)
const;
681vector<string> GetStoragekeys(
intsubtype)
const;
685 voidGetDescriptions(
686vector<string> &descs,
687 boolhierarchical =
false 695 size_t size()
const;
713 returnm_FeatTypes.size();
720 returnm_FeatTypes.begin();
727 returnm_FeatTypes.end();
744 boolIsBondName (
string str)
const;
753 size_t size()
const;
768 returnsm_BondKeys.size();
775 returnsm_BondKeys.begin();
782 returnsm_BondKeys.end();
799 boolIsSiteName (
string str)
const;
808 size_t size()
const;
823 returnsm_SiteKeys.size();
830 returnsm_SiteKeys.begin();
837 returnsm_SiteKeys.end();
#define DEFINE_NCBI_SEQFEATDATA_VAL_SETTERS(x)
Override all setters to incorporate cache invalidation.
#define DEFINE_NCBI_SEQFEATDATA_SETTERS(x)
TBondMap::const_iterator const_iterator
void x_Init(void)
initialize our container of feature types and descriptions.
DECLARE_CLASS_STATIC_ARRAY_MAP(TBondMap, sm_BondKeys)
CStaticPairArrayMap< const char *, CSeqFeatData::EBond, PNocase_CStr > TBondMap
const_iterator end() const
const_iterator begin() const
SStaticPair< const char *, CSeqFeatData::EBond > TBondKey
CFeatListItem - basic configuration data for one "feature" type.
string GetStoragekey() const
string m_StorageKey
a short string to use as a key or part of a key when storing a value by key/value string pairs.
string GetDescription() const
CFeatListItem(int type, int subtype, const char *desc, const char *key)
string m_Description
a string for display purposes.
CConfigurableItems - a static list of items that can be configured.
const_iterator end() const
TFeatTypeContainer m_FeatTypes
map< int, CFeatListItem > TSubtypeMap
> all valid types and subtypes.
TSubtypeMap m_FeatTypeMap
TFeatTypeContainer::const_iterator const_iterator
const_iterator begin() const
set< CFeatListItem > TFeatTypeContainer
@Gb_qual.hpp User-defined methods of the data storage class.
bool IsLegalQualifier(EQualifier qual) const
Test wheather a certain qualifier is legal for the feature.
EQualifier
List of available qualifiers for feature keys.
@ eQual_environmental_sample
@ eQual_recombination_class
@ eQual_UniProtKB_evidence
@ eQual_culture_collection
@ eQual_ribosomal_slippage
@ eQual_calculated_mol_wt
@ eQual_metagenome_source
@ eQual_mobile_element_type
@ eQual_artificial_location
SFeatDataInfo m_FeatDataInfo
@ eFeatureLocationAllowed_NucOnly
@ eFeatureLocationAllowed_Error
@ eFeatureLocationAllowed_ProtOnly
EVocabulary
ASCII representation of subtype (GenBank feature key, e.g.)
const TLegalQualifiers & GetLegalQualifiers(void) const
Get a list of all the legal qualifiers for the feature.
const TQualifiers & GetMandatoryQualifiers(void) const
Get the list of all mandatory qualifiers for the feature.
void InvalidateCache(void) const
Combine invalidation of all cached values.
static CTempString GetQualifierAsString(EQualifier qual)
Convert a qualifier from an enumerated value to a string representation or empty if not found.
static ESubtype SubtypeNameToValue(CTempString sName)
Turn a string into its ESubtype which is NOT necessarily related to the identifier of the enum.
CSeqFeatData_Base Tparent
Base class for all serializable objects.
void x_Init(void)
initialize our container of feature types and descriptions.
const_iterator begin() const
TSiteMap::const_iterator const_iterator
const_iterator end() const
CStaticPairArrayMap< const char *, CSeqFeatData::ESite, PNocase_CStr > TSiteMap
DECLARE_CLASS_STATIC_ARRAY_MAP(TSiteMap, sm_SiteKeys)
SStaticPair< const char *, CSeqFeatData::ESite > TSiteKey
class CStaticArrayMap<> is an array adaptor that provides an STLish interface to statically-defined a...
TBase::const_iterator const_iterator
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
parent_type::const_iterator const_iterator
The NCBI C++ standard methods for dealing with std::string.
int GetSubtype(CFieldNamePanel *field_name_panel, string &ncRNA_class)
bool operator<(const CEquivRange &A, const CEquivRange &B)
static const char * str(char *buf, int n)
ESerialRecursionMode
How to assign and compare child sub-objects of serial objects.
#define NCBISER_HAVE_POST_READ(Class)
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
@ eRecursive
Recursively.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_SEQFEAT_EXPORT
E_Choice
Choice variants.
const struct ncbi::grid::netcache::search::fields::SIZE size
const struct ncbi::grid::netcache::search::fields::KEY key
const GenericPointer< typename T::ValueType > T2 value
const CharType(& source)[N]
CSeqFeatData::ESubtype m_Subtype
Template structure SStaticPair is simlified replacement of STL pair<> Main reason of introducing this...
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