Search Toolkit Book for CSparseKmerCounts
Kmer counts for alignment free sequence similarity computation implemented as a sparse vector. More...
#include <algo/cobalt/kmercounts.hpp>
Kmer counts for alignment free sequence similarity computation implemented as a sparse vector.
Definition at line 61 of file kmercounts.hpp.
◆ TCount ◆ TNonZeroCounts_CI ◆ CSparseKmerCounts() [1/2] CSparseKmerCounts::CSparseKmerCounts ( void ) inline ◆ CSparseKmerCounts() [2/2] CSparseKmerCounts::CSparseKmerCounts ( const objects::CSeq_loc & seq, objects::CScope & scope )Create k-mer counts vector from SSeqLoc with defalut k-mer length and alphabet size.
Definition at line 69 of file kmercounts.cpp.
References Reset().
◆ BeginNonZero()Get non-zero counts iterator.
Definition at line 127 of file kmercounts.hpp.
Referenced by Print().
◆ CountCommonKmers() ◆ EndNonZero()Get non-zero counts iterator.
Definition at line 132 of file kmercounts.hpp.
Referenced by Print().
◆ FractionCommonKmersDist()Definition at line 369 of file kmercounts.cpp.
References _ASSERT, CountCommonKmers(), GetKmerLength(), GetNumCounts(), and v2.
◆ FractionCommonKmersGlobalDist()Definition at line 389 of file kmercounts.cpp.
References _ASSERT, CountCommonKmers(), GetKmerLength(), GetNumCounts(), and v2.
◆ GetAALetter() ◆ GetAlphabetSize() static unsigned int CSparseKmerCounts::GetAlphabetSize ( void ) inlinestaticGet default alphabet size.
Definition at line 122 of file kmercounts.hpp.
◆ GetKmerLength() static unsigned int CSparseKmerCounts::GetKmerLength ( void ) inlinestatic ◆ GetNumCounts() unsigned int CSparseKmerCounts::GetNumCounts ( void ) const inline ◆ GetSeqLength() unsigned int CSparseKmerCounts::GetSeqLength ( void ) const inline ◆ InitPosBits() bool CSparseKmerCounts::InitPosBits ( const objects::CSeqVector & sv, Uint4 & pos, unsigned int & index, Uint4 num_bits, Uint4 kmer_len ) staticprivateInitializes element index as bit vector for first k letters, skipping Xaa.
Definition at line 82 of file kmercounts.cpp.
References GetAALetter(), i, and kXaa.
Referenced by Reset().
◆ PostCount() void CSparseKmerCounts::PostCount ( void ) static ◆ PreCount() void CSparseKmerCounts::PreCount ( void ) static ◆ Print() ◆ ReserveCountsMem() ◆ Reset() void CSparseKmerCounts::Reset ( const objects::CSeq_loc & seq, objects::CScope & scope )Reset the counts vector.
Definition at line 157 of file kmercounts.cpp.
References _ASSERT, AutoArray< X, Del >::get(), GetAALetter(), i, InitPosBits(), kLengthBitsThreshold, kXaa, m_Counts, m_NumCounts, m_SeqLength, MarkUsed(), mask, max(), NCBI_THROW, NULL, ReserveCountsMem(), AutoArray< X, Del >::reset(), sm_AlphabetSize, sm_Buffer, sm_ForceSmallerMem, sm_KmerLength, sm_TransTable, and sm_UseCompressed.
Referenced by CSparseKmerCounts().
◆ SetAlphabetSize() static void CSparseKmerCounts::SetAlphabetSize ( unsigned size ) inlinestatic ◆ SetKmerLength() static void CSparseKmerCounts::SetKmerLength ( unsigned len ) inlinestatic ◆ SetTransTable() static vector<Uint1>& CSparseKmerCounts::SetTransTable ( void ) inlinestatic ◆ SetUseCompressed() static void CSparseKmerCounts::SetUseCompressed ( bool use_comp ) inlinestatic ◆ kLengthBitsThreshold const unsigned int CSparseKmerCounts::kLengthBitsThreshold = 32 staticprotected ◆ m_Counts ◆ m_NumCounts unsigned int CSparseKmerCounts::m_NumCounts protected ◆ m_SeqLength unsigned int CSparseKmerCounts::m_SeqLength protected ◆ sm_AlphabetSize ◆ sm_Buffer ◆ sm_ForceSmallerMem bool CSparseKmerCounts::sm_ForceSmallerMem = false staticprotected ◆ sm_KmerLength unsigned int CSparseKmerCounts::sm_KmerLength = 4 staticprotected ◆ sm_TransTable ◆ sm_UseCompressed bool CSparseKmerCounts::sm_UseCompressed = false staticprotectedThe documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4