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)
 
void x_InitAlignIterator (CBamAlignIterator &ait, TSeqPos &max_end_pos, CTSE_Chunk_Info &chunk_info, int base_id)
 
void x_AddSeqChunk (CTSE_Chunk_Info &chunk_info, const vector< CSeq_id_Handle > &short_ids)
 
- 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
 
CMutex m_Seq2ChunkMutex
 

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 atomic< Uint8TCounter
 Counter type is CAtomiCounter. More...
 
typedef Uint8 TCount
 Alias for value type of counter. More...
 
- 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)
 
- 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 130 of file bamloader_impl.hpp.

Member Typedef Documentation

◆ TChunks

typedef vector<CBamRefSeqChunkInfo> CBamRefSeqInfo::TChunks
protected

Definition at line 182 of file bamloader_impl.hpp.

◆ TRange

Definition at line 181 of file bamloader_impl.hpp.

◆ TSeq2Chunk

Definition at line 183 of file bamloader_impl.hpp.

Constructor & Destructor Documentation

◆ CBamRefSeqInfo()

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

Definition at line 868 of file bamloader_impl.cpp.

References m_SpotIdDetector.

Member Function Documentation

◆ CreateChunks()

void CBamRefSeqInfo::CreateChunks ( CTSE_Split_Info split_info)

◆ EstimateAlignLoadSeconds()

double CBamRefSeqInfo::EstimateAlignLoadSeconds ( const CTSE_Chunk_Info chunk,
Uint4  bytes 
) const

◆ EstimateLoadSeconds()

double CBamRefSeqInfo::EstimateLoadSeconds ( const CTSE_Chunk_Info chunk,
Uint4  bytes 
) const

◆ EstimatePileupLoadSeconds()

double CBamRefSeqInfo::EstimatePileupLoadSeconds ( const CTSE_Chunk_Info chunk,
Uint4  bytes 
) const

◆ EstimateSeqLoadSeconds()

double CBamRefSeqInfo::EstimateSeqLoadSeconds ( const CTSE_Chunk_Info chunk,
Uint4  bytes 
) const

◆ GetChunkGraphRange()

CRange< TSeqPos > CBamRefSeqInfo::GetChunkGraphRange ( size_t  range_id)

Definition at line 1506 of file bamloader_impl.cpp.

References m_Chunks, and compile_time_bits::range().

Referenced by CreateChunks(), LoadPileupChunk(), and x_InitAlignIterator().

◆ GetRefSeq_id()

const CSeq_id_Handle& CBamRefSeqInfo::GetRefSeq_id ( void  ) const
inline

◆ GetRefSeqId()

const string& CBamRefSeqInfo::GetRefSeqId ( void  ) const
inline

◆ GetShortSeqBlobId()

void CBamRefSeqInfo::GetShortSeqBlobId ( CRef< CBAMBlobId > &  ret,
const CSeq_id_Handle idh 
) const

◆ LoadAlignChunk()

void CBamRefSeqInfo::LoadAlignChunk ( CTSE_Chunk_Info chunk_info)

◆ LoadChunk()

void CBamRefSeqInfo::LoadChunk ( CTSE_Chunk_Info chunk_info)

◆ LoadMainChunk()

void CBamRefSeqInfo::LoadMainChunk ( CTSE_Chunk_Info chunk_info)

◆ LoadMainEntry()

void CBamRefSeqInfo::LoadMainEntry ( CTSE_LoadLock load_lock)

◆ LoadMainSplit()

void CBamRefSeqInfo::LoadMainSplit ( CTSE_LoadLock load_lock)

◆ LoadPileupChunk()

void CBamRefSeqInfo::LoadPileupChunk ( CTSE_Chunk_Info chunk_info)

Definition at line 2844 of file bamloader_impl.cpp.

