m_FeatIndex(feat_index)
72m_FeatIndex(
TFeatIndex(annot.x_GetInfo().x_GetSNP_annot_Info().GetIndex(snp_info))
73| kNoAnnotObjectInfo),
74m_CreatedFeat(&created_ref)
84(*
info->GetSeq_annot_Info().GetSeq_annotSkeleton())),
85m_FeatIndex(
info->GetAnnotIndex())
146 "CSeq_feat_Handle::x_GetAnnotObject: not Seq-feat info");
155 if(
info.IsRemoved() ) {
157 "CSeq_feat_Handle::x_GetAnnotObject_Info: " 158 "Seq-feat was removed");
168 "CSeq_feat_Handle::GetSNP_Info: not SNP info");
177 if(
info.IsRemoved() ) {
179 "CSeq_feat_Handle::GetSNP_Info: SNP was removed");
503processor.
run(
newTCommand(*
this));
511processor.
run(
newTCommand(*
this, new_feat));
527 "CSeq_feat_Handle::Remove: " 528 "handle is SNP table or Seq-table");
543 "CSeq_feat_Handle::Replace: " 544 "handle is SNP table or Seq-table");
580 const string& qual_val)
594 const string& db_key)
623 "CSeq_feat_EditHandle::AddFeatId: not plain Seq-feat");
632obj_id.
SetId(
id);
649 "CSeq_feat_EditHandle::AddFeatXref: not plain Seq-feat");
658obj_id.
SetId(
id);
675 "CSeq_feat_EditHandle::RemoveFeatId: not plain Seq-feat");
684obj_id.
SetId(
id);
701 "CSeq_feat_EditHandle::RemoveFeatXref: not plain Seq-feat");
710obj_id.
SetId(
id);
727 "CSeq_feat_EditHandle::ClearFeatIds: not plain Seq-feat");
737 "CSeq_feat_EditHandle::ClearFeatXrefs: not plain Seq-feat");
753obj_id.
SetId(
id);
775 "CSeq_annot_ftable_CI: annot is not ftable");
806 if( is_snp_table ) {
833: m_Annot(annot), m_Flags(
flags)
837 "CSeq_annot_ftable_I: annot is not ftable");
868 if( is_snp_table ) {
bool IsRegular(void) const
TFeatSubtype GetFeatSubtype(void) const
const CSeq_feat & GetFeat(void) const
TFeatType GetFeatType(void) const
bool IsRemoved(void) const
CMDReturn< CMD >::TReturn run(CMD *cmd)
CConstRef< CSeq_feat > GetOriginalFeature(const CSeq_feat_Handle &feat_h)
Base class for all object manager exceptions.
void x_ClearAnnotCache(void)
SAnnotTypeSelector GetType(void) const
void Remove(TAnnotIndex index)
void AddFeatId(TAnnotIndex index, const CObject_id &id, EFeatIdType id_type)
const CAnnotObject_Info & GetInfo(TAnnotIndex index) const
TAnnotIndex x_GetSNPFeatCount(void) const
bool IsSortedTable(void) const
void ClearFeatIds(TAnnotIndex index, EFeatIdType id_type)
void Update(TAnnotIndex index)
bool x_HasSNP_annot_Info(void) const
void RemoveFeatId(TAnnotIndex index, const CObject_id &id, EFeatIdType id_type)
TAnnotIndex x_GetAnnotCount(void) const
const CSeqTableInfo & GetTableInfo(void) const
const CSeq_annot_SNP_Info & x_GetSNP_annot_Info(void) const
const CSeq_id & GetSeq_id(void) const
const SSNP_Info & GetInfo(size_t index) const
const string & x_GetExtra(SSNP_Info::TExtraIndex index) const
const string & x_GetComment(SSNP_Info::TCommentIndex index) const
const string & x_GetAllele(SSNP_Info::TAlleleIndex index) const
void x_GetQualityCodesOs(SSNP_Info::TQualityCodesIndex index, TOctetString &os) const
const string & x_GetQualityCodesStr(SSNP_Info::TQualityCodesIndex index) const
CSeq_feat_EditHandle â.
namespace ncbi::objects::
const CProt_ref * GetProtXref(void) const
get protein (if present) from Seq-feat.xref list
const string & GetNamedQual(const CTempString &qual_name) const
Return a named qualifier.
CConstRef< CDbtag > GetNamedDbxref(const CTempString &db) const
Return a specified DB xref.
const CGene_ref * GetGeneXref(void) const
See related function in util/feature.hpp.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
static CSeq_id_Handle GetHandle(const CSeq_id &id)
Normal way of getting a handle, works for any seq-id.
TRange GetTotalRange(void) const
const CSeq_id * GetId(void) const
Get the id of the location return NULL if has multiple ids or no id at all.
CSeq_annot_Handle GetSeq_annotHandle(const CSeq_annot &annot, EMissing action=eMissing_Default)
CRef< CCreatedFeat_Ref > m_CreatedFeat
const string & GetNamedQual(const CTempString &qual_name) const
Return a named qualifier.
const CSeq_annot_SNP_Info & x_GetSNP_annot_Info(void) const
void AddQualifier(const string &qual_name, const string &qual_val)
Add a qualifier to this feature.
const SSNP_Info & x_GetSNP_Info(void) const
virtual bool GetPartial(void) const
virtual CSeq_id_Handle GetLocationId(void) const
TFeatIndex x_GetFeatIndex() const
CProt_ref & SetProtXref(void)
CSeq_annot_Info & x_GetInfo(void) const
const CSeq_annot_EditHandle & GetAnnot(void) const
bool x_HasAnnotObjectInfo() const
CSeq_id::TGi GetSNPGi(void) const
bool IsFtable(void) const
void RemoveExceptText(const string &exception_text)
Remove all instances of the given exception text in this feature, and reset the except flag if there ...
size_t GetSNPAllelesCount(void) const
virtual CConstRef< CSeq_feat > GetSeq_feat(void) const
CSeq_feat_EditHandle(void)
CScope_Impl & x_GetScopeImpl(void) const
CConstRef< CDbtag > GetNamedDbxref(const CTempString &db) const
Return a specified DB xref.
void x_RealReplace(const CSeq_feat &new_feat) const
Replace the feature with new Seq-feat object.
void ClearFeatIds(void)
Clear feature ids.
const SSNP_Info & x_GetSNP_InfoAny(void) const
const CProt_ref * GetProtXref(void) const
get protein (if present) from Seq-feat.xref list
void Remove(void) const
Remove the feature from Seq-annot.
void GetSNPQualityCodeOs(vector< char > &os) const
virtual const CSeq_loc & GetProduct(void) const
bool IsSetProduct(void) const
const string & GetSNPExtra(void) const
CSeq_annot_Handle m_Seq_annot
virtual const CSeq_loc & GetLocation(void) const
bool IsRemoved(void) const
Return true if this feature was removed already.
const CSeq_feat & x_GetPlainSeq_feat(void) const
const string & GetSNPAllele(size_t index) const
CConstRef< CSeq_feat > m_CreatedOriginalFeat
void AddExceptText(const string &exception_text)
Add the given exception_text and set the except flag to true.
void SetFeatId(int id)
Set single feature id.
virtual TRange GetRange(void) const
Get range for current seq-feat.
CSeq_feat_EditHandle m_Feat
void AddDbxref(const string &db_name, const string &db_key)
add a DB xref to this feature
const CAnnotObject_Info & x_GetAnnotObject_InfoAny(void) const
const CSeq_annot_Handle & GetAnnot(void) const
virtual TRange GetProductTotalRange(void) const
const CAnnotObject_Info & x_GetAnnotObject_Info(void) const
bool IsTableSNP(void) const
Check if this is SNP table feature.
const CSeq_annot_Info & x_GetSeq_annot_Info(void) const
const CSeq_annot_Info & x_GetInfo(void) const
void RemoveQualifier(const string &qual_name)
Remove all qualifiers with the given name on this feature.
void ClearFeatXrefs(void)
void AddFeatId(int id)
Add feature id.
CSeq_annot_EditHandle GetAnnot(void) const
CConstRef< CSeq_feat > GetPlainSeq_feat(void) const
Get current seq-feat.
void Update(void) const
Update index after manual modification of the object.
const string & GetSNPQualityCodeStr(void) const
CConstRef< CSeq_feat > GetOriginalSeq_feat(void) const
void Replace(const CSeq_feat &new_feat) const
Replace the feature with new Seq-feat object.
CSeqFeatData::ESubtype GetFeatSubtype(void) const
void RemoveFeatXref(int id)
CUser_field::TData::E_Choice GetSNPQualityCodeWhich(void) const
const CSeq_id & GetSNPSeq_id(void) const
bool IsTableFeat(void) const
Check if this is non-SNP table feature.
CSeqFeatData::E_Choice GetFeatType(void) const
virtual bool IsSetPartial(void) const
void x_RealRemove(void) const
Remove the feature from Seq-annot.
const CGene_ref * GetGeneXref(void) const
get gene (if present) from Seq-feat.xref list
bool IsSortedTableFeat(void) const
Check if this is a simple feature from sorted Seq-table.
const string & GetSNPComment(void) const
bool IsPlainFeat(void) const
Check if this is plain feature.
CSeq_annot_ftable_CI(void)
void Replace(const CSeq_feat &new_feat) const
Replace the feature with new Seq-feat object.
CSeq_annot_ftable_I(void)
void RemoveFeatId(int id)
Remove feature id.
virtual CSeq_id_Handle GetProductId(void) const
bool IsSetData(void) const
CGene_ref & SetGeneXref(void)
void Remove(void) const
Remove the feature from Seq-annot.
CConstRef< C > ConstRef(const C *object)
Template function for conversion of const object pointer to CConstRef.
void Reset(void)
Reset reference object.
void Reset(void)
Reset reference object.
static TThisType GetEmpty(void)
#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.
E_Choice
Choice variants.
TStr & SetStr(void)
Select the variant.
TId & SetId(void)
Select the variant.
bool IsSetData(void) const
the specific data Check if a value has been assigned to Data data member.
bool IsSetPartial(void) const
incomplete in some way? Check if a value has been assigned to Partial data member.
const TLocation & GetLocation(void) const
Get the Location member data.
E_Choice
Choice variants.
const TProduct & GetProduct(void) const
Get the Product member data.
TPartial GetPartial(void) const
Get the Partial member data.
TGi GetGi(void) const
Get the variant data.
const GenericPointer< typename T::ValueType > T2 value
TFeatSubtype GetFeatSubtype(void) const
TFeatType GetFeatType(void) const
bool IsRemoved(void) const
CUser_field::TData::E_Choice GetQualityCodesWhich(void) const
size_t GetAllelesCount(void) const
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