, m_Mode(eDisplay_Default)
57vector<TTaxId> tax_ids_in;
58vector<TTaxId> tax_ids_out;
59tax_ids_in.reserve(tax_map.
size());
62tax_ids_in.push_back(iter->first);
65 if(tax_ids_in.size() == 0) {
67 "Can't generate common tree for sequences:\n" 68 "No taxonomy IDs found.");
71 if( !
m_TaxCache.GetPopsetJoin(tax_ids_in, tax_ids_out) ) {
73 "Can't generate common tree for sequences");
124 const CSeq_id& seq_id = **iter;
125 if( seq_id.
IsGi() ) {
132tax_map[tax_id].push_back(*iter);
static CRef< CScope > m_Scope
CTaxTreeDS_ObjMgr(objects::CScope &scope, const TUidVec &ids)
objects::CTaxon1 m_TaxCache
const TUidVec & GetUids() const
objects::ITreeIterator & GetIterator(EDisplayMode mode=eDisplay_Default)
void GetTaxMap(TTaxMap &taxmap)
const CRef< objects::CScope > & GetScope(void)
CRef< objects::ITreeIterator > m_Iter
CRef< objects::CScope > m_Scope
void GetTitle(const objects::CSeq_id &uids, string *title) const
virtual const string & GetName() const =0
iterator_bool insert(const value_type &val)
static const char * str(char *buf, int n)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
SStrictId_Tax::TId TTaxId
Taxon id type.
#define TAX_ID_FROM(T, value)
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
void Info(CExceptionArgs_Base &args)
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
void GetLabel(string *label, ELabelType type=eDefault, TLabelFlags flags=fLabel_Default) const
Append a label for this Seq-id to the supplied string.
CConstRef< CSeq_id > GetSeqId(void) const
@ eContent
Untagged human-readable accession or the like.
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,...
TTaxId GetTaxId(const CBioseq_Handle &handle)
return the tax-id associated with a given sequence.
@ eGetId_Best
return the "best" gi (uses FindBestScore(), with CSeq_id::CalculateScore() as the score function
TBioseqCore GetBioseqCore(void) const
Get bioseq core structure.
CConstRef< CSeq_id > GetSeqId(void) const
Get id which can be used to access this bioseq handle Throws an exception if none is available.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TGi GetGi(void) const
Get the variant data.
bool IsGi(void) const
Check if variant Gi is selected.
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