NCBI C++ ToolKit
|
Search Toolkit Book for CWGSProteinIterator
#include <sra/readers/sra/wgsread.hpp>
Public Types | |
typedef NCBI_WGS_hash | THash |
typedef CBioseq::TAnnot | TAnnotSet |
Public Types inherited from SWGSDb_Defs | |
enum | EFlags { fIds_gi = 1<<0 , fIds_acc = 1<<1 , fIds_gnl = 1<<2 , fMaskIds = fIds_gi|fIds_acc|fIds_gnl , fDefaultIds = fIds_gi|fIds_acc|fIds_gnl , fInst_ncbi4na = 0<<3 , fInst_delta = 1<<3 , fMaskInst = fInst_ncbi4na|fInst_delta , fDefaultInst = fInst_delta , fSeqDescr = 1<<4 , fNucProtDescr = 1<<12 , fMasterDescr = 1<<5 , fMasterDescrMark = 1<<13 , fSeqDescrObj = 1<<14 , fMaskDescr = fSeqDescr|fNucProtDescr|fMasterDescr , fDefaultDescr = fSeqDescr|fNucProtDescr|fMasterDescr , fSeqAnnot = 1<<6 , fQualityGraph = 1<<7 , fMaskAnnot = fSeqAnnot|fQualityGraph , fDefaultAnnot = fSeqAnnot|fQualityGraph , fSplitQualityGraph = 1<<8 , fSplitSeqData = 1<<9 , fSplitProducts = 1<<10 , fSplitFeatures = 1<<11 , fSplitAll = fSplitQualityGraph | fSplitSeqData | fSplitProducts | fSplitFeatures , fSplitMask = fSplitQualityGraph | fSplitSeqData | fSplitProducts | fSplitFeatures , fDefaultSplit = fSplitAll , fDefaultFlags = fDefaultIds|fDefaultDescr|fDefaultAnnot|fDefaultInst|fDefaultSplit } |
enum | EFeatLocIdType : Int1 { eFeatLocIdUninitialized = -1 , eFeatLocIdGi = 0 , eFeatLocIdAccVer , eFeatLocIdAccNoVer } |
enum | EGBStateType { eGBStateZero = 0 , eGBStateRaw = 1 , eGBStateProject = 2 , eGBStateAll = 3 } |
typedef int | TSplitVersion |
typedef int | TChunkId |
Protected Member Functions | |
void | x_Init (const CWGSDb &wgs_db) |
void | x_Cur () const |
CWGSDb_Impl & | GetDb (void) const |
void | x_ReportInvalid (const char *method) const |
void | x_CheckValid (const char *method) const |
void | x_CreateBioseq (SWGSCreateInfo &info) const |
void | x_CreateEntry (SWGSCreateInfo &info) const |
Private Attributes | |
CWGSDb | m_Db |
CRef< CWGSDb_Impl::SProt0TableCursor > | m_Cur0 |
CRef< CWGSDb_Impl::SProtTableCursor > | m_Cur |
TVDBRowId | m_CurrId |
TVDBRowId | m_FirstGoodId |
TVDBRowId | m_FirstBadId |
Friends | |
struct | SWGSCreateInfo |
struct | SWGSFeatChunkInfo |
Additional Inherited Members | |
Static Public Attributes inherited from SWGSDb_Defs | |
static const TSplitVersion | kDefaultSplitVersion = 0 |
Definition at line 1407 of file wgsread.hpp.
Definition at line 1502 of file wgsread.hpp.
Definition at line 1464 of file wgsread.hpp.
CWGSProteinIterator::CWGSProteinIterator | ( | void | ) |
Definition at line 7042 of file wgsread.cpp.
Definition at line 7071 of file wgsread.cpp.
References x_Init().
Definition at line 7077 of file wgsread.cpp.
References row, SelectRow(), and x_Init().
CWGSProteinIterator::CWGSProteinIterator | ( | const CWGSDb & | wgs_db, |
CTempString | acc | ||
) |
Definition at line 7084 of file wgsread.cpp.
References m_CurrId, m_FirstBadId, m_FirstGoodId, CWGSDb::ParseProteinRow(), row, SelectRow(), and x_Init().
CWGSProteinIterator::~CWGSProteinIterator | ( | void | ) |
Definition at line 7097 of file wgsread.cpp.
References Reset().
CWGSProteinIterator::CWGSProteinIterator | ( | const CWGSProteinIterator & | iter | ) |
Definition at line 7048 of file wgsread.cpp.
CWGSProteinIterator::DECLARE_OPERATOR_BOOL | ( | ) |
CTempString CWGSProteinIterator::GetAccession | ( | void | ) | const |
Definition at line 7168 of file wgsread.cpp.
References m_Cur0, m_CurrId, PROFILE, and x_CheckValid().
Referenced by GetAccSeq_id().
Definition at line 7189 of file wgsread.cpp.
References CTempString::empty(), GetAccession(), CWGSDb_Impl::GetAccSeq_id(), GetAccVersion(), GetDb(), CWGSDb_Impl::GetProteinSeq_id(), m_CurrId, and PROFILE.
int CWGSProteinIterator::GetAccVersion | ( | void | ) | const |
Definition at line 7181 of file wgsread.cpp.
References m_Cur0, m_CurrId, PROFILE, and x_CheckValid().
Referenced by GetAccSeq_id(), and CWGSClient::IsCorrectVersion().
void CWGSProteinIterator::GetAnnotSet | ( | TAnnotSet & | annot_set, |
TFlags | flags = fDefaultFlags |
||
) | const |
Definition at line 7597 of file wgsread.cpp.
References flags, SWGSDb_Defs::fSeqAnnot, m_Cur, m_CurrId, sx_AddAnnotBytes(), x_CheckValid(), and x_Cur().
Referenced by x_CreateBioseq().
TVDBRowId CWGSProteinIterator::GetBestProductFeatRowId | ( | void | ) | const |
Definition at line 7480 of file wgsread.cpp.
References m_Cur, m_CurrId, row, x_CheckValid(), and x_Cur().
Referenced by CWGSFileInfo::SAccFileInfo::GetRootFileInfo().
CRef< CBioseq > CWGSProteinIterator::GetBioseq | ( | TFlags | flags = fDefaultFlags | ) | const |
Definition at line 7694 of file wgsread.cpp.
References eFromFlags, flags, info, m_Db, x_CheckValid(), and x_CreateBioseq().
|
inline |
Definition at line 1428 of file wgsread.hpp.
References m_CurrId.
Referenced by GetRemainingCount().
|
inlineprotected |
Definition at line 1518 of file wgsread.hpp.
References CRef< C, Locker >::GetNCObject(), and m_Db.
Referenced by SWGSFeatChunkInfo::CreateChunkInfo(), GetAccSeq_id(), GetGeneralOrPatentSeq_id(), GetId(), GetSeq_descr(), GetSeq_inst(), GetTaxId(), HasSeq_descr(), HasTaxId(), Reset(), and x_Cur().
|
inline |
Definition at line 1434 of file wgsread.hpp.
References m_FirstBadId.
Referenced by GetRemainingCount(), and GetSize().
|
inline |
NCBI_gb_state CWGSProteinIterator::GetGBState | ( | EGBStateType | type | ) | const |
Definition at line 7367 of file wgsread.cpp.
References SWGSDb_Defs::eGBStateProject, SWGSDb_Defs::eGBStateRaw, GetRawGBState(), m_Db, and x_CheckValid().
NCBI_gb_state CWGSProteinIterator::GetGBState | ( | void | ) | const |
Definition at line 7361 of file wgsread.cpp.
References SWGSDb_Defs::eGBStateAll.
Referenced by CWGSClient::HasMigrated(), CWGSClient::HasSpecialState(), and CWGSFileInfo::SAccFileInfo::IsMigrated().
Definition at line 7205 of file wgsread.cpp.
References GetDb(), CWGSDb_Impl::GetGeneralOrPatentSeq_id(), GetProteinName(), m_Cur0, and m_CurrId.
Referenced by GetGeneralSeq_id(), GetId(), and GetIds().
Definition at line 7211 of file wgsread.cpp.
References GetGeneralOrPatentSeq_id().
CSeq_id::TGi CWGSProteinIterator::GetGi | ( | void | ) | const |
Definition at line 7155 of file wgsread.cpp.
References CVDBValue::empty(), m_Cur0, m_CurrId, s_ToGi(), x_CheckValid(), and ZERO_GI.
Referenced by SWGSFeatChunkInfo::CreateChunkInfo(), CWGSClient::GetGi(), GetGiSeq_id(), and HasGi().
Definition at line 7217 of file wgsread.cpp.
References GetGi(), PROFILE, CSeq_id_Base::SetGi(), and ZERO_GI.
CRef< CSeq_id > CWGSProteinIterator::GetId | ( | TFlags | flags = fDefaultFlags | ) | const |
Definition at line 7230 of file wgsread.cpp.
References SWGSDb_Defs::fIds_acc, SWGSDb_Defs::fIds_gi, SWGSDb_Defs::fIds_gnl, flags, GetAccSeq_id(), GetDb(), GetGeneralOrPatentSeq_id(), GetGiSeq_id(), m_CurrId, and NCBI_THROW_FMT.
Referenced by SWGSFeatChunkInfo::CreateChunkInfo(), and GetSeq_inst().
void CWGSProteinIterator::GetIds | ( | CBioseq::TId & | ids, |
TFlags | flags = fDefaultFlags |
||
) | const |
Definition at line 7260 of file wgsread.cpp.
References SWGSDb_Defs::fIds_acc, SWGSDb_Defs::fIds_gi, SWGSDb_Defs::fIds_gnl, flags, GetAccSeq_id(), GetGeneralOrPatentSeq_id(), GetGiSeq_id(), and PROFILE.
Referenced by x_CreateBioseq(), and SWGSCreateInfo::x_CreateProtSet().
TVDBRowIdRange CWGSProteinIterator::GetLocFeatRowIdRange | ( | void | ) | const |
Definition at line 7436 of file wgsread.cpp.
References CVDBValue::empty(), m_Cur, m_CurrId, NCBI_THROW_FMT, x_CheckValid(), and x_Cur().
Referenced by x_CreateBioseq().
size_t CWGSProteinIterator::GetProductFeatCount | ( | void | ) | const |
Definition at line 7458 of file wgsread.cpp.
References m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
TVDBRowId CWGSProteinIterator::GetProductFeatRowId | ( | size_t | index | ) | const |
Definition at line 7469 of file wgsread.cpp.
References m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
TVDBRowId CWGSProteinIterator::GetProductFeatRowId | ( | void | ) | const |
Definition at line 7492 of file wgsread.cpp.
References m_Cur, m_CurrId, row, x_CheckValid(), and x_Cur().
CTempString CWGSProteinIterator::GetProductName | ( | void | ) | const |
Definition at line 7294 of file wgsread.cpp.
References m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
CTempString CWGSProteinIterator::GetProteinName | ( | void | ) | const |
Definition at line 7287 of file wgsread.cpp.
References m_Cur0, m_CurrId, and x_CheckValid().
Referenced by GetGeneralOrPatentSeq_id().
CTempString CWGSProteinIterator::GetPublicComment | ( | void | ) | const |
Definition at line 7406 of file wgsread.cpp.
References m_Cur, m_CurrId, string, x_CheckValid(), and x_Cur().
NCBI_gb_state CWGSProteinIterator::GetRawGBState | ( | void | ) | const |
Definition at line 7382 of file wgsread.cpp.
References m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
Referenced by GetGBState().
CTempString CWGSProteinIterator::GetRefAcc | ( | void | ) | const |
Definition at line 7353 of file wgsread.cpp.
References m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
|
inline |
Definition at line 1437 of file wgsread.hpp.
References GetCurrentRowId(), and GetFirstBadRowId().
TVDBRowId CWGSProteinIterator::GetReplacedByRowId | ( | void | ) | const |
Definition at line 7504 of file wgsread.cpp.
References m_Cur, m_CurrId, rapidjson::value, x_CheckValid(), and x_Cur().
Referenced by GetSeq_inst().
TVDBRowId CWGSProteinIterator::GetReplacesRowId | ( | void | ) | const |
Definition at line 7523 of file wgsread.cpp.
References m_Cur, m_CurrId, rapidjson::value, x_CheckValid(), and x_Cur().
Referenced by GetSeq_inst().
CRef< CSeq_descr > CWGSProteinIterator::GetSeq_descr | ( | TFlags | flags = fDefaultFlags | ) | const |
Definition at line 7561 of file wgsread.cpp.
References CWGSDb_Impl::AddMasterDescr(), CTempString::empty(), flags, SWGSDb_Defs::fMasterDescr, SWGSDb_Defs::fSeqDescr, CSeq_descr_Base::Get(), GetDb(), GetTitle(), m_Cur, m_CurrId, CRef< C, Locker >::Reset(), CSeq_descr_Base::Set(), CSeqdesc_Base::SetTitle(), sx_AddDescrBytes(), x_CheckValid(), and x_Cur().
Referenced by x_CreateBioseq().
CRef< CSeq_entry > CWGSProteinIterator::GetSeq_entry | ( | TFlags | flags = fDefaultFlags | ) | const |
Definition at line 7703 of file wgsread.cpp.
References eFromFlags, flags, info, m_Db, x_CheckValid(), and x_CreateEntry().
Referenced by CWGSClient::GetWGSData().
CRef< CSeq_inst > CWGSProteinIterator::GetSeq_inst | ( | TFlags | flags = fDefaultFlags | ) | const |
Definition at line 7607 of file wgsread.cpp.
References CSeq_inst_Base::eRepr_raw, GetDb(), GetId(), GetReplacedByRowId(), GetReplacesRowId(), GetSeqLength(), m_Cur, m_CurrId, m_Db, PROFILE, CSeq_inst_Base::SetHist(), CSeq_inst_Base::SetLength(), CSeq_inst_Base::SetMol(), CSeq_hist_Base::SetReplaced_by(), CSeq_hist_Base::SetReplaces(), CSeq_inst_Base::SetRepr(), CSeq_inst_Base::SetSeq_data(), x_CheckValid(), and x_Cur().
Referenced by x_CreateBioseq().
CWGSProteinIterator::THash CWGSProteinIterator::GetSeqHash | ( | void | ) | const |
Definition at line 7331 of file wgsread.cpp.
References HasSeqHash(), m_Cur, and m_CurrId.
Referenced by CWGSClient::GetBioseqInfo().
TSeqPos CWGSProteinIterator::GetSeqLength | ( | void | ) | const |
Definition at line 7337 of file wgsread.cpp.
References m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
Referenced by CWGSClient::GetBioseqInfo(), and GetSeq_inst().
|
inline |
Definition at line 1440 of file wgsread.hpp.
References GetFirstBadRowId(), and GetFirstGoodRowId().
TTaxId CWGSProteinIterator::GetTaxId | ( | void | ) | const |
Definition at line 7312 of file wgsread.cpp.
References CWGSDb_Impl::GetCommonTaxId(), GetDb(), m_Cur, m_CurrId, s_GetTaxId(), x_CheckValid(), and x_Cur().
Referenced by CWGSClient::GetBioseqInfo().
CTempString CWGSProteinIterator::GetTitle | ( | void | ) | const |
Definition at line 7425 of file wgsread.cpp.
References m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
Referenced by GetSeq_descr(), and HasSeq_descr().
bool CWGSProteinIterator::HasAnnotSet | ( | void | ) | const |
Definition at line 7589 of file wgsread.cpp.
References m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
bool CWGSProteinIterator::HasGi | ( | void | ) | const |
Definition at line 7149 of file wgsread.cpp.
References GetGi(), m_Cur0, and ZERO_GI.
Referenced by CWGSClient::GetGi(), CWGSClient::HasMigrated(), CWGSClient::HasSpecialState(), and CWGSFileInfo::SAccFileInfo::IsMigrated().
bool CWGSProteinIterator::HasPublicComment | ( | void | ) | const |
Definition at line 7395 of file wgsread.cpp.
References m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
bool CWGSProteinIterator::HasRefAcc | ( | void | ) | const |
Definition at line 7345 of file wgsread.cpp.
References m_Cur, x_CheckValid(), and x_Cur().
bool CWGSProteinIterator::HasSeq_descr | ( | TFlags | flags = fDefaultFlags | ) | const |
Definition at line 7542 of file wgsread.cpp.
References ctll::empty(), flags, SWGSDb_Defs::fMasterDescr, SWGSDb_Defs::fSeqDescr, GetDb(), GetTitle(), m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
bool CWGSProteinIterator::HasSeqHash | ( | void | ) | const |
Definition at line 7323 of file wgsread.cpp.
References m_Cur, x_CheckValid(), and x_Cur().
Referenced by CWGSClient::GetBioseqInfo(), and GetSeqHash().
bool CWGSProteinIterator::HasTaxId | ( | void | ) | const |
Definition at line 7302 of file wgsread.cpp.
References GetDb(), m_Cur, and x_Cur().
Referenced by CWGSClient::GetBioseqInfo().
bool CWGSProteinIterator::HasTitle | ( | void | ) | const |
Definition at line 7417 of file wgsread.cpp.
References m_Cur, m_CurrId, x_CheckValid(), and x_Cur().
|
inline |
Definition at line 1423 of file wgsread.hpp.
References m_CurrId.
CWGSProteinIterator & CWGSProteinIterator::operator= | ( | const CWGSProteinIterator & | iter | ) |
Definition at line 7056 of file wgsread.cpp.
References m_Cur, m_Cur0, m_CurrId, m_Db, m_FirstBadId, m_FirstGoodId, and Reset().
void CWGSProteinIterator::Reset | ( | void | ) |
Definition at line 7024 of file wgsread.cpp.
References GetDb(), m_Cur, m_Cur0, m_CurrId, m_Db, m_FirstBadId, m_FirstGoodId, CWGSDb_Impl::Put(), and CRef< C, Locker >::Reset().
Referenced by operator=(), and ~CWGSProteinIterator().
CWGSProteinIterator & CWGSProteinIterator::SelectRow | ( | TVDBRowId | row | ) |
Definition at line 7129 of file wgsread.cpp.
References m_CurrId, m_FirstBadId, m_FirstGoodId, and row.
Referenced by SWGSFeatChunkInfo::CreateChunkInfo(), CWGSProteinIterator(), SWGSCreateInfo::x_AddProducts(), and SWGSCreateInfo::x_CreateProtSet().
|
inlineprotected |
Definition at line 1523 of file wgsread.hpp.
References x_ReportInvalid().
Referenced by GetAccession(), GetAccVersion(), GetAnnotSet(), GetBestProductFeatRowId(), GetBioseq(), GetGBState(), GetGi(), GetLocFeatRowIdRange(), GetProductFeatCount(), GetProductFeatRowId(), GetProductName(), GetProteinName(), GetPublicComment(), GetRawGBState(), GetRefAcc(), GetReplacedByRowId(), GetReplacesRowId(), GetSeq_descr(), GetSeq_entry(), GetSeq_inst(), GetSeqLength(), GetTaxId(), GetTitle(), HasAnnotSet(), HasPublicComment(), HasRefAcc(), HasSeq_descr(), HasSeqHash(), and HasTitle().
|
protected |
Definition at line 7638 of file wgsread.cpp.
References _ASSERT, CSeq_entry_Base::e_not_set, CVDBValue::empty(), SWGSDb_Defs::fMaskAnnot, SWGSDb_Defs::fMaskDescr, SWGSDb_Defs::fSeqDescr, GetAnnotSet(), GetIds(), GetLocFeatRowIdRange(), GetSeq_descr(), GetSeq_inst(), info, m_Cur, m_CurrId, PROFILE, and x_Cur().
Referenced by GetBioseq(), SWGSCreateInfo::x_AddProducts(), and x_CreateEntry().
|
protected |
Definition at line 7687 of file wgsread.cpp.
References info, PROFILE, and x_CreateBioseq().
Referenced by GetSeq_entry().
|
protected |
Definition at line 7121 of file wgsread.cpp.
References GetDb(), m_Cur, and CWGSDb_Impl::Prot().
Referenced by GetAnnotSet(), GetBestProductFeatRowId(), GetLocFeatRowIdRange(), GetProductFeatCount(), GetProductFeatRowId(), GetProductName(), GetPublicComment(), GetRawGBState(), GetRefAcc(), GetReplacedByRowId(), GetReplacesRowId(), GetSeq_descr(), GetSeq_inst(), GetSeqLength(), GetTaxId(), GetTitle(), HasAnnotSet(), HasPublicComment(), HasRefAcc(), HasSeq_descr(), HasSeqHash(), HasTaxId(), HasTitle(), and x_CreateBioseq().
Definition at line 7103 of file wgsread.cpp.
References CRef< C, Locker >::GetNCObject(), CVDBCursor::GetRowIdRange(), m_Cur0, m_CurrId, CWGSDb_Impl::SProt0TableCursor::m_Cursor, m_Db, m_FirstBadId, m_FirstGoodId, PROFILE, CWGSDb_Impl::Prot0(), and compile_time_bits::range().
Referenced by CWGSProteinIterator().
|
protected |
Definition at line 7141 of file wgsread.cpp.
References NCBI_THROW_FMT.
Referenced by x_CheckValid().
|
friend |
Definition at line 1512 of file wgsread.hpp.
|
friend |
Definition at line 1513 of file wgsread.hpp.
|
private |
Definition at line 1535 of file wgsread.hpp.
Referenced by GetAnnotSet(), GetBestProductFeatRowId(), GetLocFeatRowIdRange(), GetProductFeatCount(), GetProductFeatRowId(), GetProductName(), GetPublicComment(), GetRawGBState(), GetRefAcc(), GetReplacedByRowId(), GetReplacesRowId(), GetSeq_descr(), GetSeq_inst(), GetSeqHash(), GetSeqLength(), GetTaxId(), GetTitle(), HasAnnotSet(), HasPublicComment(), HasRefAcc(), HasSeq_descr(), HasSeqHash(), HasTaxId(), HasTitle(), operator=(), Reset(), x_CreateBioseq(), and x_Cur().
|
private |
Definition at line 1534 of file wgsread.hpp.
Referenced by GetAccession(), GetAccVersion(), GetGeneralOrPatentSeq_id(), GetGi(), GetProteinName(), HasGi(), operator=(), Reset(), and x_Init().
|
private |
Definition at line 1536 of file wgsread.hpp.
Referenced by CWGSProteinIterator(), GetAccession(), GetAccSeq_id(), GetAccVersion(), GetAnnotSet(), GetBestProductFeatRowId(), GetCurrentRowId(), GetGeneralOrPatentSeq_id(), GetGi(), GetId(), GetLocFeatRowIdRange(), GetProductFeatCount(), GetProductFeatRowId(), GetProductName(), GetProteinName(), GetPublicComment(), GetRawGBState(), GetRefAcc(), GetReplacedByRowId(), GetReplacesRowId(), GetSeq_descr(), GetSeq_inst(), GetSeqHash(), GetSeqLength(), GetTaxId(), GetTitle(), HasAnnotSet(), HasPublicComment(), HasSeq_descr(), HasTitle(), operator++(), operator=(), Reset(), SelectRow(), x_CreateBioseq(), and x_Init().
|
private |
Definition at line 1533 of file wgsread.hpp.
Referenced by GetBioseq(), GetDb(), GetGBState(), GetSeq_entry(), GetSeq_inst(), operator=(), Reset(), and x_Init().
|
private |
Definition at line 1536 of file wgsread.hpp.
Referenced by CWGSProteinIterator(), GetFirstBadRowId(), operator=(), Reset(), SelectRow(), and x_Init().
|
private |
Definition at line 1536 of file wgsread.hpp.
Referenced by CWGSProteinIterator(), GetFirstGoodRowId(), operator=(), Reset(), SelectRow(), and x_Init().