NCBI C++ ToolKit
|
Search Toolkit Book for CBamDb
#include <sra/readers/bam/bamread.hpp>
Classes | |
class | ICollectPileupCallback |
struct | SAADBImpl |
struct | SPileupValues |
struct | STagInfo |
Public Types | |
enum | EUseAPI { eUseDefaultAPI , eUseAlignAccess , eUseRawIndex } |
typedef vector< STagInfo > | TTagList |
Static Public Member Functions | |
static bool | UseRawIndex (EUseAPI use_api) |
static int | GetDebugLevel () |
Private Types | |
typedef unordered_map< string, TSeqPos > | TRefSeqLengths |
typedef unordered_map< string, CRef< CSeq_id > > | TRefSeqIds |
Private Attributes | |
string | m_DbName |
string | m_IndexName |
AutoPtr< IIdMapper > | m_IdMapper |
TTagList | m_IncludedAlignTags |
AutoPtr< TRefSeqLengths > | m_RefSeqLengths |
AutoPtr< TRefSeqIds > | m_RefSeqIds |
CRef< SAADBImpl > | m_AADB |
CRef< CObjectFor< CBamRawDb > > | m_RawDB |
Friends | |
class | CBamRefSeqIterator |
class | CBamAlignIterator |
Definition at line 186 of file bamread.hpp.
|
private |
Definition at line 521 of file bamread.hpp.
|
private |
Definition at line 519 of file bamread.hpp.
typedef vector<STagInfo> CBamDb::TTagList |
Definition at line 254 of file bamread.hpp.
enum CBamDb::EUseAPI |
Enumerator | |
---|---|
eUseDefaultAPI | |
eUseAlignAccess | |
eUseRawIndex |
Definition at line 189 of file bamread.hpp.
|
inline |
Definition at line 194 of file bamread.hpp.
Definition at line 950 of file bamread.cpp.
References m_AADB, m_RawDB, s_UpdateVDBRequestContext(), and UseRawIndex().
CBamDb::CBamDb | ( | const CBamMgr & | mgr, |
const string & | db_name, | ||
const string & | idx_name, | ||
EUseAPI | use_api = eUseDefaultAPI |
||
) |
Definition at line 965 of file bamread.cpp.
References CObjectFor< T >::GetData(), m_AADB, m_IndexName, m_RawDB, s_UpdateVDBRequestContext(), and UseRawIndex().
size_t CBamDb::CollectPileup | ( | SPileupValues & | values, |
const string & | ref_id, | ||
CRange< TSeqPos > | graph_range, | ||
ICollectPileupCallback * | callback = 0 , |
||
SPileupValues::EIntronMode | intron_mode = SPileupValues::eNoCountIntron , |
||
TSeqPos | gap_to_intron_threshold = kInvalidSeqPos |
||
) | const |
CBamDb::DECLARE_OPERATOR_BOOL | ( | m_AADB|| | m_RawDB | ) |
bool CBamDb::ExcludeAlignTag | ( | CTempString | tag | ) |
Definition at line 1640 of file bamread.cpp.
References m_IncludedAlignTags, NCBI_THROW_FMT, and tag.
Definition at line 225 of file bamread.hpp.
References m_DbName.
Referenced by CBam2Seq_graph::CollectEstimatedCoverage(), CBam2Seq_graph::CollectRawAccessCoverage(), and CBam2Seq_graph::MakeSeq_entry().
|
static |
Definition at line 389 of file bamread.cpp.
References DEBUG, NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CBamIndex::Read(), and s_VDBInit().
string CBamDb::GetHeaderText | ( | void | ) | const |
Definition at line 1048 of file bamread.cpp.
References file, CObjectFor< T >::GetData(), m_AADB, m_RawDB, NCBI_THROW2, s_UpdateVDBRequestContext(), ncbi::grid::netcache::search::fields::size, string, and UsesRawIndex().
|
inline |
Definition at line 240 of file bamread.hpp.
References AutoPtr< X, Del >::get(), and m_IdMapper.
Referenced by CBamRefSeqIterator::GetIdMapper(), CBamAlignIterator::GetIdMapper(), GetRefSeq_id(), and GetShortSeq_id().
Definition at line 255 of file bamread.hpp.
References m_IncludedAlignTags.
Referenced by CBamAlignIterator::GetMatchAlign().
Definition at line 229 of file bamread.hpp.
References m_IndexName.
Referenced by CBam2Seq_graph::CollectEstimatedCoverage(), and CBam2Seq_graph::CollectRawAccessCoverage().
TSeqPos CBamDb::GetPageSize | ( | void | ) | const |
Definition at line 983 of file bamread.cpp.
References CObjectFor< T >::GetData(), SBamIndexDefs::kBAI_min_shift, m_RawDB, and UsesRawIndex().
|
inline |
Definition at line 220 of file bamread.hpp.
References m_RawDB.
Referenced by CBam2Seq_graph::CollectEstimatedCoverage(), CBam2Seq_graph::CollectRawAccessCoverage(), CBamRefSeqInfo::CreateChunks(), CBamRefSeqInfo::EstimateAlignLoadSeconds(), CBamRefSeqInfo::EstimatePileupLoadSeconds(), CBamRefSeqInfo::EstimateSeqLoadSeconds(), and CBamRefSeqInfo::x_LoadRangesEstimated().
Definition at line 995 of file bamread.cpp.
References DEFINE_STATIC_FAST_MUTEX(), GetIdMapper(), label, m_RefSeqIds, and sx_GetRefSeq_id().
Referenced by CBamAlignIterator::GetMatchAlign(), CBamRefSeqIterator::GetRefSeq_id(), CBamAlignIterator::GetRefSeq_id(), and CBamUILoadManager::x_GetBamRefSeqs().
Definition at line 1023 of file bamread.cpp.
References DEFINE_STATIC_FAST_MUTEX(), kInvalidSeqPos, len, and m_RefSeqLengths.
Referenced by CBam2Seq_graph::CollectCoverage(), and CBamFileInfo::GetRefSeqLength().
Definition at line 1017 of file bamread.cpp.
References GetIdMapper(), str(), and sx_GetShortSeq_id().
bool CBamDb::IncludeAlignTag | ( | CTempString | tag | ) |
Definition at line 1622 of file bamread.cpp.
References info, m_IncludedAlignTags, NCBI_THROW_FMT, and tag.
Referenced by CBamFileInfo::x_Initialize().
|
inline |
Definition at line 236 of file bamread.hpp.
References m_IdMapper, and AutoPtr< X, Del >::reset().
Referenced by CBamUtils::CreateCoverageGraphs(), CCreateCoverageTask::Execute(), CBamUILoadManager::x_GetBamRefSeqs(), and CBamFileInfo::x_Initialize().
Definition at line 401 of file bamread.cpp.
References eUseDefaultAPI, eUseRawIndex, NCBI_PARAM_TYPE, and rapidjson::value.
Referenced by CBamDb().
|
inline |
Definition at line 212 of file bamread.hpp.
References m_AADB.
|
inline |
Definition at line 216 of file bamread.hpp.
References m_RawDB.
Referenced by CBamAlignIterator::CBamAlignIterator(), CBamRefSeqIterator::CBamRefSeqIterator(), CBam2Seq_graph::CollectEstimatedCoverage(), CBam2Seq_graph::CollectRawAccessCoverage(), CBamRefSeqInfo::CreateChunks(), CBamRefSeqInfo::EstimateAlignLoadSeconds(), CBamRefSeqInfo::EstimatePileupLoadSeconds(), CBamRefSeqInfo::EstimateSeqLoadSeconds(), GetHeaderText(), GetPageSize(), CBamRefSeqInfo::LoadMainSplit(), CBamRefSeqInfo::x_AddSeqChunk(), CBamRefSeqInfo::x_LoadRangesCov(), and CBamRefSeqInfo::x_LoadRangesEstimated().
|
friend |
Definition at line 504 of file bamread.hpp.
|
friend |
Definition at line 503 of file bamread.hpp.
Definition at line 523 of file bamread.hpp.
Referenced by CBamAlignIterator::CBamAlignIterator(), CBamDb(), CBamRefSeqIterator::CBamRefSeqIterator(), GetHeaderText(), and UsesAlignAccessDB().
|
private |
Definition at line 515 of file bamread.hpp.
Referenced by GetDbName().
Definition at line 517 of file bamread.hpp.
Referenced by GetIdMapper(), and SetIdMapper().
|
private |
Definition at line 518 of file bamread.hpp.
Referenced by ExcludeAlignTag(), GetIncludedAlignTags(), and IncludeAlignTag().
|
private |
Definition at line 516 of file bamread.hpp.
Referenced by CBamDb(), and GetIndexName().
|
private |
Definition at line 524 of file bamread.hpp.
Referenced by CBamAlignIterator::CBamAlignIterator(), CBamDb(), CBamRefSeqIterator::CBamRefSeqIterator(), GetHeaderText(), GetPageSize(), GetRawDb(), and UsesRawIndex().
|
mutableprivate |
Definition at line 522 of file bamread.hpp.
Referenced by GetRefSeq_id().
|
mutableprivate |
Definition at line 520 of file bamread.hpp.
Referenced by GetRefSeqLength().