A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/cuTaxClient_8cpp_source.html below:

NCBI C++ ToolKit: src/algo/structure/cd_utils/cuTaxClient.cpp Source File

126  ITERATE

( vector<CSeq_id_Handle>, it, ids ) {

127  if

(it->GetSeqId()->IsGi()) {

128

gi = it->GetSeqId()->GetGi();

150  bool

is_species, is_uncultured;

153

orgRef.

Assign

(*constOrgRef);

180

list< CRef< CSeqdesc > >::const_iterator j, jend;

187  for

(j=bioseq.

GetDescr

().

Get

().begin(); j!=jend; j++)

191

org = &((*j)->GetOrg());

192  else if

((*j)->IsSource())

193

org = &((*j)->GetSource().GetOrg());

211

vector < CRef< CDbtag > >::const_iterator k, kend = org->

GetDb

().end();

212  for

(k=org->

GetDb

().begin(); k != kend; ++k) {

213  if

((*k)->GetDb() ==

"taxon"

) {

214  if

((*k)->GetTag().IsId()) {

253  if

(

data

->IsSetOrg() &&

data

->GetOrg().IsSetTaxname()) {

254

taxName =

data

->GetOrg().GetTaxname();

290  return

(ancestor == taxid1);

318

v.push_back(rootTaxid);

320

lineageFromRoot.clear();

323

lineageFromRoot.push_back(taxid);

332  string

root(

"root"

);

333

vector<TTaxId> lineageAsTaxids;

334

pair<TTaxId, string> p;

336

lineageFromRoot.clear();

338  ITERATE

(vector<TTaxId>, vit, lineageAsTaxids) {

340  if

(!useCommonName) {

342  if

(commonName.length() > 0) {

343

p.second = (p.first >

TAX_ID_CONST

(1)) ? commonName : root;

347

}

else if

(useCommonName &&

GetDisplayCommonName

(*vit, commonName) && commonName.length() > 0) {

348

p.second = (p.first >

TAX_ID_CONST

(1)) ? commonName : root;

352

lineageFromRoot.push_back(p);

User-defined methods of the data storage class.

static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, CReader *reader=0, CObjectManager::EIsDefault is_default=CObjectManager::eDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)

bool GetTaxId4GI(TGi gi, TTaxId &tax_id_out)

CConstRef< COrg_ref > GetOrgRef(TTaxId tax_id, bool &is_species, bool &is_uncultured, string &blast_name, bool *is_specified=NULL)

CRef< CTaxon2_data > GetById(TTaxId tax_id)

bool GetDisplayCommonName(TTaxId tax_id, string &disp_name_out)

bool GetPopsetJoin(const TTaxIdList &ids_in, TTaxIdList &ids_out)

TTaxId GetTaxIdByOrgRef(const COrg_ref &inp_orgRef)

TTaxId GetParent(TTaxId id_tax)

bool SetSynonyms(bool on_off)

TTaxId GetSuperkingdom(TTaxId id_tax)

CRef< ITreeIterator > GetTreeIterator(EIteratorMode mode=eIteratorMode_Default)

bool GetRankName(TTaxRank rank_id, string &rank_name_out)

TTaxId Join(TTaxId taxid1, TTaxId taxid2)

virtual TTaxRank GetRank() const =0

virtual const ITaxon1Node * GetNode() const =0

virtual short GetRankID(TTaxId taxId, string &rankName)

virtual bool GetFullLineage(TTaxId taxid, vector< TTaxId > &lineageFromRoot)

virtual string GetSuperKingdom(TTaxId taxid)

virtual bool SetSynonyms(bool on_off)

static const bool REFRESH_DEFAULT

virtual bool GetDisplayCommonName(TTaxId taxid, string &displayCommonName)

CTaxon1 * m_taxonomyClient

TaxClient(bool refresh=REFRESH_DEFAULT)

TTaxId Join(TTaxId taxid1, TTaxId taxid2)

virtual TTaxId GetTaxIDFromBioseq(const CBioseq &bioseq, bool lookInBioseq)

virtual TTaxId GetTaxIDForSeqId(CConstRef< CSeq_id > sid)

virtual bool ConnectToTaxServer()

virtual TTaxId GetParentTaxID(TTaxId taxid)

virtual TTaxId GetTaxIDForGI(TGi gi)

virtual bool GetOrgRef(TTaxId taxId, COrg_ref &orgRef)

virtual bool IsTaxDescendant(TTaxId tax1, TTaxId tax2)

virtual string GetTaxNameForTaxID(TTaxId taxid)

#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)

virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)

Set object to copy of another one.

static CSeq_id_Handle GetHandle(const CSeq_id &id)

Normal way of getting a handle, works for any seq-id.

TIds GetIds(const CSeq_id &id, TGetFlags flags=0)

Get "native" bioseq ids without filtering and matching.

static CRef< CObjectManager > GetInstance(void)

Return the existing object manager or create one.

void AddDefaults(TPriority pri=kPriority_Default)

Add default data loaders from object manager.

bool Empty(void) const THROWS_NONE

Check if CConstRef is empty – not pointing to any object which means having a null value.

bool NotEmpty(void) const THROWS_NONE

Check if CRef is not empty – pointing to an object and has a non-null value.

#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.

virtual void Reset(void)

Reset the whole object.

const TDb & GetDb(void) const

Get the Db member data.

TGi GetGi(void) const

Get the variant data.

bool IsGi(void) const

Check if variant Gi is selected.

const Tdata & Get(void) const

Get the member data.

bool IsSetDescr(void) const

descriptors Check if a value has been assigned to Descr data member.

const TDescr & GetDescr(void) const

Get the Descr member data.


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