NCBI C++ ToolKit
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CBamRefSeqInfo Class Reference

Search Toolkit Book for CBamRefSeqInfo

#include <sra/data_loaders/bam/impl/bamloader_impl.hpp>

+ Inheritance diagram for CBamRefSeqInfo:
+ Collaboration diagram for CBamRefSeqInfo:

Public Member Functions

 CBamRefSeqInfo (CBamFileInfo *bam_file, const string &refseqid, const CSeq_id_Handle &seq_id)
 
const stringGetRefSeqId (void) const
 
const CSeq_id_HandleGetRefSeq_id (void) const
 
void SetCovFileName (const string &name)
 
void LoadRanges (void)
 
CRange< TSeqPosGetChunkGraphRange (size_t range_id)
 
void LoadMainSplit (CTSE_LoadLock &load_lock)
 
void LoadMainEntry (CTSE_LoadLock &load_lock)
 
void CreateChunks (CTSE_Split_Info &split_info)
 
double EstimateLoadSeconds (const CTSE_Chunk_Info &chunk, Uint4 bytes) const
 
double EstimatePileupLoadSeconds (const CTSE_Chunk_Info &chunk, Uint4 bytes) const
 
double EstimateAlignLoadSeconds (const CTSE_Chunk_Info &chunk, Uint4 bytes) const
 
double EstimateSeqLoadSeconds (const CTSE_Chunk_Info &chunk, Uint4 bytes) const
 
void LoadChunk (CTSE_Chunk_Info &chunk_info)
 
void LoadMainChunk (CTSE_Chunk_Info &chunk_info)
 
void LoadAlignChunk (CTSE_Chunk_Info &chunk_info)
 
void LoadSeqChunk (CTSE_Chunk_Info &chunk_info)
 
void LoadPileupChunk (CTSE_Chunk_Info &chunk_info)
 
void GetShortSeqBlobId (CRef< CBAMBlobId > &ret, const CSeq_id_Handle &idh) const
 
void SetBlobId (CRef< CBAMBlobId > &ret, const CSeq_id_Handle &idh) const
 
- Public Member Functions inherited from CObject
 CObject (void)
 Constructor. More...
 
 CObject (const CObject &src)
 Copy constructor. More...
 
virtual ~CObject (void)
 Destructor. More...
 
CObjectoperator= (const CObject &src) THROWS_NONE
 Assignment operator. More...
 
bool CanBeDeleted (void) const THROWS_NONE
 Check if object can be deleted. More...
 
bool IsAllocatedInPool (void) const THROWS_NONE
 Check if object is allocated in memory pool (not system heap) More...
 
bool Referenced (void) const THROWS_NONE
 Check if object is referenced. More...
 
bool ReferencedOnlyOnce (void) const THROWS_NONE
 Check if object is referenced only once. More...
 
void AddReference (void) const
 Add reference to object. More...
 
void RemoveReference (void) const
 Remove reference to object. More...
 
void ReleaseReference (void) const
 Remove reference without deleting object. More...
 
virtual void DoNotDeleteThisObject (void)
 Mark this object as not allocated in heap – do not delete this object. More...
 
virtual void DoDeleteThisObject (void)
 Mark this object as allocated in heap – object can be deleted. More...
 
void * operator new (size_t size)
 Define new operator for memory allocation. More...
 
void * operator new[] (size_t size)
 Define new[] operator for 'array' memory allocation. More...
 
void operator delete (void *ptr)
 Define delete operator for memory deallocation. More...
 
void operator delete[] (void *ptr)
 Define delete[] operator for memory deallocation. More...
 
void * operator new (size_t size, void *place)
 Define new operator. More...
 
void operator delete (void *ptr, void *place)
 Define delete operator. More...
 
void * operator new (size_t size, CObjectMemoryPool *place)
 Define new operator using memory pool. More...
 
void operator delete (void *ptr, CObjectMemoryPool *place)
 Define delete operator. More...
 
virtual void DebugDump (CDebugDumpContext ddc, unsigned int depth) const
 Define method for dumping debug information. More...
 
- Public Member Functions inherited from CDebugDumpable
 CDebugDumpable (void)
 
virtual ~CDebugDumpable (void)
 
void DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const
 
void DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const
 
void DumpToConsole (void) const
 

Protected Types

typedef CRange< TSeqPosTRange
 
typedef vector< CBamRefSeqChunkInfoTChunks
 
typedef map< CSeq_id_Handle, intTSeq2Chunk
 

Protected Member Functions