References _TRACE, SBaseStats::add_base(), SBaseStats::add_base_raw(), SBaseStats::add_gap(), SBaseStats::add_intron(), SBaseStats::add_match(), SBaseStats::cc, CTempString::data(), data, CStopWatch::Elapsed(), ERR_POST_X, SBaseStats::finish_add(), SBaseStats::get_max_count(), CBamFileInfo::GetAnnotName(), GetChunkGraphRange(), CTSE_Chunk_Info::GetChunkId(), CBamAlignIterator::GetCIGAR(), CBamAlignIterator::GetCIGARPos(), CBamAlignIterator::GetCIGARRefSize(), GetDebugLevel(), CRef< C, Locker >::GetNCPointer(), CBamAlignIterator::GetRawIndexIteratorPtr(), GetRefSeq_id(), GetRefSeqId(), CBamFileInfo::GetRefSeqLength(), CBamAlignIterator::GetRefSeqPos(), CBamRefSeqChunkInfo::GetRefSeqRange(), GetSeqId(), CBamAlignIterator::GetShortSequence(), GetSkipEmptyPileupGraphsParam(), 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_Intron, SBaseStats::kStat_Match, kTSEId, LOG_POST_X, m_Chunks, m_File, m_MinMapQuality, m_SpotIdDetector, max(), PILEUP_NAME_SUFFIX, SerialClone(), 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(), CAnnotdesc_Base::SetName(), CSeq_graph_Base::SetNumval(), CBamAlignIterator::SetSpotIdDetector(), CSeq_graph_Base::SetTitle(), CSeq_interval_Base::SetTo(), CTempString::size(), CStopWatch::Start(), sw, sx_GetBaseRaw(), CTSE_Chunk_Info::x_AddUsedMemory(), and CTSE_Chunk_Info::x_LoadAnnot().

Referenced by LoadChunk().

◆ LoadRanges()

void CBamRefSeqInfo::LoadRanges ( void  )

◆ LoadSeqChunk()

void CBamRefSeqInfo::LoadSeqChunk ( CTSE_Chunk_Info chunk_info)

◆ SetBlobId()

void CBamRefSeqInfo::SetBlobId ( CRef< CBAMBlobId > &  ret,
const CSeq_id_Handle idh 
) const

Definition at line 881 of file bamloader_impl.cpp.

References ERR_POST_X, CBamFileInfo::GetBamName(), GetRefSeq_id(), and m_File.

Referenced by GetShortSeqBlobId().

◆ SetCovFileName()

void CBamRefSeqInfo::SetCovFileName ( const string name)
inline

Definition at line 146 of file bamloader_impl.hpp.

References m_CovFileName.

◆ x_AddSeqChunk()

void CBamRefSeqInfo::x_AddSeqChunk ( CTSE_Chunk_Info chunk_info,
const vector< CSeq_id_Handle > &  short_ids 
)
protected

◆ x_InitAlignIterator()

void CBamRefSeqInfo::x_InitAlignIterator ( CBamAlignIterator ait,
TSeqPos max_end_pos,
CTSE_Chunk_Info chunk_info,
int  base_id 
)
protected

◆ x_LoadRangesCov()

bool CBamRefSeqInfo::x_LoadRangesCov ( void  )
protected

◆ x_LoadRangesEstimated()

bool CBamRefSeqInfo::x_LoadRangesEstimated ( void  )
protected

◆ x_LoadRangesScan()

void CBamRefSeqInfo::x_LoadRangesScan ( void  )
protected

◆ x_LoadRangesStat()

void CBamRefSeqInfo::x_LoadRangesStat ( void  )
protected

Member Data Documentation

◆ m_Chunks

TChunks CBamRefSeqInfo::m_Chunks
protected

◆ m_CovEntry

CRef<CSeq_entry> CBamRefSeqInfo::m_CovEntry
protected

◆ m_CovFileName

string CBamRefSeqInfo::m_CovFileName
protected

Definition at line 197 of file bamloader_impl.hpp.

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

◆ m_File

CBamFileInfo* CBamRefSeqInfo::m_File
protected

◆ m_LoadedRanges

bool CBamRefSeqInfo::m_LoadedRanges
protected

Definition at line 201 of file bamloader_impl.hpp.

Referenced by LoadRanges(), and x_LoadRangesStat().

◆ m_MinMapQuality

int CBamRefSeqInfo::m_MinMapQuality
protected

◆ m_RefSeq_id

CSeq_id_Handle CBamRefSeqInfo::m_RefSeq_id
protected

Definition at line 196 of file bamloader_impl.hpp.

Referenced by GetRefSeq_id().

◆ m_RefSeqId

string CBamRefSeqInfo::m_RefSeqId
protected

Definition at line 195 of file bamloader_impl.hpp.

Referenced by GetRefSeqId().

◆ m_Seq2Chunk

TSeq2Chunk CBamRefSeqInfo::m_Seq2Chunk
protected

Definition at line 203 of file bamloader_impl.hpp.

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

◆ m_Seq2ChunkMutex

CMutex CBamRefSeqInfo::m_Seq2ChunkMutex
mutableprotected

Definition at line 204 of file bamloader_impl.hpp.

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

◆ m_SpotIdDetector

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

The documentation for this class was generated from the following files:
Modified on Fri May 03 15:51:20 2024 by modify_doxy.py rev. 669887