:
return "file format error";
60 Uint4arg_use_max_count,
62 Uint4arg_use_min_count,
65arg_max_count, arg_use_max_count,
66arg_min_count, arg_use_min_count )
85 char*
data(
new char[skip] );
86in_stream.read(
data, skip );
90streamsize adj( in_stream.tellg() );
92in_stream.read( (
char*)&
data,
sizeof(
Uint4) );
95in_stream.read( (
char*)&
data,
sizeof(
Uint4) );
98 if( us == 0 || us > 16 )
107 if( datalen%(2*
sizeof(
Uint4)) != 0 )
114cdata =
new Uint4[datalen/
sizeof(
Uint4)];
115in_stream.read( (
char*)cdata, datalen );
120in_stream.read( (
char*)&
data,
sizeof(
Uint4) );
124in_stream.read( (
char*)&
data,
sizeof(
Uint4) );
129in_stream.read( (
char*)&
data,
sizeof(
Uint4) );
134in_stream.read( (
char*)&
data,
sizeof(
Uint4) );
Exceptions that CSeqMaskerIstatBin might throw.
@ eStreamOpenFail
File open failure.
@ eFormat
File format error.
virtual const char * GetErrCodeString() const override
Get a description string for this exception.
CSeqMaskerIstatBin(const string &name, Uint4 arg_threshold, Uint4 arg_textend, Uint4 arg_max_count, Uint4 arg_use_max_count, Uint4 arg_min_count, Uint4 arg_use_min_count, Uint4 skip=0)
Object constructor.
virtual Uint4 at(Uint4 unit) const
Get the count of the given unit.
virtual Uint4 trueat(Uint4 unit) const
Get the true count for an n-mer.
Defines an interface for accessing the unit counts information.
Uint4 get_min_count() const
Get the value of T_low.
void set_use_min_count(Uint4 arg_use_min_count)
Set the count value for units with actual counts below T_low.
void set_textend(Uint4 arg_textend)
Set the value of T_extend.
void set_threshold(Uint4 arg_threshold)
Set the value of T_threshold.
void set_use_max_count(Uint4 arg_use_max_count)
Set the count value for units with actual counts above T_high.
Uint4 get_use_max_count() const
Get the count value for units with actual counts above T_high.
Uint4 get_textend() const
Get the value of T_extend.
Uint4 get_max_count() const
Get the current value of T_high.
Uint4 get_use_min_count() const
Get the count value for units with actual counts below T_low.
void set_min_count(Uint4 arg_min_count)
Set the value of T_low.
Uint4 get_threshold() const
Get the value of T_threshold.
void set_max_count(Uint4 arg_max_count)
Set the value of T_high.
void set_unit_size(Uint1 arg_unit_size)
Set the unit size.
void add_info(const Uint4 *arg_unit_data, Uint4 sz)
Add unit counts information to the container.
Uint4 get_info(Uint4 unit) const
Lookup the count value for a given unit.
TErrCode GetErrCode(void) const
Get error code.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
uint8_t Uint1
1-byte (8-bit) unsigned integer
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ifstream CNcbiIfstream
Portable alias for ifstream.
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
static const streamsize HEADER_LEN
static const streamsize TRAILER_LEN
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