A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/seq__masker__istat__ascii_8cpp_source.html below:

NCBI C++ ToolKit: src/algo/winmask/seq_masker_istat_ascii.cpp Source File

46  case eSyntax

:

return "syntax error"

;

47  case eParam

:

return "bad parameter value"

;

57  Uint4

arg_use_max_count,

59  Uint4

arg_use_min_count,

62

arg_max_count, arg_use_max_count,

63

arg_min_count, arg_use_min_count )

69  string

(

"could not open "

) + name );

72  Uint4

linenum = start_line;

75  for

(

Uint4 i

( 0 );

i

< start_line; ++

i

) getline( input_stream, line );

77  while

( input_stream )

80

getline( input_stream, line );

82  if

( line.length() == 0 )

continue

;

83  if

( line[0] ==

'#'

)

continue

;

88  SIZE_TYPE

name_end = line.find_first_of(

" \t"

, 0 );

89  SIZE_TYPE

val_start = line.find_first_not_of(

" \t"

, name_end );

91  if

( name_end ==

NPOS

|| val_start ==

NPOS

)

94  str

<<

"at line "

<< linenum;

99  string

name = line.substr( 1, name_end - 1 );

109  if

( name ==

"t_low"

)

128  SIZE_TYPE

unit_start = line.find_first_not_of(

" \t"

, 0 );

129  SIZE_TYPE

unit_end = line.find_first_of(

" \t"

, unit_start );

130  SIZE_TYPE

cnt_start = line.find_first_not_of(

" \t"

, unit_end );

132  if

( unit_start ==

NPOS

|| unit_end ==

NPOS

|| cnt_start ==

NPOS

)

135  str

<<

"at line "

<< linenum;

141

unit_end - unit_start),

145  if

(

cnt

< ambig_len ) {

157

bad_param +=

"t_threhold "

;

160

bad_param +=

"t_extend "

;

163

bad_param +=

"t_high "

;

166

bad_param +=

"t_low "

;

168  if

( !bad_param.empty() )

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

Exceptions that CSeqMaskerIstatAscii might throw.

@ eStreamOpenFail

File open failure.

@ eParam

Unknown parameter name.

virtual const char * GetErrCodeString() const override

Get a description string for this exception.

CSeqMaskerUsetSimple uset

virtual Uint4 at(Uint4 unit) const

Get the count of the given unit.

CSeqMaskerIstatAscii(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 start_line=0)

Object constructor.

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.

void set_ambig_unit(const CSeqMaskerWindow::TUnit &arg_ambig_unit)

Set the ambiguity unit value.

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.

Uint4 get_info(Uint4 unit) const

Lookup the count value for a given unit.

void add_info(Uint4 unit, Uint4 count)

Add information about the given unit.

static const char * str(char *buf, int n)

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.

NCBI_NS_STD::string::size_type SIZE_TYPE

static unsigned int StringToUInt(const CTempString str, TStringToNumFlags flags=0, int base=10)

Convert string to unsigned int.

static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)


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