NCBI C++ ToolKit
|
Search Toolkit Book for CCSRAFileInfo
#include <sra/data_loaders/csra/impl/csraloader_impl.hpp>
Public Types | |
typedef CCSRADataLoader::TAnnotNames | TAnnotNames |
![]() | |
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 Member Functions | |
CCSRAFileInfo (CCSRADataLoader_Impl &impl, const string &csra, CCSraDb::ERefIdType ref_id_type) | |
const string & | GetCSRAName (void) const |
const string & | GetBaseAnnotName (void) const |
string | GetAnnotName (const string &spot_group, ECSRAAnnotChunkIdType type) const |
string | GetAlignAnnotName (void) const |
string | GetAlignAnnotName (const string &spot_group) const |
string | GetPileupAnnotName (void) const |
string | GetPileupAnnotName (const string &spot_group) const |
CCSraDb::ERefIdType | GetRefIdType (void) const |
int | GetMinMapQuality (void) const |
bool | GetPileupGraphs (void) const |
bool | GetQualityGraphs (void) const |
bool | IsValidReadId (TVDBRowId spot_id, Uint4 read_id, CRef< CCSRARefSeqInfo > *ref_ptr=0, TSeqPos *ref_pos_ptr=0) |
void | GetAnnotBlobId (CRef< CCSRABlobId > &ret, const CSeq_id_Handle &idh) |
CRef< CCSRARefSeqInfo > | GetRefSeqInfo (const CSeq_id_Handle &seq_id) |
CRef< CCSRARefSeqInfo > | GetRefSeqInfo (const CCSRABlobId &blob_id) |
CCSraDb & | GetDb (void) |
operator CCSraDb & (void) | |
void | AddRefSeq (const string &refseq_label, const CSeq_id_Handle &refseq_id) |
const vector< string > & | GetSeparateSpotGroups (void) const |
void | GetPossibleAnnotNames (TAnnotNames &names) const |
void | LoadReadsBlob (const CCSRABlobId &blob_id, CTSE_LoadLock &load_lock) |
![]() | |
CObject (void) | |
Constructor. More... | |
CObject (const CObject &src) | |
Copy constructor. More... | |
virtual | ~CObject (void) |
Destructor. More... | |
CObject & | operator= (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... | |
![]() | |
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 map< CSeq_id_Handle, CRef< CCSRARefSeqInfo > > | TRefSeqs |
Protected Member Functions | |
void | x_Initialize (CCSRADataLoader_Impl &impl, const string &csra, CCSraDb::ERefIdType ref_id_type) |
![]() | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Protected Attributes | |
string | m_CSRAName |
CCSraDb::ERefIdType | m_RefIdType |
string | m_AnnotName |
int | m_MinMapQuality |
bool | m_PileupGraphs |
bool | m_QualityGraphs |
CCSraDb | m_CSRADb |
vector< string > | m_SeparateSpotGroups |
TRefSeqs | m_RefSeqs |
Friends | |
class | CCSRADataLoader_Impl |
Additional Inherited Members | |
![]() | |
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 void | EnableDebugDump (bool on) |
![]() | |
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... | |
Definition at line 376 of file csraloader_impl.hpp.
Definition at line 446 of file csraloader_impl.hpp.
|
protected |
Definition at line 455 of file csraloader_impl.hpp.
CCSRAFileInfo::CCSRAFileInfo | ( | CCSRADataLoader_Impl & | impl, |
const string & | csra, | ||
CCSraDb::ERefIdType | ref_id_type | ||
) |
Definition at line 1108 of file csraloader_impl.cpp.
References AddRefSeq(), CSeq_id_Handle::AsString(), m_CSRADb, and x_Initialize().
void CCSRAFileInfo::AddRefSeq | ( | const string & | refseq_label, |
const CSeq_id_Handle & | refseq_id | ||
) |
Definition at line 1228 of file csraloader_impl.cpp.
References GetDebugLevel(), Info(), LOG_POST_X, m_CSRAName, and m_RefSeqs.
Referenced by CCSRAFileInfo(), and GetRefSeqInfo().
Definition at line 1189 of file csraloader_impl.cpp.
References eCSRAAnnotChunk_align, and GetAnnotName().
string CCSRAFileInfo::GetAlignAnnotName | ( | void | ) | const |
Definition at line 1183 of file csraloader_impl.cpp.
References eCSRAAnnotChunk_align, GetAnnotName(), and kEmptyStr.
Referenced by GetPossibleAnnotNames(), CCSRARefSeqInfo::LoadAnnotMainChunk(), CCSRARefSeqInfo::LoadAnnotMainSplit(), CCSRARefSeqInfo::LoadRanges(), and LoadReadsBlob().
void CCSRAFileInfo::GetAnnotBlobId | ( | CRef< CCSRABlobId > & | ret, |
const CSeq_id_Handle & | idh | ||
) |
string CCSRAFileInfo::GetAnnotName | ( | const string & | spot_group, |
ECSRAAnnotChunkIdType | type | ||
) | const |
Definition at line 1165 of file csraloader_impl.cpp.
References eCSRAAnnotChunk_pileup_graph, GetBaseAnnotName(), m_SeparateSpotGroups, PILEUP_NAME_SUFFIX, and SPOT_GROUP_SEPARATOR.
Referenced by SChunkAnnots::Create(), GetAlignAnnotName(), and GetPileupAnnotName().
Definition at line 387 of file csraloader_impl.hpp.
References m_AnnotName.
Referenced by GetAnnotName().
Definition at line 383 of file csraloader_impl.hpp.
References m_CSRAName.
Referenced by GetRefSeqInfo(), and CCSRARefSeqInfo::LoadAnnotAlignChunk().
|
inline |
Definition at line 429 of file csraloader_impl.hpp.
References m_CSRADb.
Referenced by CCSRARefSeqInfo::LoadRefSeqChunk(), CCSRARefSeqInfo::LoadRefSeqMainEntry(), operator CCSraDb &(), and CCSRARefSeqInfo::x_LoadRangesStat().
|
inline |
Definition at line 402 of file csraloader_impl.hpp.
References m_MinMapQuality.
Definition at line 1201 of file csraloader_impl.cpp.
References eCSRAAnnotChunk_pileup_graph, and GetAnnotName().
string CCSRAFileInfo::GetPileupAnnotName | ( | void | ) | const |
Definition at line 1195 of file csraloader_impl.cpp.
References eCSRAAnnotChunk_pileup_graph, GetAnnotName(), and kEmptyStr.
Referenced by GetPossibleAnnotNames(), CCSRARefSeqInfo::LoadAnnotMainChunk(), and CCSRARefSeqInfo::LoadAnnotMainSplit().
|
inline |
Definition at line 406 of file csraloader_impl.hpp.
References m_PileupGraphs.
Referenced by CCSRARefSeqInfo::LoadAnnotMainChunk(), and CCSRARefSeqInfo::LoadAnnotMainSplit().
void CCSRAFileInfo::GetPossibleAnnotNames | ( | TAnnotNames & | names | ) | const |
Definition at line 1207 of file csraloader_impl.cpp.
References ctll::empty(), GetAlignAnnotName(), GetPileupAnnotName(), GetSeparateSpotGroups(), ITERATE, and names.
|
inline |
Definition at line 410 of file csraloader_impl.hpp.
References m_QualityGraphs.
|
inline |
Definition at line 398 of file csraloader_impl.hpp.
References m_RefIdType.
|
inline |
Definition at line 424 of file csraloader_impl.hpp.
References GetRefSeqInfo(), and CCSRABlobId::m_SeqId.
CRef< CCSRARefSeqInfo > CCSRAFileInfo::GetRefSeqInfo | ( | const CSeq_id_Handle & | seq_id | ) |
Definition at line 1240 of file csraloader_impl.cpp.
References AddRefSeq(), map_checker< Container >::end(), map_checker< Container >::find(), GetCSRAName(), CCSRABlobId::GetGeneralSRAAccLabel(), label, and m_RefSeqs.
Referenced by GetRefSeqInfo(), and IsValidReadId().
Definition at line 441 of file csraloader_impl.hpp.
References m_SeparateSpotGroups.
Referenced by GetPossibleAnnotNames(), CCSRARefSeqInfo::LoadAnnotMainChunk(), CCSRARefSeqInfo::LoadAnnotMainSplit(), and SChunkAnnots::SChunkAnnots().
bool CCSRAFileInfo::IsValidReadId | ( | TVDBRowId | spot_id, |
Uint4 | read_id, | ||
CRef< CCSRARefSeqInfo > * | ref_ptr = 0 , |
||
TSeqPos * | ref_pos_ptr = 0 |
||
) |
Definition at line 1259 of file csraloader_impl.cpp.
References CCSraRefSeqIterator::GetRefSeq_id_Handle(), GetRefSeqInfo(), CCSraShortReadIterator::GetRefSeqIter(), kInvalidSeqPos, and m_CSRADb.
void CCSRAFileInfo::LoadReadsBlob | ( | const CCSRABlobId & | blob_id, |
CTSE_LoadLock & | load_lock | ||
) |
Definition at line 1293 of file csraloader_impl.cpp.
References CCSRABlobId::eBlobType_reads, CCSRABlobId::eBlobType_reads_align, CCSraShortReadIterator::fDefaultBioseqFlags, flags, CCSraShortReadIterator::fQualityGraph, GetAlignAnnotName(), CCSraShortReadIterator::GetAlignIter(), GetDebugLevel(), CCSraShortReadIterator::GetShortBioseq(), Info(), kReadsPerBlob, LOG_POST_X, CCSRABlobId::m_BlobType, CCSRABlobId::m_FirstSpotId, m_QualityGraphs, CBioseq_set_Base::SetAnnot(), CSeq_annot_Base::SetData(), CCSraShortReadIterator::SetLastSpotId(), CSeq_annot::SetNameDesc(), CSeq_entry_Base::SetSeq(), CTSE_Info::SetSeq_entry(), CBioseq_set_Base::SetSeq_set(), CSeq_entry_Base::SetSet(), and CCSRABlobId::ToString().
|
inline |
Definition at line 433 of file csraloader_impl.hpp.
References GetDb().
|
protected |
Definition at line 1121 of file csraloader_impl.cpp.
References SCSraDb_Defs::ePathInId_config, SCSraDb_Defs::ePathInId_no, SCSraDb_Defs::ePathInId_yes, GetDebugLevel(), CCSraDb::GetSpotGroups(), Info(), CCSRADataLoader::SLoaderParams::kPathInId_config, LOG_POST_X, m_AnnotName, m_CSRADb, m_CSRAName, m_MinMapQuality, m_PileupGraphs, m_QualityGraphs, m_RefIdType, m_SeparateSpotGroups, CDirEntry::MakePath(), and CCSraDb::MakeSraIdPart().
Referenced by CCSRAFileInfo().
|
friend |
Definition at line 453 of file csraloader_impl.hpp.
|
protected |
Definition at line 463 of file csraloader_impl.hpp.
Referenced by GetBaseAnnotName(), and x_Initialize().
|
protected |
Definition at line 467 of file csraloader_impl.hpp.
Referenced by CCSRAFileInfo(), GetDb(), IsValidReadId(), and x_Initialize().
|
protected |
Definition at line 461 of file csraloader_impl.hpp.
Referenced by AddRefSeq(), GetCSRAName(), and x_Initialize().
|
protected |
Definition at line 464 of file csraloader_impl.hpp.
Referenced by GetMinMapQuality(), and x_Initialize().
|
protected |
Definition at line 465 of file csraloader_impl.hpp.
Referenced by GetPileupGraphs(), and x_Initialize().
|
protected |
Definition at line 466 of file csraloader_impl.hpp.
Referenced by GetQualityGraphs(), LoadReadsBlob(), and x_Initialize().
|
protected |
Definition at line 462 of file csraloader_impl.hpp.
Referenced by GetRefIdType(), and x_Initialize().
|
protected |
Definition at line 469 of file csraloader_impl.hpp.
Referenced by AddRefSeq(), and GetRefSeqInfo().
|
protected |
Definition at line 468 of file csraloader_impl.hpp.
Referenced by GetAnnotName(), GetSeparateSpotGroups(), and x_Initialize().