NCBI C++ ToolKit
|
Search Toolkit Book for TaxClient
#include <algo/structure/cd_utils/cuTaxClient.hpp>
Public Member Functions | |
TaxClient (bool refresh=REFRESH_DEFAULT) | |
virtual | ~TaxClient () |
virtual bool | init () |
virtual bool | IsAlive () |
virtual TTaxId | GetTaxIDForSeqId (CConstRef< CSeq_id > sid) |
virtual TTaxId | GetTaxIDForGI (TGi gi) |
virtual bool | GetOrgRef (TTaxId taxId, COrg_ref &orgRef) |
virtual bool | GetOrgRef (TTaxId taxId, CRef< COrg_ref > &orgRef) |
virtual bool | SetSynonyms (bool on_off) |
virtual short | GetRankID (TTaxId taxId, string &rankName) |
virtual TTaxId | GetTaxIDFromBioseq (const CBioseq &bioseq, bool lookInBioseq) |
virtual string | GetTaxNameForTaxID (TTaxId taxid) |
virtual string | GetSuperKingdom (TTaxId taxid) |
virtual bool | GetDisplayCommonName (TTaxId taxid, string &displayCommonName) |
virtual TTaxId | GetParentTaxID (TTaxId taxid) |
virtual bool | IsTaxDescendant (TTaxId tax1, TTaxId tax2) |
virtual bool | GetFullLineage (TTaxId taxid, vector< TTaxId > &lineageFromRoot) |
virtual bool | GetFullLineage (TTaxId taxid, vector< pair< TTaxId, string > > &lineageFromRoot, bool useCommonName=false) |
virtual bool | ConnectToTaxServer () |
CConstRef< COrg_ref > | GetOrgRef (TTaxId tax_id, bool &is_species, bool &is_uncultured, string &blast_name) |
TTaxId | Join (TTaxId taxid1, TTaxId taxid2) |
Private Attributes | |
CTaxon1 * | m_taxonomyClient |
CScope * | m_scope |
Static Private Attributes | |
static const bool | REFRESH_DEFAULT = false |
Definition at line 50 of file cuTaxClient.hpp.
TaxClient::TaxClient | ( | bool | refresh = REFRESH_DEFAULT | ) |
Definition at line 62 of file cuTaxClient.cpp.
|
virtual |
Definition at line 67 of file cuTaxClient.cpp.
References CTaxon1::Fini(), m_scope, and m_taxonomyClient.
|
virtual |
Definition at line 82 of file cuTaxClient.cpp.
References CTaxon1::Init(), CTaxon1::IsAlive(), and m_taxonomyClient.
Referenced by CTaxNRCriteria::ConnectToServer(), and init().
Definition at line 276 of file cuTaxClient.cpp.
References CTaxon1::GetDisplayCommonName(), IsAlive(), and m_taxonomyClient.
Referenced by GetFullLineage().
|
virtual |
Definition at line 329 of file cuTaxClient.cpp.
References GetDisplayCommonName(), GetFullLineage(), GetTaxNameForTaxID(), ITERATE, kEmptyStr, and TAX_ID_CONST.
Definition at line 314 of file cuTaxClient.cpp.
References CTaxon1::GetPopsetJoin(), IsAlive(), m_taxonomyClient, and TAX_ID_CONST.
Referenced by GetFullLineage().
CConstRef< COrg_ref > TaxClient::GetOrgRef | ( | TTaxId | tax_id, |
bool & | is_species, | ||
bool & | is_uncultured, | ||
string & | blast_name | ||
) |
Definition at line 295 of file cuTaxClient.cpp.
References CTaxon1::GetOrgRef(), IsAlive(), m_taxonomyClient, and null.
Definition at line 145 of file cuTaxClient.cpp.
References CSerialObject::Assign(), CTaxon1::GetOrgRef(), IsAlive(), m_taxonomyClient, COrg_ref_Base::Reset(), result, and ZERO_TAX_ID.
Referenced by GetOrgRef(), and CPriorityTaxNodes::TaxIdsToCddOrgRefSet().
Definition at line 162 of file cuTaxClient.cpp.
References GetOrgRef(), and CRef< C, Locker >::NotEmpty().
Definition at line 262 of file cuTaxClient.cpp.
References CTaxon1::GetParent(), IsAlive(), m_taxonomyClient, and ZERO_TAX_ID.
Referenced by TaxTreeData::growAndInsertLineage().
Definition at line 227 of file cuTaxClient.cpp.
References ITreeIterator::GetNode(), ITaxon1Node::GetRank(), CTaxon1::GetRankName(), CTaxon1::GetTreeIterator(), IsAlive(), and m_taxonomyClient.
Referenced by TaxTreeData::addSeqTax(), and TaxTreeData::growAndInsertLineage().
Definition at line 270 of file cuTaxClient.cpp.
References CTaxon1::GetSuperkingdom(), GetTaxNameForTaxID(), INVALID_TAX_ID, kEmptyStr, and m_taxonomyClient.
Referenced by SeqTreeAPI::annotateLeafNode().
Definition at line 137 of file cuTaxClient.cpp.
References CTaxon1::GetTaxId4GI(), IsAlive(), m_taxonomyClient, and ZERO_TAX_ID.
Referenced by GetTaxIDForSeqId(), and TaxTreeData::GetTaxIDForSequence().
Definition at line 101 of file cuTaxClient.cpp.
References CScope::AddDefaults(), CConstRef< C, Locker >::Empty(), CSeq_id_Base::GetGi(), CSeq_id_Handle::GetHandle(), CScope::GetIds(), CObjectManager::GetInstance(), GetTaxIDForGI(), CSeq_id_Base::IsGi(), ITERATE, m_scope, CGBDataLoader::RegisterInObjectManager(), ZERO_GI, and ZERO_TAX_ID.
Referenced by SeqTreeAPI::annotateLeafNode().
Definition at line 177 of file cuTaxClient.cpp.
References CSeq_descr_Base::Get(), COrg_ref_Base::GetDb(), CBioseq_Base::GetDescr(), CTaxon1::GetTaxIdByOrgRef(), IsAlive(), CBioseq_Base::IsSetDescr(), m_taxonomyClient, NULL, TAX_ID_FROM, and ZERO_TAX_ID.
Referenced by TaxTreeData::GetTaxIDForSequence(), and CTaxNRCriteria::GetTaxIdFromClient().
|
virtual |
Definition at line 240 of file cuTaxClient.cpp.
References data, CTaxon1::GetById(), IsAlive(), kEmptyStr, m_taxonomyClient, string, TAX_ID_CONST, and ZERO_TAX_ID.
Referenced by TaxTreeData::addSeqTax(), GetFullLineage(), GetSuperKingdom(), TaxTreeData::GetTaxIDForSequence(), and TaxTreeData::growAndInsertLineage().
|
virtual |
Definition at line 77 of file cuTaxClient.cpp.
References ConnectToTaxServer().
Referenced by SeqTreeAPI::annotateLeafNode(), and TaxTreeData::TaxTreeData().
|
virtual |
Definition at line 95 of file cuTaxClient.cpp.
References CTaxon1::IsAlive(), and m_taxonomyClient.
Referenced by CTaxNRCriteria::ConnectToServer(), GetDisplayCommonName(), GetFullLineage(), GetOrgRef(), GetParentTaxID(), GetRankID(), GetTaxIDForGI(), GetTaxIDFromBioseq(), GetTaxNameForTaxID(), IsTaxDescendant(), Join(), and TaxTreeData::makeTaxonomyTree().
Definition at line 286 of file cuTaxClient.cpp.
References IsAlive(), CTaxon1::Join(), and m_taxonomyClient.
Referenced by CPriorityTaxNodes::findAncestor().
Definition at line 305 of file cuTaxClient.cpp.
References IsAlive(), CTaxon1::Join(), m_taxonomyClient, and ZERO_TAX_ID.
Definition at line 171 of file cuTaxClient.cpp.
References m_taxonomyClient, and CTaxon1::SetSynonyms().
|
private |
Definition at line 114 of file cuTaxClient.hpp.
Referenced by GetTaxIDForSeqId(), and ~TaxClient().
|
private |
Definition at line 113 of file cuTaxClient.hpp.
Referenced by ConnectToTaxServer(), GetDisplayCommonName(), GetFullLineage(), GetOrgRef(), GetParentTaxID(), GetRankID(), GetSuperKingdom(), GetTaxIDForGI(), GetTaxIDFromBioseq(), GetTaxNameForTaxID(), IsAlive(), IsTaxDescendant(), Join(), SetSynonyms(), and ~TaxClient().
Definition at line 53 of file cuTaxClient.hpp.