1 #ifndef SEQ_FEAT_HANDLE__HPP
2 #define SEQ_FEAT_HANDLE__HPP
61 template<
typename Handle>
63 template<
typename Handle>
65 template<
typename Handle>
101 bool IsPlainFeat(
void)
const;
104 bool IsTableFeat(
void)
const;
107 bool IsSortedTableFeat(
void)
const;
110 bool IsTableSNP(
void)
const;
115 virtual TRange GetRange(
void)
const;
119 {
return GetRange(); }
122 virtual TRange GetProductTotalRange(
void)
const;
125 bool IsSetId(
void)
const;
127 bool IsSetData(
void)
const;
129 virtual bool IsSetPartial(
void)
const;
130 virtual bool GetPartial(
void)
const;
131 bool IsSetExcept(
void)
const;
132 bool GetExcept(
void)
const;
133 bool IsSetComment(
void)
const;
134 const string& GetComment(
void)
const;
135 bool IsSetProduct(
void)
const;
137 virtual const CSeq_loc& GetLocation(
void)
const;
138 bool IsSetQual(
void)
const;
140 bool IsSetTitle(
void)
const;
142 bool IsSetExt(
void)
const;
144 bool IsSetCit(
void)
const;
146 bool IsSetExp_ev(
void)
const;
148 bool IsSetXref(
void)
const;
150 bool IsSetDbxref(
void)
const;
152 bool IsSetPseudo(
void)
const;
153 bool GetPseudo(
void)
const;
154 bool IsSetExcept_text(
void)
const;
155 const string& GetExcept_text(
void)
const;
156 bool IsSetIds(
void)
const;
158 bool IsSetExts(
void)
const;
169 TSNPId GetSNPId(
void)
const;
170 const CSeq_id& GetSNPSeq_id(
void)
const;
173 bool IsSNPMinusStrand(
void)
const;
174 TWeight GetSNPWeight(
void)
const;
175 size_t GetSNPAllelesCount(
void)
const;
176 const string& GetSNPAllele(
size_t index)
const;
177 bool IsSetSNPComment(
void)
const;
178 const string& GetSNPComment(
void)
const;
180 bool IsSetSNPQualityCode(
void)
const;
182 const string& GetSNPQualityCodeStr(
void)
const;
183 void GetSNPQualityCodeOs(vector<char>& os)
const;
185 bool IsSetSNPExtra(
void)
const;
186 const string& GetSNPExtra(
void)
const;
189 bool IsRemoved(
void)
const;
230 kNoAnnotObjectInfo = 0x80000000,
231 kFeatIndexMask = 0x7fffffff
234 bool x_HasAnnotObjectInfo()
const;
235 TFeatIndex x_GetFeatIndex()
const;
243 const CSeq_feat& x_GetPlainSeq_feat(
void)
const;
245 const SSNP_Info& x_GetSNP_InfoAny(
void)
const;
246 const SSNP_Info& x_GetSNP_Info(
void)
const;
249 TFeatIndex feat_index);
615 void Remove(
void)
const;
618 void Replace(
const CSeq_feat& new_feat)
const;
621 void Update(
void)
const;
633 void AddQualifier(
const string& qual_name,
const string& qual_val);
636 void RemoveQualifier(
const string& qual_name);
639 void AddDbxref(
const string& db_name,
const string& db_key);
640 void AddDbxref(
const string& db_name,
int db_key);
644 void AddExceptText(
const string & exception_text);
648 void RemoveExceptText(
const string & exception_text);
651 void AddFeatId(
int id);
652 void AddFeatId(
const string&
id);
654 void AddFeatXref(
int id);
655 void AddFeatXref(
const string&
id);
659 void RemoveFeatId(
int id);
660 void RemoveFeatId(
const string&
id);
662 void RemoveFeatXref(
int id);
663 void RemoveFeatXref(
const string&
id);
667 void ClearFeatIds(
void);
668 void ClearFeatXrefs(
void);
671 void SetFeatId(
int id);
672 void SetFeatId(
const string&
id);
690 void x_RealRemove(
void)
const;
693 void x_RealReplace(
const CSeq_feat& new_feat)
const;
718 fIncludeTable = 1<<0,
797 fIncludeTable = 1<<0,
bool operator!=(const _Ht_iterator< _Val, _Nonconst_traits< _Val >, _Key, _HF, _ExK, _EqK, _All > &__x, const _Ht_iterator< _Val, _Const_traits< _Val >, _Key, _HF, _ExK, _EqK, _All > &__y)
CSeq_feat_EditHandle –.
namespace ncbi::objects::
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
virtual const string & GetNamedQual(const CTempString &qual_name) const =0
Return a named qualifier.
virtual const CProt_ref * GetProtXref(void) const =0
get protein (if present) from Seq-feat.xref list
virtual CConstRef< CDbtag > GetNamedDbxref(const CTempString &db) const =0
Return a specified DB xref.
virtual const CGene_ref * GetGeneXref(void) const =0
get gene (if present) from Seq-feat.xref list
bool operator<(const CEquivRange &A, const CEquivRange &B)
bool operator==(const CEquivRange &A, const CEquivRange &B)
objects::CSeqFeatData::ESubtype GetFeatSubtype(const string &feat_type)
CVect2< NCBI_PROMOTE(int,U) > operator*(int v1, const CVect2< U > &v2)
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
NCBI_XOBJUTIL_EXPORT string GetTitle(const CBioseq_Handle &hnd, TGetTitleFlags flags=0)
CRef< CCreatedFeat_Ref > m_CreatedFeat
bool IsSetExcept(void) const
const SSNP_Info & x_GetSNP_Info(void) const
bool GetExcept(void) const
const CFeat_id & GetId(void) const
const CSeq_feat::TXref & GetXref(void) const
const CSeq_feat_EditHandle * operator->(void) const
bool IsSetComment(void) const
TFeatIndex x_GetFeatIndex() const
CSeq_annot_ftable_I & operator++(void)
const CPub_set & GetCit(void) const
friend class CSeq_annot_EditHandle
bool GetPseudo(void) const
const CSeq_annot_EditHandle & GetAnnot(void) const
bool x_HasAnnotObjectInfo() const
bool x_IsExcluded(void) const
const CSeq_annot_Handle & GetAnnot(void) const
Get handle to seq-annot for this feature.
CScope & GetScope(void) const
const CSeq_feat_Handle * operator->(void) const
const CSeq_feat::TExts & GetExts(void) const
bool IsSetDbxref(void) const
virtual CConstRef< CSeq_feat > GetSeq_feat(void) const
bool IsSetExp_ev(void) const
CSeq_feat_EditHandle(void)
bool operator==(const CSeq_feat_Handle &feat) const
CSeq_feat::EExp_ev GetExp_ev(void) const
const CSeqFeatData & GetData(void) const
CSeq_annot_ftable_CI & operator++(void)
bool IsSetTitle(void) const
TWeight GetSNPWeight(void) const
bool IsSetXref(void) const
bool IsSetSNPExtra(void) const
bool IsSetExcept_text(void) const
bool IsSetProduct(void) const
CSeq_annot_Handle m_Seq_annot
bool operator<(const CSeq_feat_Handle &feat) const
CConstRef< CSeq_feat > m_CreatedOriginalFeat
CSeq_feat_EditHandle m_Feat
const string & GetComment(void) const
const CUser_object & GetExt(void) const
bool IsSetIds(void) const
const CSeq_feat_EditHandle & operator*(void) const
TSNPId GetSNPId(void) const
const CSeq_annot_Handle & GetAnnot(void) const
const CSeq_feat::TIds & GetIds(void) const
const string & GetExcept_text(void) const
TRange GetLocationTotalRange(void) const
bool operator!=(const CSeq_feat_Handle &feat) const
bool IsTableSNP(void) const
Check if this is SNP table feature.
CSeq_annot_EditHandle m_Annot
const CSeq_annot_Info & x_GetSeq_annot_Info(void) const
CScope & GetScope(void) const
Get scope this handle belongs to.
const CSeq_annot_Info & x_GetInfo(void) const
const string & GetTitle(void) const
bool IsSetSNPComment(void) const
bool IsSetExts(void) const
CSeq_annot_EditHandle GetAnnot(void) const
CScope & GetScope(void) const
const CSeq_feat::TDbxref & GetDbxref(void) const
bool IsSetQual(void) const
const CSeq_feat_Handle & operator*(void) const
CScope & GetScope(void) const
Get scope this handle belongs to.
DECLARE_OPERATOR_BOOL(m_Feat)
bool IsSetPseudo(void) const
const string & GetSNPComment(void) const
SSNP_Info::TWeight TWeight
CSeq_annot_ftable_CI(void)
const CSeq_feat::TQual & GetQual(void) const
CSeq_annot_ftable_I(void)
bool IsSetSNPQualityCode(void) const
bool IsSetExt(void) const
DECLARE_OPERATOR_BOOL(m_Feat)
bool x_IsExcluded(void) const
DECLARE_OPERATOR_BOOL(m_Seq_annot &&!IsRemoved())
bool IsSetCit(void) const
bool IsSNPMinusStrand(void) const
int32_t Int4
4-byte (32-bit) signed integer
#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_XOBJMGR_EXPORT
bool IsSetTitle(void) const
for user defined label Check if a value has been assigned to Title data member.
bool IsSetComment(void) const
Check if a value has been assigned to Comment data member.
vector< CRef< CDbtag > > TDbxref
bool IsSetQual(void) const
qualifiers Check if a value has been assigned to Qual data member.
const TExts & GetExts(void) const
Get the Exts member data.
bool IsSetExt(void) const
user defined structure extension Check if a value has been assigned to Ext data member.
const TIds & GetIds(void) const
Get the Ids member data.
list< CRef< CUser_object > > TExts
const TTitle & GetTitle(void) const
Get the Title member data.
const TCit & GetCit(void) const
Get the Cit member data.
const TQual & GetQual(void) const
Get the Qual member data.
const TId & GetId(void) const
Get the Id member data.
bool IsSetXref(void) const
cite other relevant features Check if a value has been assigned to Xref data member.
EExp_ev
evidence for existence of feature
const TData & GetData(void) const
Get the Data member data.
bool IsSetExcept(void) const
something funny about this? Check if a value has been assigned to Except data member.
const TExcept_text & GetExcept_text(void) const
Get the Except_text member data.
bool IsSetExcept_text(void) const
explain if except=TRUE Check if a value has been assigned to Except_text data member.
const TDbxref & GetDbxref(void) const
Get the Dbxref member data.
list< CRef< CFeat_id > > TIds
bool IsSetExp_ev(void) const
Check if a value has been assigned to Exp_ev data member.
bool IsSetIds(void) const
set of Ids; will replace 'id' field Check if a value has been assigned to Ids data member.
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
TPseudo GetPseudo(void) const
Get the Pseudo member data.
bool IsSetPseudo(void) const
annotated on pseudogene? Check if a value has been assigned to Pseudo data member.
const TComment & GetComment(void) const
Get the Comment member data.
bool IsSetExts(void) const
set of extensions; will replace 'ext' field Check if a value has been assigned to Exts data member.
bool IsSetCit(void) const
citations for this feature Check if a value has been assigned to Cit data member.
TExcept GetExcept(void) const
Get the Except member data.
const TXref & GetXref(void) const
Get the Xref member data.
vector< CRef< CSeqFeatXref > > TXref
vector< CRef< CGb_qual > > TQual
bool IsSetDbxref(void) const
support for xref to other databases Check if a value has been assigned to Dbxref data member.
bool IsSetProduct(void) const
product of process Check if a value has been assigned to Product data member.
const TExt & GetExt(void) const
Get the Ext member data.
TExp_ev GetExp_ev(void) const
Get the Exp_ev member data.
const GenericPointer< typename T::ValueType > T2 value
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
static bool GetIds(const T &d, set< string > &labels, const string name="", bool detect=false, bool found=false)
string GetProduct(const CProt_ref &prot_ref)
bool MinusStrand(void) const
TCommentIndex m_CommentIndex