defline = m_LineReader->GetCurrentLine();
47 TSeqPosrange_start = 0, range_end = 0;
48 boolhas_range =
false;
49SDefLineParseInfo parseInfo;
50parseInfo.fBaseFlags = m_iFlags;
52parseInfo.maxIdLength = m_MaxIDLength;
53parseInfo.lineNumber = LineNumber();
55list<CRef<CSeq_id> > ids;
67 catch(
constexception&) {}
69 for(
autoit = ids.begin(); it != ids.end();) {
71 switch(
id.Which()) {
84 stringseq_id_text =
"lcl|";
86seq_id_text +=
"rng_";
91SetIDs().push_back(seq_id);
103 if(defline_ids.empty())
111 if(non_local_id.
Empty())
CRef< objects::CSeq_entry > ReadSequences(vector< CConstRef< objects::CSeq_id >> *wellknown_ids=nullptr, int max_seqs=kMax_Int, objects::ILineErrorListener *pMessageListener=0)
Read multiple sequences and remove the well-known sequences from the entry.
fasta_utils::TSeq_idMap m_LocalIds
objects::CScope & m_Scope
virtual void GenerateID() override
virtual void PostProcessIDs(const objects::CBioseq::TId &defline_ids, const string &defline, bool has_range=false, TSeqPos range_start=kInvalidSeqPos, TSeqPos range_end=kInvalidSeqPos) override
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
CRef< objects::CSeq_id > IdentifyLocalId(const string &fasta_id)
Tries to identify the specified local id (works for ids, prefixed with rng_ or mod_,...
CRef< objects::CSeq_entry > ReplaceWellknownSeqs(objects::CSeq_entry &entry, objects::CScope &scope, vector< CConstRef< objects::CSeq_id >> *wellknown_ids=nullptr, TSeq_idMap *local_ids=nullptr)
Removes the well-known sequences from the set and returns their ids (optional)
void UpdateOrgInformation(objects::CSeq_entry &entry, objects::CScope &scope, const TSeq_idMap &local_ids)
Updates the organism information for the Seq-entry object by copying the information from a well-know...
unsigned int TSeqPos
Type for sequence locations and lengths.
CRef< CSeq_entry > ReadSet(int max_seqs=kMax_Int, ILineErrorListener *pMessageListener=nullptr)
Read multiple sequences (by default, as many as are available.)
virtual void PostProcessIDs(const CBioseq::TId &defline_ids, const string &defline, bool has_range=false, TSeqPos range_start=kInvalidSeqPos, TSeqPos range_end=kInvalidSeqPos)
virtual void GenerateID(void)
string GetSeqIdString(bool with_version=false) const
Return seqid string with optional version for text seqid type.
static int BestRank(const CRef< CSeq_id > &id)
bool Empty(void) const THROWS_NONE
Check if CRef is empty â not pointing to any object, which means having a null value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
C::value_type FindBestChoice(const C &container, F score_func)
Find the best choice (lowest score) for values in a container.
bool IsLocal(void) const
Check if variant Local is selected.
@ e_not_set
No variant selected.
list< CRef< CSeq_id > > TId
Useful/utility classes and methods.
static wxAcceleratorEntry entries[3]
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