NCBI C++ ToolKit
|
Search Toolkit Book for CWGSDb_Impl
#include <sra/readers/sra/wgsread.hpp>
Classes | |
struct | SAmbiguityInfo |
struct | SFeatTableCursor |
struct | SGiIdxTableCursor |
struct | SProt0TableCursor |
struct | SProtAccInfo |
struct | SProtIdxTableCursor |
struct | SProtTableCursor |
struct | SScfTableCursor |
struct | SSeq0TableCursor |
struct | SSeq4naTableCursor |
struct | SSeqTableCursor |
Public Types | |
enum | ERowType { eRowType_contig = 0 , eRowType_scaffold = 'S' , eRowType_protein = 'P' } |
enum | EAllowRowType { fAllowRowType_contig = 1<<0 , fAllowRowType_scaffold = 1<<1 , fAllowRowType_protein = 1<<2 } |
enum | EGnlIdFlags { fGnlId_NoWGSVersion = 1<<0 , fGnlId_NoWGSId = 1<<1 , fGnlId_Default = 0 } |
typedef char | TRowType |
typedef list< CRef< CSeqdesc > > | TMasterDescr |
typedef CSimpleBufferT< char > | TMasterDescrBytes |
typedef COpenRange< TIntId > | TGiRange |
typedef vector< TGiRange > | TGiRanges |
typedef COpenRange< Uint4 > | TIdRange |
typedef map< SProtAccInfo, TIdRange > | TProtAccRanges |
Public Types inherited from CObject | |
enum | EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern } |
Control filling of newly allocated memory. More... | |
typedef CObjectCounterLocker | TLockerType |
Default locker type for CRef. More... | |
typedef atomic< Uint8 > | TCounter |
Counter type is CAtomiCounter. More... | |
typedef Uint8 | TCount |
Alias for value type of counter. More... | |
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 |
Static Public Member Functions | |
static string | NormalizePathOrAccession (CTempString path_or_acc, CTempString vol_path=CTempString()) |
static pair< TVDBRowId, ERowType > | ParseRowType (CTempString acc, TAllowRowType allow) |
static TVDBRowId | ParseContigRow (CTempString acc) |
static TVDBRowId | ParseScaffoldRow (CTempString acc) |
static TVDBRowId | ParseProteinRow (CTempString acc) |
Static Public Member Functions inherited from CObject | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (void) |
Define method to throw null pointer exception. More... | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (const type_info &type) |
static EAllocFillMode | GetAllocFillMode (void) |
static void | SetAllocFillMode (EAllocFillMode mode) |
static void | SetAllocFillMode (const string &value) |
Set mode from configuration parameter value. More... | |
Static Public Member Functions inherited from CDebugDumpable | |
static void | EnableDebugDump (bool on) |
Private Types | |
typedef limited_resource_map< TVDBRowId, CRef< SAmbiguityInfo >, size_t > | TAmbiguityCache |
Friends | |
class | CWGSSeqIterator |
class | CWGSScaffoldIterator |
class | CWGSGiIterator |
class | CWGSProteinIterator |
class | CWGSFeatureIterator |
Additional Inherited Members | |
Static Public Attributes inherited from CObject | |
static const TCount | eCounterBitsCanBeDeleted = 1 << 0 |
Define possible object states. More... | |
static const TCount | eCounterBitsInPlainHeap = 1 << 1 |
Heap signature was found. More... | |
static const TCount | eCounterBitsPlaceMask |
Mask for 'in heap' state flags. More... | |
static const int | eCounterStep = 1 << 2 |
Skip over the "in heap" bits. More... | |
static const TCount | eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2) |
Minimal value for valid objects (reference counter is zero) Must be a single bit value. More... | |
static const TCount | eCounterStateMask |
Valid object, and object in heap. More... | |
Static Public Attributes inherited from SWGSDb_Defs | |
static const TSplitVersion | kDefaultSplitVersion = 0 |
Definition at line 201 of file wgsread.hpp.
|
private |
Definition at line 632 of file wgsread.hpp.
typedef COpenRange<TIntId> CWGSDb_Impl::TGiRange |
Definition at line 360 of file wgsread.hpp.
typedef vector<TGiRange> CWGSDb_Impl::TGiRanges |
Definition at line 361 of file wgsread.hpp.
typedef COpenRange<Uint4> CWGSDb_Impl::TIdRange |
Definition at line 398 of file wgsread.hpp.
typedef list< CRef<CSeqdesc> > CWGSDb_Impl::TMasterDescr |
Definition at line 305 of file wgsread.hpp.
typedef CSimpleBufferT<char> CWGSDb_Impl::TMasterDescrBytes |
Definition at line 314 of file wgsread.hpp.
typedef map<SProtAccInfo, TIdRange> CWGSDb_Impl::TProtAccRanges |
Definition at line 399 of file wgsread.hpp.
typedef char CWGSDb_Impl::TRowType |
Definition at line 231 of file wgsread.hpp.
Enumerator | |
---|---|
fAllowRowType_contig | |
fAllowRowType_scaffold | |
fAllowRowType_protein |
Definition at line 232 of file wgsread.hpp.
Enumerator | |
---|---|
fGnlId_NoWGSVersion | |
fGnlId_NoWGSId | |
fGnlId_Default |
Definition at line 273 of file wgsread.hpp.
Enumerator | |
---|---|
eRowType_contig | |
eRowType_scaffold | |
eRowType_protein |
Definition at line 226 of file wgsread.hpp.
CWGSDb_Impl::CWGSDb_Impl | ( | CVDBMgr & | mgr, |
CTempString | path_or_acc, | ||
CTempString | vol_path = CTempString() |
||
) |
Definition at line 843 of file wgsread.cpp.
References m_Db, m_SeqTable, m_WGSPath, PROFILE, and x_InitIdParams().
|
virtual |
Definition at line 877 of file wgsread.cpp.
void CWGSDb_Impl::AddMasterDescr | ( | CSeq_descr & | descr, |
const CBioseq * | main_seq = 0 , |
||
TFlags | flags = fDefaultFlags |
||
) | const |
Definition at line 3191 of file wgsread.cpp.
References CWGSDb::eDescr_default, ctll::empty(), set< Key, Compare >::end(), set< Key, Compare >::find(), flags, SWGSDb_Defs::fMasterDescrMark, CSeq_descr_Base::Get(), CBioseq_Base::GetDescr(), GetMasterDescr(), CWGSDb::GetMasterDescrType(), CBioseq_Base::IsSetDescr(), ITERATE, kMasterDescrMark, s_AddUserObjectType(), s_GetUserObjectType(), CSeq_descr_Base::Set(), CUser_object_Base::SetType(), CSeqdesc_Base::SetUser(), and CSeqdesc_Base::Which().
Referenced by CWGSSeqIterator::GetSeq_descr(), CWGSScaffoldIterator::GetSeq_descr(), and CWGSProteinIterator::GetSeq_descr().
bool CWGSDb_Impl::CanHaveGis | ( | ) |
Definition at line 3659 of file wgsread.cpp.
References CVDBValue::eMissing_Allow, Put(), Seq(), and rapidjson::value.
Referenced by DetermineFeatLocIdType().
|
inlineprotected |
Definition at line 497 of file wgsread.hpp.
References m_ContigNameIndex, m_ContigNameIndexIsOpened, and OpenContigNameIndex().
Referenced by GetContigNameRowId().
CWGSDb_Impl::DECLARE_SAFE_FLAGS_TYPE | ( | EAllowRowType | , |
TAllowRowType | |||
) |
CWGSDb_Impl::DECLARE_SAFE_FLAGS_TYPE | ( | EGnlIdFlags | , |
TGnlIdFlags | |||
) |
CWGSDb_Impl::EFeatLocIdType CWGSDb_Impl::DetermineFeatLocIdType | ( | ) |
Definition at line 3712 of file wgsread.cpp.
References Begin(), CanHaveGis(), CTempString::data(), SWGSDb_Defs::eFeatLocIdAccNoVer, SWGSDb_Defs::eFeatLocIdAccVer, SWGSDb_Defs::eFeatLocIdGi, Feat(), CSeq_feat_Base::GetLocation(), HasStandardFeatLocIdType(), i, PROFILE, Put(), Seq(), and CTempString::size().
Referenced by GetFeatLocIdType().
|
inlineprotected |
Definition at line 961 of file wgsread.cpp.
References FeatTable(), m_Feat, row, and table.
Referenced by DetermineFeatLocIdType(), GetTotalFeatureCount(), and CWGSFeatureIterator::x_Init().
Definition at line 473 of file wgsread.hpp.
References m_FeatTable, m_FeatTableIsOpened, and OpenFeatTable().
Referenced by Feat().
CRef< CSeq_id > CWGSDb_Impl::GetAccSeq_id | ( | CTempString | acc, |
int | version | ||
) | const |
Definition at line 2913 of file wgsread.cpp.
References CSeq_id_Base::e_not_set, CTempString::empty(), m_SeqIdType, PROFILE, sx_SetAccession(), sx_SetVersion(), and dtl::version.
Referenced by CWGSSeqIterator::GetAccSeq_id(), CWGSScaffoldIterator::GetAccSeq_id(), CWGSProteinIterator::GetAccSeq_id(), GetContigSeq_id(), GetProteinSeq_id(), and GetScaffoldSeq_id().
Definition at line 2932 of file wgsread.cpp.
References eRowType_contig, m_IdPrefixWithVersion, m_IdRowDigits, str(), sx_SetVersion(), and dtl::version.
|
protected |
Definition at line 2211 of file wgsread.cpp.
References limited_resource_map< Key, Value, Resource, Less >::get(), GetWGSPath(), m_AmbiguityCache, m_AmbiguityCacheMutex, row, and s_GlobalAmbiguityCache.
Referenced by CWGSSeqIterator::SAmbiguityAccess::SAmbiguityAccess().
|
inline |
Definition at line 422 of file wgsread.hpp.
References m_CommonTaxId.
Referenced by CWGSSeqIterator::GetTaxId(), and CWGSProteinIterator::GetTaxId().
CSeq_inst::TMol CWGSDb_Impl::GetContigMolType | ( | void | ) | const |
Definition at line 3564 of file wgsread.cpp.
References ContigNameIndex(), CVDBValue::eMissing_Allow, Lookup(), m_ContigNameIndexIsOpened, Put(), compile_time_bits::range(), Seq(), and rapidjson::value.
Referenced by CWGSDb::GetContigNameRowId().
Definition at line 2969 of file wgsread.cpp.
References eRowType_contig, and GetAccSeq_id().
CWGSDb_Impl::EFeatLocIdType CWGSDb_Impl::GetFeatLocIdType | ( | ) |
Definition at line 3771 of file wgsread.cpp.
References DetermineFeatLocIdType(), SWGSDb_Defs::eFeatLocIdUninitialized, and m_FeatLocIdType.
Referenced by SWGSFeatChunkInfo::CreateChunkInfo().
|
protected |
Definition at line 2893 of file wgsread.cpp.
References fGnlId_NoWGSVersion, GetGeneralSeq_id(), GetPatentSeq_id(), HasPatentId(), str(), and sx_GetStringId().
|
protected |
Definition at line 2872 of file wgsread.cpp.
References GetGeneralSeq_id(), GetPatentSeq_id(), HasPatentId(), str(), and sx_GetStringId().
|
protected |
Definition at line 2851 of file wgsread.cpp.
References GetGeneralSeq_id(), GetPatentSeq_id(), HasPatentId(), str(), and sx_GetStringId().
CRef< CSeq_id > CWGSDb_Impl::GetGeneralOrPatentSeq_id | ( | CTempString | str, |
TVDBRowId | row, | ||
TGnlIdFlags | gnl_id_flags = fGnlId_Default |
||
) | const |
Definition at line 2832 of file wgsread.cpp.
References fGnlId_NoWGSId, GetGeneralSeq_id(), GetPatentSeq_id(), HasPatentId(), str(), and sx_GetStringId().
Referenced by CWGSSeqIterator::GetGeneralOrPatentSeq_id(), and CWGSProteinIterator::GetGeneralOrPatentSeq_id().
CRef< CSeq_id > CWGSDb_Impl::GetGeneralSeq_id | ( | CTempString | prefix, |
CTempString | tag | ||
) | const |
Definition at line 2777 of file wgsread.cpp.
References CTempString::empty(), CDbtag_Base::SetDb(), sx_SetTag(), and tag.
Referenced by GetGeneralOrPatentSeq_id(), and CWGSScaffoldIterator::GetGeneralOrPatentSeq_id().
CRef< CSeq_id > CWGSDb_Impl::GetGeneralSeq_id | ( | CTempString | tag, |
TGnlIdFlags | gnl_id_flags = fGnlId_Default |
||
) | const |
Definition at line 2793 of file wgsread.cpp.
References fGnlId_NoWGSVersion, m_HasNoDefaultGnlId, m_IdPrefixDb, m_IdPrefixDbWithVersion, NPOS, CDbtag_Base::SetDb(), NStr::StartsWith(), sx_SetTag(), and tag.
Definition at line 3482 of file wgsread.cpp.
References CVDBValue::eMissing_Allow, GI_TO, GiIdx(), Put(), and rapidjson::value.
Referenced by CWGSDb::GetGiRowId().
Definition at line 209 of file wgsread.hpp.
References m_IdPrefix.
Definition at line 212 of file wgsread.hpp.
References m_IdPrefixWithVersion.
|
inline |
Definition at line 267 of file wgsread.hpp.
References m_IdRowDigits.
|
inline |
Definition at line 310 of file wgsread.hpp.
References m_MasterDescr.
Referenced by AddMasterDescr(), and CWGSScaffoldIterator::HasSeq_descr().
size_t CWGSDb_Impl::GetMasterDescrBytes | ( | TMasterDescrBytes & | buffer | ) |
Definition at line 3022 of file wgsread.cpp.
References buffer, CKMDataNode::eMissing_Allow, CKMDataNode::GetData(), CKMDataNode::GetSize(), SeqTable(), and ncbi::grid::netcache::search::fields::size.
Referenced by GetMasterDescrEntry().
CRef< CSeq_entry > CWGSDb_Impl::GetMasterDescrEntry | ( | void | ) |
Definition at line 3043 of file wgsread.cpp.
References buffer, CBioseq_Base::GetId(), GetMasterDescrBytes(), CSeq_entry_Base::GetSeq(), CSeq_entry_Base::IsSeq(), m_MasterEntry, m_TableMutex, SetPatentId(), and str().
Referenced by x_LoadMasterDescr().
TGi CWGSDb_Impl::GetMasterGi | ( | void | ) | const |
Definition at line 3284 of file wgsread.cpp.
References CSeq_id_Base::GetGi(), CBioseq_Base::GetId(), CSeq_entry_Base::GetSeq(), ITERATE, m_MasterEntry, and ZERO_GI.
CRef< CSeq_entry > CWGSDb_Impl::GetMasterSeq_entry | ( | void | ) | const |
Definition at line 3238 of file wgsread.cpp.
References CSeq_inst_Base::eMol_dna, CSeq_inst_Base::eRepr_virtual, GetMasterSeq_id(), m_MasterDescr, m_MasterEntry, CBioseq_Base::SetDescr(), CBioseq_Base::SetId(), CBioseq_Base::SetInst(), CSeq_inst_Base::SetMol(), CSeq_inst_Base::SetRepr(), and CSeq_entry_Base::SetSeq().
Definition at line 2953 of file wgsread.cpp.
References m_IdPrefix, m_IdRowDigits, m_IdVersion, and sx_SetVersion().
Referenced by GetMasterSeq_entry().
Definition at line 3310 of file wgsread.cpp.
References GiIdx(), Put(), and s_ToGi().
Referenced by CWGSDb::GetNucGiRange().
CWGSDb_Impl::TGiRanges CWGSDb_Impl::GetNucGiRanges | ( | void | ) |
Definition at line 3369 of file wgsread.cpp.
References GI_TO, i, Put(), s_ToGi(), Seq(), and x_SortGiRanges().
Referenced by CWGSDb::GetNucGiRanges().
Definition at line 3507 of file wgsread.cpp.
References CVDBValue::eMissing_Allow, GI_TO, GiIdx(), Put(), and rapidjson::value.
Referenced by CWGSDb::GetNucGiRowId().
Definition at line 331 of file wgsread.hpp.
References m_PatentId.
Definition at line 2821 of file wgsread.cpp.
References CRef< C, Locker >::GetNCObject(), m_PatentId, CPatent_seq_id_Base::SetCit(), CSeq_id_Base::SetPatent(), and CPatent_seq_id_Base::SetSeqid().
Referenced by GetGeneralOrPatentSeq_id().
Definition at line 3600 of file wgsread.cpp.
References Lookup(), m_ProductNameIndexIsOpened, and ProductNameIndex().
Referenced by CWGSDb::GetProductNameRowId().
|
inline |
Definition at line 408 of file wgsread.hpp.
References m_ProjectGBState.
Referenced by HasStandardFeatLocIdType().
CWGSDb_Impl::TProtAccRanges CWGSDb_Impl::GetProtAccRanges | ( | void | ) |
Definition at line 3445 of file wgsread.cpp.
References CTempString::empty(), map_checker< Container >::end(), i, info, map_checker< Container >::insert(), map_checker< Container >::lower_bound(), Prot0(), Put(), and compile_time_bits::range().
Referenced by CWGSDb::GetProtAccRanges().
Definition at line 3607 of file wgsread.cpp.
References CVDBValue::eMissing_Allow, CVDBValue::empty(), NStr::Equal(), prot, Prot0(), ProtIdx(), Put(), compile_time_bits::range(), CVDBValue::size(), tmp, NStr::ToUpper(), and rapidjson::value.
Referenced by CWGSDb::GetProtAccRowId().
CSeq_inst::TMol CWGSDb_Impl::GetProteinMolType | ( | void | ) | const |
Definition at line 2999 of file wgsread.cpp.
References CSeq_inst_Base::eMol_aa.
Definition at line 3593 of file wgsread.cpp.
References Lookup(), m_ProteinNameIndexIsOpened, and ProteinNameIndex().
Referenced by CWGSDb::GetProteinNameRowId().
Definition at line 2981 of file wgsread.cpp.
References eRowType_protein, and GetAccSeq_id().
Referenced by CWGSProteinIterator::GetAccSeq_id().
Definition at line 3330 of file wgsread.cpp.
References GiIdx(), Put(), and s_ToGi().
Referenced by CWGSDb::GetProtGiRange().
CWGSDb_Impl::TGiRanges CWGSDb_Impl::GetProtGiRanges | ( | void | ) |
Definition at line 3401 of file wgsread.cpp.
Referenced by CWGSDb::GetProtGiRanges().
Definition at line 3525 of file wgsread.cpp.
References CVDBValue::eMissing_Allow, GI_TO, GiIdx(), Put(), and rapidjson::value.
Referenced by CWGSDb::GetProtGiRowId().
Definition at line 411 of file wgsread.hpp.
References m_ReplacedBy.
CSeq_inst::TMol CWGSDb_Impl::GetScaffoldMolType | ( | void | ) | const |
Definition at line 2993 of file wgsread.cpp.
References CSeq_inst_Base::eMol_dna.
Definition at line 3586 of file wgsread.cpp.
References Lookup(), m_ScaffoldNameIndexIsOpened, and ScaffoldNameIndex().
Referenced by CWGSDb::GetScaffoldNameRowId().
Definition at line 2975 of file wgsread.cpp.
References eRowType_scaffold, and GetAccSeq_id().
Referenced by CWGSScaffoldIterator::GetAccSeq_id().
TVDBRowCount CWGSDb_Impl::GetTotalFeatureCount | ( | ) |
Definition at line 3677 of file wgsread.cpp.
Referenced by HasFeatures().
Definition at line 215 of file wgsread.hpp.
References m_WGSPath.
Referenced by GetAmbiguityInfo(), CWGSDb::GetWGSPath(), HasStandardFeatLocIdType(), and PutAmbiguityInfo().
|
inlineprotected |
Definition at line 975 of file wgsread.cpp.
References GiIdxTable(), m_GiIdx, row, and table.
Referenced by GetGiRowId(), GetNucGiRange(), GetNucGiRowId(), GetProtGiRange(), GetProtGiRowId(), and CWGSGiIterator::x_Init().
Definition at line 479 of file wgsread.hpp.
References m_GiIdxTable, m_GiIdxTableIsOpened, and OpenGiIdxTable().
Referenced by GiIdx().
|
inline |
Definition at line 418 of file wgsread.hpp.
References m_HasCommonTaxId.
Referenced by CWGSSeqIterator::HasTaxId().
bool CWGSDb_Impl::HasFeatures | ( | ) |
Definition at line 3688 of file wgsread.cpp.
References GetTotalFeatureCount().
|
inline |
Definition at line 327 of file wgsread.hpp.
References m_PatentId.
Referenced by GetGeneralOrPatentSeq_id().
bool CWGSDb_Impl::HasStandardFeatLocIdType | ( | ) |
Definition at line 3694 of file wgsread.cpp.
References GetProjectGBState(), GetWGSPath(), IsReplaced(), NCBI_gb_state_eWGSGenBankMissing, and NPOS.
Referenced by DetermineFeatLocIdType().
|
inline |
Definition at line 414 of file wgsread.hpp.
References m_ReplacedBy.
Referenced by HasStandardFeatLocIdType().
|
inline |
Definition at line 307 of file wgsread.hpp.
References m_IsSetMasterDescr.
Referenced by LoadMasterDescr().
bool CWGSDb_Impl::IsTSA | ( | void | ) | const |
Definition at line 2771 of file wgsread.cpp.
References CSeq_inst_Base::eMol_rna, and GetContigMolType().
Referenced by x_InitIdParams().
Definition at line 3012 of file wgsread.cpp.
References IsSetMasterDescr(), NCBI_PARAM_TYPE, and x_LoadMasterDescr().
Referenced by CWGSDb::LoadMasterDescr().
|
inlineprotected |
Definition at line 3544 of file wgsread.cpp.
References CVDBTableIndex::Find(), NStr::IsUpper(), compile_time_bits::range(), tmp, and NStr::ToUpper().
Referenced by GetContigNameRowId(), GetProductNameRowId(), GetProteinNameRowId(), and GetScaffoldNameRowId().
|
static |
Definition at line 2322 of file wgsread.cpp.
References CTempString::empty(), CTempString::find(), CVPath::IsPlainAccession(), ITERATE, LOG_POST, CDirEntry::MakePath(), NCBI_PARAM_TYPE, CTempString::size(), NStr::Split(), string, CTempString::substr(), and Warning().
Referenced by CWGSDataLoader_Impl::OpenWGSFileOnce().
|
protected |
Definition at line 2449 of file wgsread.cpp.
References m_ContigNameIndex, m_ContigNameIndexIsOpened, OpenIndex(), and SeqTable().
Referenced by ContigNameIndex().
|
protected |
Definition at line 2431 of file wgsread.cpp.
References m_FeatTable, m_FeatTableIsOpened, and OpenTable().
Referenced by FeatTable().
|
protected |
Definition at line 2437 of file wgsread.cpp.
References m_GiIdxTable, m_GiIdxTableIsOpened, and OpenTable().
Referenced by GiIdxTable().
|
inlineprotected |
Definition at line 2388 of file wgsread.cpp.
References CVDBTableIndex::eMissing_Allow, m_TableMutex, and table.
Referenced by OpenContigNameIndex(), OpenProductNameIndex(), OpenProtAccIndex(), OpenProteinNameIndex(), and OpenScaffoldNameIndex().
|
protected |
Definition at line 2470 of file wgsread.cpp.
References m_ProductNameIndex, m_ProductNameIndexIsOpened, OpenIndex(), and ProtTable().
Referenced by ProductNameIndex().
|
protected |
Definition at line 2477 of file wgsread.cpp.
References m_ProtAccIndex, m_ProtAccIndexIsOpened, OpenIndex(), and ProtTable().
Referenced by ProtAccIndex().
|
protected |
Definition at line 2463 of file wgsread.cpp.
References m_ProteinNameIndex, m_ProteinNameIndexIsOpened, OpenIndex(), and ProtTable().
Referenced by ProteinNameIndex().
|
protected |
Definition at line 2443 of file wgsread.cpp.
References m_ProtIdxTable, m_ProtIdxTableIsOpened, and OpenTable().
Referenced by ProtIdxTable().
|
protected |
Definition at line 2425 of file wgsread.cpp.
References m_ProtTable, m_ProtTableIsOpened, and OpenTable().
Referenced by ProtTable().
|
protected |
Definition at line 2456 of file wgsread.cpp.
References m_ScaffoldNameIndex, m_ScaffoldNameIndexIsOpened, OpenIndex(), and ScfTable().
Referenced by ScaffoldNameIndex().
|
protected |
Definition at line 2419 of file wgsread.cpp.
References m_ScfTable, m_ScfTableIsOpened, and OpenTable().
Referenced by ScfTable().
|
inlineprotected |
Definition at line 2375 of file wgsread.cpp.
References CVDBTable::eMissing_Allow, m_Db, m_TableMutex, table, and table_name.
Referenced by OpenFeatTable(), OpenGiIdxTable(), OpenProtIdxTable(), OpenProtTable(), and OpenScfTable().
|
inlinestatic |
Definition at line 252 of file wgsread.hpp.
References fAllowRowType_contig, and ParseRowType().
Referenced by CWGSDb::ParseContigRow().
|
inlinestatic |
Definition at line 264 of file wgsread.hpp.
References fAllowRowType_protein, and ParseRowType().
Referenced by CWGSDb::ParseProteinRow().
TVDBRowId CWGSDb_Impl::ParseRow | ( | CTempString | acc, |
bool * | is_scaffold | ||
) | const |
Definition at line 2523 of file wgsread.cpp.
References eRowType_scaffold, fAllowRowType_contig, fAllowRowType_scaffold, and ParseRowType().
Referenced by CWGSDb::ParseRow().
|
static |
Definition at line 2485 of file wgsread.cpp.
References eRowType_contig, eRowType_protein, eRowType_scaffold, fAllowRowType_contig, fAllowRowType_protein, fAllowRowType_scaffold, NStr::fConvErr_NoThrow, CTempString::find_first_of(), NPOS, row, CTempString::size(), and CTempString::substr().
Referenced by ParseContigRow(), ParseProteinRow(), ParseRow(), and ParseScaffoldRow().
|
inlinestatic |
Definition at line 258 of file wgsread.hpp.
References fAllowRowType_scaffold, and ParseRowType().
Referenced by CWGSDb::ParseScaffoldRow().
|
inlineprotected |
Definition at line 515 of file wgsread.hpp.
References m_ProductNameIndex, m_ProductNameIndexIsOpened, and OpenProductNameIndex().
Referenced by GetProductNameRowId().
|
inlineprotected |
Definition at line 947 of file wgsread.cpp.
References m_Prot, ProtTable(), row, and table.
Referenced by CWGSProteinIterator::x_Cur().
|
inlineprotected |
Definition at line 933 of file wgsread.cpp.
References m_Prot0, ProtTable(), row, and table.
Referenced by GetProtAccRanges(), GetProtAccRowId(), and CWGSProteinIterator::x_Init().
|
inlineprotected |
Definition at line 491 of file wgsread.hpp.
References m_ProtAccIndex, m_ProtAccIndexIsOpened, and OpenProtAccIndex().
|
inlineprotected |
Definition at line 509 of file wgsread.hpp.
References m_ProteinNameIndex, m_ProteinNameIndexIsOpened, and OpenProteinNameIndex().
Referenced by GetProteinNameRowId().
|
inlineprotected |
Definition at line 989 of file wgsread.cpp.
References m_ProtIdx, ProtIdxTable(), row, and table.
Referenced by GetProtAccRowId().
Definition at line 485 of file wgsread.hpp.
References m_ProtIdxTable, m_ProtIdxTableIsOpened, and OpenProtIdxTable().
Referenced by ProtIdx().
Definition at line 467 of file wgsread.hpp.
References m_ProtTable, m_ProtTableIsOpened, and OpenProtTable().
Referenced by OpenProductNameIndex(), OpenProtAccIndex(), OpenProteinNameIndex(), Prot(), and Prot0().
|
inlineprotected |
Definition at line 1045 of file wgsread.cpp.
|
inlineprotected |
Definition at line 1052 of file wgsread.cpp.
|
inlineprotected |
Definition at line 1031 of file wgsread.cpp.
|
inlineprotected |
Definition at line 1059 of file wgsread.cpp.
|
inlineprotected |
Definition at line 1038 of file wgsread.cpp.
|
inlineprotected |
Definition at line 1024 of file wgsread.cpp.
|
inlineprotected |
Definition at line 1003 of file wgsread.cpp.
Referenced by CanHaveGis(), DetermineFeatLocIdType(), GetContigNameRowId(), GetGiRowId(), GetNucGiRange(), GetNucGiRanges(), GetNucGiRowId(), GetProtAccRanges(), GetProtAccRowId(), GetProtGiRange(), GetProtGiRowId(), GetTotalFeatureCount(), CWGSGiIterator::Reset(), CWGSProteinIterator::Reset(), CWGSFeatureIterator::Reset(), and x_InitIdParams().
|
inlineprotected |
Definition at line 1017 of file wgsread.cpp.
|
inlineprotected |
Definition at line 1010 of file wgsread.cpp.
|
protected |
Definition at line 2223 of file wgsread.cpp.
References GetWGSPath(), info, m_AmbiguityCache, m_AmbiguityCacheMutex, limited_resource_map< Key, Value, Resource, Less >::put(), and s_GlobalAmbiguityCache.
Referenced by CWGSSeqIterator::SAmbiguityAccess::~SAmbiguityAccess().
void CWGSDb_Impl::ResetMasterDescr | ( | void | ) |
Definition at line 3005 of file wgsread.cpp.
References m_IsSetMasterDescr, and m_MasterDescr.
|
inlineprotected |
Definition at line 503 of file wgsread.hpp.
References m_ScaffoldNameIndex, m_ScaffoldNameIndexIsOpened, and OpenScaffoldNameIndex().
Referenced by GetScaffoldNameRowId().
|
inlineprotected |
Definition at line 919 of file wgsread.cpp.
References m_Scf, row, ScfTable(), and table.
Referenced by CWGSScaffoldIterator::x_Init().
Definition at line 461 of file wgsread.hpp.
References m_ScfTable, m_ScfTableIsOpened, and OpenScfTable().
Referenced by OpenScaffoldNameIndex(), and Scf().
|
inlineprotected |
Definition at line 895 of file wgsread.cpp.
References m_Seq, row, and SeqTable().
Referenced by CanHaveGis(), DetermineFeatLocIdType(), GetContigNameRowId(), GetNucGiRanges(), and CWGSSeqIterator::x_Init().
|
inlineprotected |
Definition at line 883 of file wgsread.cpp.
References m_Seq0, row, and SeqTable().
Referenced by CWGSSeqIterator::x_Init(), and x_InitIdParams().
|
inlineprotected |
Definition at line 907 of file wgsread.cpp.
References SeqTable().
Referenced by CWGSDb_Impl::SAmbiguityInfo::x_Calculate4na(), and CWGSDb_Impl::SAmbiguityInfo::x_CalculateAmbiguityMask().
Definition at line 458 of file wgsread.hpp.
References m_SeqTable.
Referenced by GetMasterDescrBytes(), OpenContigNameIndex(), Seq(), Seq0(), Seq4na(), and x_InitIdParams().
void CWGSDb_Impl::SetMasterDescr | ( | const TMasterDescr & | descr, |
int | filter | ||
) |
Definition at line 3140 of file wgsread.cpp.
References CWGSDb::eDescr_skip, CWGSDb::eDescrDefaultFilter, CWGSDb::eDescrNoFilter, CWGSDb::GetMasterDescrType(), ITERATE, m_IsSetMasterDescr, m_MasterDescr, Ref(), and SerialClone().
Referenced by CWGSDb::SetMasterDescr(), and x_LoadMasterDescr().
Definition at line 3258 of file wgsread.cpp.
References m_PatentId.
Referenced by GetMasterDescrEntry().
|
protected |
Definition at line 2239 of file wgsread.cpp.
References CKMDataNode::eMissing_Allow, CSeq_inst_Base::eMol_dna, CSeq_inst_Base::eMol_rna, CTempString::find_first_of(), IsTSA(), m_CommonTaxId, m_ContigMolType, m_HasCommonTaxId, m_HasNoDefaultGnlId, m_IdPrefix, m_IdPrefixDb, m_IdPrefixDbWithVersion, m_IdPrefixWithVersion, m_IdRowDigits, m_IdVersion, m_ProjectGBState, m_ReplacedBy, m_SeqIdType, NCBI_THROW_FMT, Put(), Seq0(), SeqTable(), ncbi::grid::netcache::search::fields::size, CTempString::substr(), rapidjson::value, and ZERO_TAX_ID.
Referenced by CWGSDb_Impl().
|
protected |
Definition at line 3097 of file wgsread.cpp.
References GetMasterDescrEntry(), and SetMasterDescr().
Referenced by LoadMasterDescr().
|
protected |
Definition at line 3350 of file wgsread.cpp.
References i, and ct::sort().
Referenced by GetNucGiRanges().
|
friend |
Definition at line 437 of file wgsread.hpp.
|
friend |
Definition at line 435 of file wgsread.hpp.
|
friend |
Definition at line 436 of file wgsread.hpp.
|
friend |
Definition at line 434 of file wgsread.hpp.
|
friend |
Definition at line 433 of file wgsread.hpp.
|
private |
Definition at line 633 of file wgsread.hpp.
Referenced by GetAmbiguityInfo(), and PutAmbiguityInfo().
|
private |
Definition at line 631 of file wgsread.hpp.
Referenced by GetAmbiguityInfo(), and PutAmbiguityInfo().
|
private |
Definition at line 646 of file wgsread.hpp.
Referenced by GetCommonTaxId(), and x_InitIdParams().
|
private |
Definition at line 635 of file wgsread.hpp.
Referenced by GetContigMolType(), and x_InitIdParams().
|
private |
Definition at line 626 of file wgsread.hpp.
Referenced by ContigNameIndex(), and OpenContigNameIndex().
|
private |
Definition at line 607 of file wgsread.hpp.
Referenced by ContigNameIndex(), GetContigNameRowId(), and OpenContigNameIndex().
|
private |
Definition at line 591 of file wgsread.hpp.
Referenced by CWGSDb_Impl(), OpenTable(), and CWGSSeqIterator::Reset().
|
private |
Definition at line 622 of file wgsread.hpp.
|
private |
Definition at line 639 of file wgsread.hpp.
Referenced by GetFeatLocIdType().
|
private |
Definition at line 613 of file wgsread.hpp.
Referenced by FeatTable(), and OpenFeatTable().
|
private |
Definition at line 603 of file wgsread.hpp.
Referenced by FeatTable(), and OpenFeatTable().
|
private |
Definition at line 623 of file wgsread.hpp.
|
private |
Definition at line 614 of file wgsread.hpp.
Referenced by GiIdxTable(), and OpenGiIdxTable().
|
private |
Definition at line 604 of file wgsread.hpp.
Referenced by GiIdxTable(), and OpenGiIdxTable().
|
private |
Definition at line 638 of file wgsread.hpp.
Referenced by HasCommonTaxId(), and x_InitIdParams().
|
private |
Definition at line 637 of file wgsread.hpp.
Referenced by GetGeneralSeq_id(), and x_InitIdParams().
|
private |
Definition at line 594 of file wgsread.hpp.
Referenced by GetIdPrefix(), GetMasterSeq_id(), and x_InitIdParams().
|
private |
Definition at line 596 of file wgsread.hpp.
Referenced by GetGeneralSeq_id(), and x_InitIdParams().
|
private |
Definition at line 595 of file wgsread.hpp.
Referenced by GetGeneralSeq_id(), and x_InitIdParams().
|
private |
Definition at line 593 of file wgsread.hpp.
Referenced by GetAccSeq_id(), GetIdPrefixWithVersion(), and x_InitIdParams().
|
private |
Definition at line 598 of file wgsread.hpp.
Referenced by GetAccSeq_id(), GetIdRowDigits(), GetMasterSeq_id(), and x_InitIdParams().
|
private |
Definition at line 597 of file wgsread.hpp.
Referenced by GetMasterSeq_id(), and x_InitIdParams().
|
private |
Definition at line 636 of file wgsread.hpp.
Referenced by IsSetMasterDescr(), ResetMasterDescr(), and SetMasterDescr().
|
private |
Definition at line 641 of file wgsread.hpp.
Referenced by GetMasterDescr(), GetMasterSeq_entry(), ResetMasterDescr(), and SetMasterDescr().
|
private |
Definition at line 640 of file wgsread.hpp.
Referenced by GetMasterDescrEntry(), GetMasterGi(), and GetMasterSeq_entry().
|
private |
Definition at line 589 of file wgsread.hpp.
Definition at line 642 of file wgsread.hpp.
Referenced by GetPatentId(), GetPatentSeq_id(), HasPatentId(), and SetPatentId().
|
private |
Definition at line 629 of file wgsread.hpp.
Referenced by OpenProductNameIndex(), and ProductNameIndex().
|
private |
Definition at line 610 of file wgsread.hpp.
Referenced by GetProductNameRowId(), OpenProductNameIndex(), and ProductNameIndex().
|
private |
Definition at line 643 of file wgsread.hpp.
Referenced by GetProjectGBState(), and x_InitIdParams().
|
private |
Definition at line 621 of file wgsread.hpp.
|
private |
Definition at line 620 of file wgsread.hpp.
|
private |
Definition at line 625 of file wgsread.hpp.
Referenced by OpenProtAccIndex(), and ProtAccIndex().
|
private |
Definition at line 606 of file wgsread.hpp.
Referenced by OpenProtAccIndex(), and ProtAccIndex().
|
private |
Definition at line 628 of file wgsread.hpp.
Referenced by OpenProteinNameIndex(), and ProteinNameIndex().
|
private |
Definition at line 609 of file wgsread.hpp.
Referenced by GetProteinNameRowId(), OpenProteinNameIndex(), and ProteinNameIndex().
|
private |
Definition at line 624 of file wgsread.hpp.
|
private |
Definition at line 615 of file wgsread.hpp.
Referenced by OpenProtIdxTable(), and ProtIdxTable().
|
private |
Definition at line 605 of file wgsread.hpp.
Referenced by OpenProtIdxTable(), and ProtIdxTable().
|
private |
Definition at line 612 of file wgsread.hpp.
Referenced by OpenProtTable(), and ProtTable().
|
private |
Definition at line 602 of file wgsread.hpp.
Referenced by OpenProtTable(), and ProtTable().
|
private |
Definition at line 645 of file wgsread.hpp.
Referenced by GetReplacedBy(), IsReplaced(), and x_InitIdParams().
|
private |
Definition at line 627 of file wgsread.hpp.
Referenced by OpenScaffoldNameIndex(), and ScaffoldNameIndex().
|
private |
Definition at line 608 of file wgsread.hpp.
Referenced by GetScaffoldNameRowId(), OpenScaffoldNameIndex(), and ScaffoldNameIndex().
|
private |
Definition at line 619 of file wgsread.hpp.
|
private |
Definition at line 611 of file wgsread.hpp.
Referenced by OpenScfTable(), and ScfTable().
|
private |
Definition at line 601 of file wgsread.hpp.
Referenced by OpenScfTable(), and ScfTable().
|
private |
Definition at line 618 of file wgsread.hpp.
|
private |
Definition at line 617 of file wgsread.hpp.
|
private |
Definition at line 644 of file wgsread.hpp.
Referenced by GetAccSeq_id(), and x_InitIdParams().
|
private |
Definition at line 592 of file wgsread.hpp.
Referenced by CWGSDb_Impl(), and SeqTable().
|
private |
Definition at line 600 of file wgsread.hpp.
Referenced by GetMasterDescrEntry(), OpenIndex(), and OpenTable().
|
private |
Definition at line 590 of file wgsread.hpp.
Referenced by CWGSDb_Impl(), and GetWGSPath().