Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef OBJECTS_SEQ___SEQPORT_UTIL__HPP
2 #define OBJECTS_SEQ___SEQPORT_UTIL__HPP
57 typedef pair<TIndex, TIndex>
TPair;
63 : runtime_error(
"CSeqportUtil::" + method +
64 " -- bad index specified: " +
NStr::UIntToString(idx)) {}
69 : runtime_error(
"CSeqportUtil::" + method +
70 " -- bad symbol specified: " +
code) {}
75 : runtime_error(
"CSeqportUtil::" + method +
76 " -- specified code or code combination not supported") {}
105 ConvertWithBlastAmbig(
const CSeq_data& in_seq,
111 vector<Uint4>* blast_ambig);
127 static bool FastValidate(
const CSeq_data& in_seq,
134 static void Validate(
const CSeq_data& in_seq,
135 vector<TSeqPos>* badIdx,
146 vector<TSeqPos>* out_indices,
242 static const string& GetIupacaa3(
TIndex ncbistdaa);
ENa_strand Reverse(ENa_strand s)
User-defined methods of the data storage class.
pair< TIndex, TIndex > TPair
TResidue Complement(TResidue c)
void ReverseComplement(const BidirectionalIterator &first, const BidirectionalIterator &last)
unsigned int TSeqPos
Type for sequence locations and lengths.
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.
ESeq_code_type
sequence representations
@ e_Ncbi2na
2 bit nucleic acid code
static string Pack(const string &s)
CBadIndex(TIndex idx, string method)
CBadSymbol(string code, string method)
Template structure SStaticPair is simlified replacement of STL pair<> Main reason of introducing this...
const value_slice::CValueConvert< value_slice::SRunTimeCP, FROM > Convert(const FROM &value)