void x_LoadRangesScan (void)
 
void x_LoadRangesStat (void)
 
bool x_LoadRangesCov (void)
 
bool x_LoadRangesEstimated (void)
 
- Protected Member Functions inherited from CObject
virtual void DeleteThis (void)
 Virtual method "deleting" this object. More...
 

Protected Attributes

CBamFileInfom_File
 
string m_RefSeqId
 
CSeq_id_Handle m_RefSeq_id
 
string m_CovFileName
 
CRef< CSeq_entrym_CovEntry
 
int m_MinMapQuality
 
TChunks m_Chunks
 
bool m_LoadedRanges
 
CIRef< CBamAlignIterator::ISpotIdDetectorm_SpotIdDetector
 
TSeq2Chunk m_Seq2Chunk
 

Additional Inherited Members

- 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 CAtomicCounter TCounter
 Counter type is CAtomiCounter. More...
 
typedef TCounter::TValue TCount
 Alias for value type of counter. More...
 
- Static Public Member Functions inherited from CObject
static NCBI_NORETURN void ThrowNullPointerException (void)
 Define method to throw null pointer exception. More...
 
static NCBI_NORETURN 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)
 
- 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...
 

Detailed Description

Definition at line 123 of file bamloader_impl.hpp.

Member Typedef Documentation

typedef vector<CBamRefSeqChunkInfo> CBamRefSeqInfo::TChunks
protected

Definition at line 171 of file bamloader_impl.hpp.

Definition at line 170 of file bamloader_impl.hpp.

Definition at line 172 of file bamloader_impl.hpp.

Constructor & Destructor Documentation

CBamRefSeqInfo::CBamRefSeqInfo ( CBamFileInfo bam_file,
const string refseqid,
const CSeq_id_Handle seq_id 
)

Definition at line 657 of file bamloader_impl.cpp.

References m_SpotIdDetector.

Member Function Documentation

void CBamRefSeqInfo::CreateChunks ( CTSE_Split_Info split_info)
double CBamRefSeqInfo::EstimateAlignLoadSeconds ( const CTSE_Chunk_Info chunk,
Uint4  bytes 
) const
double CBamRefSeqInfo::EstimateLoadSeconds ( const CTSE_Chunk_Info chunk,
Uint4  bytes 
) const
double CBamRefSeqInfo::EstimatePileupLoadSeconds ( const CTSE_Chunk_Info chunk,
Uint4  bytes 
) const
double CBamRefSeqInfo::EstimateSeqLoadSeconds ( const CTSE_Chunk_Info chunk,
Uint4  bytes 
) const
CRange< TSeqPos > CBamRefSeqInfo::GetChunkGraphRange ( size_t  range_id)

Definition at line 1214 of file bamloader_impl.cpp.

References m_Chunks, and COpenRange< Position >::SetToOpen().

Referenced by CreateChunks(), and LoadPileupChunk().

const CSeq_id_Handle& CBamRefSeqInfo::GetRefSeq_id ( void  ) const
inline
const string& CBamRefSeqInfo::GetRefSeqId ( void  ) const
inline
void CBamRefSeqInfo::GetShortSeqBlobId ( CRef< CBAMBlobId > &  ret,
const CSeq_id_Handle idh 
) const
void CBamRefSeqInfo::LoadAlignChunk ( CTSE_Chunk_Info chunk_info)
void CBamRefSeqInfo::LoadChunk ( CTSE_Chunk_Info chunk_info)
void CBamRefSeqInfo::LoadMainChunk ( CTSE_Chunk_Info chunk_info)
void CBamRefSeqInfo::LoadMainEntry ( CTSE_LoadLock load_lock)
void CBamRefSeqInfo::LoadMainSplit ( CTSE_LoadLock load_lock)
void CBamRefSeqInfo::LoadPileupChunk ( CTSE_Chunk_Info chunk_info)

Definition at line 2204 of file bamloader_impl.cpp.

