Search Toolkit Book for CWinMaskCountsGenerator
This class encapsulates the n-mer frequency counts generation functionality of winmasker. More...
#include <algo/winmask/win_mask_gen_counts.hpp>
This class encapsulates the n-mer frequency counts generation functionality of winmasker.
Definition at line 61 of file win_mask_gen_counts.hpp.
◆ CWinMaskCountsGenerator() [1/2] CWinMaskCountsGenerator::CWinMaskCountsGenerator ( const string & input, const string & output, const string & infmt, const string & sformat, const string & th, Uint4 mem_avail, Uint1 unit_size, Uint8 genome_size, Uint4 min_count, Uint4 max_count, bool check_duplicates, bool use_list, const CWinMaskUtil::CIdSet * ids, const CWinMaskUtil::CIdSet * exclude_ids, bool use_ba, string const & metadata, double min_pct =-1.0
, double extend_pct = -1.0
, double thres_pct = -1.0
, double max_pct = -1.0
)
Constructor.
Creates an instance based on configuration parameters.
Definition at line 171 of file win_mask_gen_counts.cpp.
◆ CWinMaskCountsGenerator() [2/2] CWinMaskCountsGenerator::CWinMaskCountsGenerator ( const string & input, CNcbiOstream & os, const string & infmt, const string & sformat, const string & th, Uint4 mem_avail, Uint1 unit_size, Uint8 genome_size, Uint4 min_count, Uint4 max_count, bool check_duplicates, bool use_list, const CWinMaskUtil::CIdSet * ids, const CWinMaskUtil::CIdSet * exclude_ids, bool use_ba, string const & metadata, double min_pct =-1.0
, double extend_pct = -1.0
, double thres_pct = -1.0
, double max_pct = -1.0
)
Constructor.
Creates an instance based on configuration parameters.
Definition at line 124 of file win_mask_gen_counts.cpp.
◆ ~CWinMaskCountsGenerator() CWinMaskCountsGenerator::~CWinMaskCountsGenerator ( ) ◆ fastalen() ◆ operator()() void CWinMaskCountsGenerator::operator() ( void )This function does the actual n-mer counting.
Determines the prefix length based on the available memory and calls process for each prefix to compute partial counts.
Definition at line 226 of file win_mask_gen_counts.cpp.
References _TRACE, check_duplicates, CheckDuplicates(), exclude_ids, fastalen(), CSeqMaskerOstat::finalize(), genome_size, has_min_count, i, ids, infmt, input, LOG_POST, max_count, max_mem, min_count, NCBI_ASSERT, NCBI_THROW, no_extra_pass, offset, process(), score_counts, CSeqMaskerOstat::setComment(), CSeqMaskerOstat::SetCount(), CSeqMaskerOstat::SetMaxCount(), CSeqMaskerOstat::setParam(), CSeqMaskerOstat::setUnitSize(), NStr::Split(), t_high, th, total_ecodes, unit_size, use_list, and ustat.
◆ process()Definition at line 409 of file win_mask_gen_counts.cpp.
References _TRACE, ambig(), CWinMaskUtil::consider(), count, data, CBioseq_Handle::eCoding_Iupac, exclude_ids, CObjectManager::GetInstance(), i, ids, infmt, letter(), max_count, min_count, om, reverse_complement(), score_counts, CSeqMaskerOstat::setUnitCount(), t_high, total_ecodes, unit_size, and ustat.
Referenced by operator()().
◆ check_duplicates bool CWinMaskCountsGenerator::check_duplicates private ◆ exclude_ids ◆ genome_size Uint8 CWinMaskCountsGenerator::genome_size private ◆ has_min_count bool CWinMaskCountsGenerator::has_min_count private ◆ ids ◆ infmt string CWinMaskCountsGenerator::infmt private ◆ input string CWinMaskCountsGenerator::input private ◆ max_count Uint4 CWinMaskCountsGenerator::max_count private ◆ max_mem Uint8 CWinMaskCountsGenerator::max_mem private ◆ min_count Uint4 CWinMaskCountsGenerator::min_count private ◆ no_extra_pass bool CWinMaskCountsGenerator::no_extra_pass private ◆ score_counts vector< Uint4 > CWinMaskCountsGenerator::score_counts private ◆ t_high Uint4 CWinMaskCountsGenerator::t_high private ◆ th double CWinMaskCountsGenerator::th[4] private ◆ total_ecodes Uint4 CWinMaskCountsGenerator::total_ecodes private ◆ unit_size Uint4 CWinMaskCountsGenerator::unit_size private ◆ use_list bool CWinMaskCountsGenerator::use_list private ◆ ustatThe 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