kPriority_Default = -1,
101kPriority_NotSet = -1
133EGetBioseqFlag get_flag);
136EGetBioseqFlag get_flag);
141EGetBioseqFlag get_flag);
143 typedefvector<CSeq_id_Handle>
TIds;
158eMissing_Default = eMissing_Throw
167 EMissingaction = eMissing_Default);
174 EMissingaction = eMissing_Default);
176 EMissingaction = eMissing_Default);
178 EMissingaction = eMissing_Default);
180 EMissingaction = eMissing_Default);
182 EMissingaction = eMissing_Default);
184 EMissingaction = eMissing_Default);
187 EMissingaction = eMissing_Default);
189 EMissingaction = eMissing_Default);
191 EMissingaction = eMissing_Default);
193 EMissingaction = eMissing_Default);
195 EMissingaction = eMissing_Default);
242 voidAddDefaults(
TPrioritypri = kPriority_Default);
246 voidAddDataLoader(
const string& loader_name,
261 voidAddScope(
CScope& scope,
269eExist_Default = eExist_Throw
277TPriority pri = kPriority_Default,
278EExist action = eExist_Default);
285TPriority pri = kPriority_Default,
286EExist action = eExist_Throw);
297TPriority pri = kPriority_Default,
298EExist action = eExist_Throw);
306TPriority pri = kPriority_Default,
307EExist action = eExist_Throw);
313TPriority pri = kPriority_Default,
314EExist action = eExist_Throw);
322TPriority pri = kPriority_Default,
323EExist action = eExist_Throw);
330TPriority pri = kPriority_Default,
331EExist action = eExist_Throw);
336TPriority pri = kPriority_Default);
360 voidResetHistory(EActionIfLocked action = eKeepIfLocked);
362 voidResetDataAndHistory(
void);
367 voidResetDataAndHistory(ERemoveDataLoaders remove_data_loaders);
374EActionIfLocked action = eKeepIfLocked);
380EActionIfLocked action = eKeepIfLocked);
388 voidRemoveFromHistory(
const CSeq_id& seq_id);
392 voidRemoveDataLoader(
const string& loader_name,
393EActionIfLocked action = eThrowIfLocked);
397 voidRemoveTopLevelSeqEntry(
const CTSE_Handle& entry);
425fForceLoad = (1 << 0),
431fThrowOnMissingSequence = (1 << 1),
437fThrowOnMissingData = (1 << 2),
443fThrowOnMissing = fThrowOnMissingSequence|fThrowOnMissingData,
446fDoNotRecalculate = (1 << 3)
452eNoForceLabelLoad = eNoForceLoad,
453eForceLabelLoad = eForceLoad
457 boolExists(
const CSeq_id&
id);
479 static TGix_GetGi(
constTIds& ids);
505TGetFlags
flags= 0);
507TGetFlags
flags= 0);
658 voidUpdateAnnotIndex(
void);
668 static boolGetDefaultKeepExternalAnnotsForEdit();
678 static voidSetDefaultKeepExternalAnnotsForEdit(
boolkeep =
true);
688 boolGetKeepExternalAnnotsForEdit()
const;
698 voidSetKeepExternalAnnotsForEdit(
boolkeep =
true);
User-defined methods of the data storage class.
pair< string, int > GetAccVer(const CAlignModel &a, CScope &scope)
CBioseq_set_EditHandle â.
namespace ncbi::objects::
unsigned int TSeqPos
Type for sequence locations and lengths.
SStrictId_Tax::TId TTaxId
Taxon id type.
string GetLabel(const CSeq_id &id)
bool IsSameBioseq(const CSeq_id &id1, const CSeq_id &id2, CScope *scope, CScope::EGetBioseqFlag get_flag=CScope::eGetBioseq_All)
Determines if two CSeq_ids represent the same CBioseq.
TTaxId GetTaxId(const CBioseq_Handle &handle)
return the tax-id associated with a given sequence.
void GetAccVers(TSeq_id_Handles *results, const TSeq_id_Handles &idhs, TGetFlags flags=0)
EForceLabelLoad
obsolete enum
TSequenceHashes GetSequenceHashes(const TSeq_id_Handles &idhs, TGetFlags flags=0)
vector< TTaxId > TTaxIds
Get taxonomy ids of sequences Return -1 for sequences that aren't found Return 0 for sequences that d...
vector< TSeqPos > TSequenceLengths
Get lengths of sequences Return kInvalidSeqPos for sequences that aren't found.
CScope & operator=(const CScope &)
void GetSequenceLengths(TSequenceLengths *results, const TSeq_id_Handles &idhs, TGetFlags flags=0)
CSeq_entry_Handle GetSeq_entryHandle(CDataLoader *loader, const TBlobId &blob_id, EMissing action=eMissing_Default)
Get Seq-entry handle by its blob-id, with possible loading.
CScope_Impl & GetImpl(void)
CBioseq_set_EditHandle GetBioseq_setEditHandle(const CBioseq_set &seqset)
TSequenceStates GetSequenceStates(const TSeq_id_Handles &idhs, TGetFlags flags=0)
EExist
AddXxx() control values.
void GetSequenceHashes(TSequenceHashes *results, const TSeq_id_Handles &idhs, TGetFlags flags=0)
void GetGis(TGIs *results, const TSeq_id_Handles &idhs, TGetFlags flags=0)
TSeq_id_Handles GetAccVers(const TSeq_id_Handles &idhs, TGetFlags flags=0)
Get accession.version Seq-id Returns null CSeq_id_Handles for sequences that aren't found or don't ha...
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
vector< string > TLabels
Get short descriptions of sequences, usually "accession.version" Returns empty strings for sequences ...
vector< TGi > TGIs
Get GI of a sequence Returns ZERO_GI for sequence that aren't found or don't have GI.
TSequenceTypes GetSequenceTypes(const TSeq_id_Handles &idhs, TGetFlags flags=0)
EGetFlags
Flags to control behavior of various meta-data getters fForceLoad instructs scope to ignore already l...
CSeq_feat_Handle GetSeq_featHandle(const CSeq_feat &feat, EMissing action=eMissing_Default)
FParserFlags
Parser options.
vector< CBioseq_Handle::TBioseqStateFlags > TSequenceStates
Get GenBank states of sequences Return (fState_not_found|fState_no_data) for sequences that aren't fo...
vector< TSequenceHash > TSequenceHashes
Get data hashes of sequences Return 0 for sequences that aren't found or they don't have hash Note: 0...
vector< CBioseq_Handle > TBioseqHandles
CBioseq_set_Handle GetBioseq_setHandle(const CBioseq_set &seqset, EMissing action=eMissing_Default)
int TSequenceHash
Get sequence data hash value Return 0 if sequence is not found or if its hash is not known Note: 0 ca...
CSeq_annot_Handle GetSeq_annotHandle(const CSeq_annot &annot, EMissing action=eMissing_Default)
TGIs GetGis(const TSeq_id_Handles &idhs, TGetFlags flags=0)
vector< CTSE_Handle > TCDD_Entries
Get CDD annotations for all ids.
void RemoveTopLevelSeqEntry(const CTSE_Handle &entry)
Revoke TSE previously added using AddTopLevelSeqEntry() or AddBioseq().
TLabels GetLabels(const TSeq_id_Handles &idhs, TGetFlags flags=0)
void GetTaxIds(TTaxIds *results, const TSeq_id_Handles &idhs, TGetFlags flags=0)
CSeq_entry_EditHandle GetSeq_entryEditHandle(const CSeq_entry &entry)
vector< CSeq_inst::TMol > TSequenceTypes
Get molecular types of sequences (protein/dna/rna) Return CSeq_inst::eMol_not_set for sequences that ...
void GetSequenceTypes(TSequenceTypes *results, const TSeq_id_Handles &idhs, TGetFlags flags=0)
TBulkIds GetBulkIds(const TSeq_id_Handles &idhs, TGetFlags flags=0)
void GetSequenceStates(TSequenceStates *results, const TSeq_id_Handles &idhs, TGetFlags flags=0)
ERemoveDataLoaders
Clear all information in the scope including data loaders.
TSequenceLengths GetSequenceLengths(const TSeq_id_Handles &idhs, TGetFlags flags=0)
TTaxIds GetTaxIds(const TSeq_id_Handles &idhs, TGetFlags flags=0)
EForceLoad
EForceLoad flag instruct scope to ignore already loaded information and always request data loader fo...
int TPriority
priority type and special value for added objects
void GetBulkIds(TBulkIds *results, const TSeq_id_Handles &idhs, TGetFlags flags=0)
vector< CSeq_id_Handle > TIds
CRef< CScope_Impl > m_Impl
void GetLabels(TLabels *results, const TSeq_id_Handles &idhs, TGetFlags flags=0)
vector< TIds > TBulkIds
Get all ids of sequences Returns empty ids if the sequence is not found.
vector< CSeq_entry_Handle > TTSE_Handles
CRef< CScope > m_HeapScope
CBioseq_EditHandle GetObjectEditHandle(const CBioseq &bioseq)
CSeq_annot_EditHandle GetSeq_annotEditHandle(const CSeq_annot &annot)
EMissing
GetXxxHandle control values.
CBioseq_EditHandle GetBioseqEditHandle(const CBioseq &bioseq)
Get edit handle for the specified object Throw an exception if object is not found,...
CBioseq_Handle GetObjectHandle(const CBioseq &bioseq, EMissing action=eMissing_Default)
vector< CSeq_id_Handle > TSeq_id_Handles
Bulk retrieval methods Common argument typedef - vector of requested ids.
@ eGetBioseq_Resolved
Search only in already resolved ids.
@ eGetBioseq_Loaded
Search in all loaded TSEs in the scope.
const CTSE_Handle & GetTSE_Handle(void) const
#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
EMol
molecule class in living organism
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)
Uint4 GetSequenceType(const CBioseq_Handle &bsh)
Return a (corrected) set of flags identifying the sequence type.
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