References _TRACE, CTempString::data(), CStopWatch::Elapsed(), ERR_POST_X, CBamDb::SPileupValues::get_max_count(), CBamFileInfo::GetAnnotName(), GetChunkGraphRange(), CTSE_Chunk_Info::GetChunkId(), GetDebugLevel(), CRef< C, Locker >::GetNCPointer(), GetRefSeq_id(), GetRefSeqId(), CBamFileInfo::GetRefSeqLength(), CBamRefSeqChunkInfo::GetRefSeqRange(), GetSkipEmptyPileupGraphsParam(), CInt_graph_Base::GetValues(), CByte_graph_Base::GetValues(), i, Info(), kChunkIdMul, SBamAlignInfo::kCIGAR_D, SBamAlignInfo::kCIGAR_eq, SBamAlignInfo::kCIGAR_I, SBamAlignInfo::kCIGAR_M, SBamAlignInfo::kCIGAR_N, SBamAlignInfo::kCIGAR_S, SBamAlignInfo::kCIGAR_X, SBaseStats::kNumStat, SBaseStats::kStat_Match, kTSEId, LOG_POST_X, m_Chunks, m_File, m_MinMapQuality, m_SpotIdDetector, PILEUP_NAME_SUFFIX, s_GetGapToIntronThreshold(), SerialClone(), CInt_graph_Base::SetAxis(), CByte_graph_Base::SetAxis(), CSeq_annot_Base::SetData(), CSeq_annot_Base::SetDesc(), CSeq_interval_Base::SetFrom(), CSeq_graph_Base::SetGraph(), CSeq_interval_Base::SetId(), CTSE_Chunk_Info::SetLoaded(), CSeq_graph_Base::SetLoc(), CInt_graph_Base::SetMax(), CByte_graph_Base::SetMax(), CInt_graph_Base::SetMin(), CByte_graph_Base::SetMin(), CAnnotdesc_Base::SetName(), CSeq_graph_Base::SetNumval(), CBamAlignIterator::SetSpotIdDetector(), CSeq_graph_Base::SetTitle(), CSeq_interval_Base::SetTo(), CInt_graph_Base::SetValues(), CByte_graph_Base::SetValues(), CTempString::size(), CStopWatch::Start(), sw, sx_GetBaseRaw(), CTSE_Chunk_Info::x_AddUsedMemory(), and CTSE_Chunk_Info::x_LoadAnnot().

Referenced by LoadChunk().

void CBamRefSeqInfo::LoadRanges ( void  )
void CBamRefSeqInfo::LoadSeqChunk ( CTSE_Chunk_Info chunk_info)
void CBamRefSeqInfo::SetBlobId ( CRef< CBAMBlobId > &  ret,
const CSeq_id_Handle idh 
) const
void CBamRefSeqInfo::SetCovFileName ( const string name)
inline

Definition at line 139 of file bamloader_impl.hpp.

References m_CovFileName.

Referenced by CBAMDataLoader_Impl::OpenBAMFiles().

bool CBamRefSeqInfo::x_LoadRangesCov ( void  )
protected
bool CBamRefSeqInfo::x_LoadRangesEstimated ( void  )
protected
void CBamRefSeqInfo::x_LoadRangesScan ( void  )
protected
void CBamRefSeqInfo::x_LoadRangesStat ( void  )
protected

Member Data Documentation

TChunks CBamRefSeqInfo::m_Chunks
protected
CRef<CSeq_entry> CBamRefSeqInfo::m_CovEntry
protected
string CBamRefSeqInfo::m_CovFileName
protected

Definition at line 182 of file bamloader_impl.hpp.

Referenced by LoadMainSplit(), SetCovFileName(), and x_LoadRangesCov().

CBamFileInfo* CBamRefSeqInfo::m_File
protected
bool CBamRefSeqInfo::m_LoadedRanges
protected

Definition at line 186 of file bamloader_impl.hpp.

Referenced by LoadRanges(), and x_LoadRangesStat().

int CBamRefSeqInfo::m_MinMapQuality
protected
CSeq_id_Handle CBamRefSeqInfo::m_RefSeq_id
protected

Definition at line 181 of file bamloader_impl.hpp.

Referenced by GetRefSeq_id().

string CBamRefSeqInfo::m_RefSeqId
protected

Definition at line 180 of file bamloader_impl.hpp.

Referenced by GetRefSeqId().

TSeq2Chunk CBamRefSeqInfo::m_Seq2Chunk
protected

Definition at line 188 of file bamloader_impl.hpp.

Referenced by CreateChunks(), GetShortSeqBlobId(), LoadAlignChunk(), and LoadSeqChunk().

CIRef<CBamAlignIterator::ISpotIdDetector> CBamRefSeqInfo::m_SpotIdDetector
protected

Definition at line 187 of file bamloader_impl.hpp.

Referenced by CBamRefSeqInfo(), LoadAlignChunk(), LoadPileupChunk(), and LoadSeqChunk().


The documentation for this class was generated from the following files:
Modified on Thu Feb 22 13:22:56 2018 by modify_doxy.py rev. 546573