StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
#include <sequenceStream.h>
Public Member Functions | |
sequenceStream () | |
sequenceStream (bool) | |
sequenceStream (std::vector< double > *, track *) | |
sequenceStream (char *, track *) | |
sequenceStream (std::string &, track *) | |
sequenceStream (size_t, size_t) | |
sequenceStream (size_t, size_t, bool) | |
sequenceStream (size_t, size_t, std::vector< double > *, track *) | |
sequenceStream (size_t, size_t, std::string &, track *) | |
sequenceStream (size_t, size_t, char *, track *) | |
bool | getFasta (std::ifstream &, track *) |
void | setBuffer (size_t buff) |
void | setRetain (size_t ret) |
Public Member Functions inherited from StochHMM::sequence | |
sequence () | |
Create a sequence datatype. | |
sequence (bool) | |
sequence (std::vector< double > *, track *) | |
Create a sequence typ. | |
sequence (std::string &, track *) | |
sequence (char *, track *) | |
~sequence () | |
Destroy sequence type. | |
sequence (const sequence &) | |
sequence & | operator= (const sequence &) |
std::string * | getUndigitized () |
size_t | getLength () |
Get the size of the sequence. | |
double | getAttrib () |
ExDefSequence * | getExDef () |
bool | exDefDefined () |
double | realValue (size_t) |
uint8_t | seqValue (size_t) |
size_t | size () |
track * | getTrack () |
void | setTrack (track *tr) |
void | print () |
std::string | stringify () |
std::string | undigitize () |
void | setAttrib (double attr) |
void | setHeader (std::string &head) |
Set the attribute value. | |
void | setSeq (std::string &, track *) |
void | setRealSeq (std::vector< double > *, track *) |
bool | getFasta (std::ifstream &file) |
bool | getFasta (std::ifstream &, track *, stateInfo *) |
bool | getMaskedFasta (std::ifstream &, track *) |
bool | getFastq (std::ifstream &, track *) |
bool | getReal (std::ifstream &file) |
bool | getReal (std::ifstream &file, track *trk) |
bool | getReal (std::ifstream &, track *, stateInfo *) |
int | getMaxMask () |
int | getMask (size_t) |
Return the mask at sequence position. | |
std::string | getSymbol (size_t) const |
void | get_index (size_t position, int order, std::pair< Index, Index > &word_index) |
std::string | getHeader () |
Returns the header of the sequence as a std::string. | |
bool | reverseComplement () |
bool | complement () |
bool | reverse () |
bool | digitize () |
Converts sequence digital based on track alphabet. | |
void | shuffle () |
Shuffles the sequence using std::random_shuffle. | |
std::vector< uint8_t > * | getDigitalSeq () |
uint8_t | operator[] (size_t index) |
void | clear () |
Empty Sequence. |
Private Member Functions | |
void | resetSeq () |
Reset seq or realseq each time getfasta is called. |
Private Attributes | |
size_t | bufferSize |
size_t | retainSize |
std::string | previousSeq |
What is left in "getline" after the buffer has been filled. | |
std::string | retain |
The retain sequence. | |
bool | readingFile |
Keeps track of whether the sequence under the same header is being read. |
Definition at line 19 of file sequenceStream.h.
StochHMM::sequenceStream::sequenceStream | ( | ) |
Definition at line 12 of file sequenceStream.cpp.
References bufferSize, readingFile, and retainSize.
StochHMM::sequenceStream::sequenceStream | ( | bool | realTrack | ) |
Definition at line 18 of file sequenceStream.cpp.
References bufferSize, readingFile, and retainSize.
StochHMM::sequenceStream::sequenceStream | ( | std::vector< double > * | vec, |
track * | tr | ||
) |
Definition at line 24 of file sequenceStream.cpp.
References bufferSize, readingFile, and retainSize.
StochHMM::sequenceStream::sequenceStream | ( | char * | seq, |
track * | tr | ||
) |
Definition at line 30 of file sequenceStream.cpp.
References bufferSize, readingFile, and retainSize.
StochHMM::sequenceStream::sequenceStream | ( | std::string & | sq, |
track * | tr | ||
) |
Definition at line 36 of file sequenceStream.cpp.
References bufferSize, readingFile, and retainSize.
StochHMM::sequenceStream::sequenceStream | ( | size_t | buff, |
size_t | ret | ||
) |
Definition at line 42 of file sequenceStream.cpp.
References bufferSize, readingFile, and retainSize.
StochHMM::sequenceStream::sequenceStream | ( | size_t | buff, |
size_t | ret, | ||
bool | realTrack | ||
) |
Definition at line 48 of file sequenceStream.cpp.
References bufferSize, readingFile, and retainSize.
StochHMM::sequenceStream::sequenceStream | ( | size_t | buff, |
size_t | ret, | ||
std::vector< double > * | vec, | ||
track * | tr | ||
) |
Definition at line 54 of file sequenceStream.cpp.
References bufferSize, readingFile, and retainSize.
StochHMM::sequenceStream::sequenceStream | ( | size_t | buff, |
size_t | ret, | ||
std::string & | sq, | ||
track * | tr | ||
) |
Definition at line 66 of file sequenceStream.cpp.
References bufferSize, readingFile, and retainSize.
StochHMM::sequenceStream::sequenceStream | ( | size_t | buff, |
size_t | ret, | ||
char * | seq, | ||
track * | tr | ||
) |
Definition at line 60 of file sequenceStream.cpp.
References bufferSize, readingFile, and retainSize.
bool StochHMM::sequenceStream::getFasta | ( | std::ifstream & | file, |
track * | trk | ||
) |
Reimplemented from StochHMM::sequence.
Definition at line 81 of file sequenceStream.cpp.
References StochHMM::sequence::_digitize(), bufferSize, StochHMM::sequence::header, StochHMM::sequence::length, previousSeq, readingFile, resetSeq(), retain, retainSize, StochHMM::sequence::seq, StochHMM::sequence::seqtrk, and StochHMM::sequence::undigitized.
|
private |
Reset seq or realseq each time getfasta is called.
Definition at line 220 of file sequenceStream.cpp.
References StochHMM::sequence::real, StochHMM::sequence::realSeq, and StochHMM::sequence::seq.
Referenced by getFasta().
|
inline |
|
inline |
|
private |
Definition at line 43 of file sequenceStream.h.
Referenced by getFasta(), sequenceStream(), and setBuffer().
|
private |
What is left in "getline" after the buffer has been filled.
Definition at line 47 of file sequenceStream.h.
Referenced by getFasta().
|
private |
Keeps track of whether the sequence under the same header is being read.
Definition at line 53 of file sequenceStream.h.
Referenced by getFasta(), and sequenceStream().
|
private |
|
private |
Definition at line 44 of file sequenceStream.h.
Referenced by getFasta(), sequenceStream(), and setRetain().