#include <msaReader.h>
|
| MSAReader (std::string _file, Alphabet _alphabet, bool _checkValidation, bool _omitGaps=false) |
| Constructor.
|
|
std::vector< Sequence > | read () |
| Read the MSA file.
|
|
◆ MSAReader()
MSAReader::MSAReader |
( |
std::string | _file, |
|
|
Alphabet | _alphabet, |
|
|
bool | _checkValidation, |
|
|
bool | _omitGaps = false ) |
Constructor.
- Parameters
-
_file | |
_alphabet | |
_checkValidation | |
_omitGaps |
|
◆ containsInvalidLetters()
string MSAReader::containsInvalidLetters |
( |
Alphabet | alphabet | ) |
|
|
protected |
Check if the sequences contain any invalid characters.
- Returns
- The sequence number and position of the first invalid character, or an empty string if valid
◆ isUnaligned()
int MSAReader::isUnaligned |
( |
| ) |
|
|
protected |
Check if the MSA sequences are aligned.
- Returns
- -1 if aligned, otherwise return the index of the unaligned sequence
◆ makeUppercase()
void MSAReader::makeUppercase |
( |
| ) |
|
|
protected |
Convert all lowercase letters to uppercase in the sequences.
◆ read()
Read the MSA file.
- Returns
- The processed sequences in the file
◆ readFile()
virtual void MSAReader::readFile |
( |
std::ifstream & | file | ) |
|
|
protectedpure virtual |
◆ validateSequences()
void MSAReader::validateSequences |
( |
Alphabet | alphabet | ) |
|
|
protected |
Validate the sequences for any invalid characters or unaligned sequences.
- Parameters
-
◆ alphabet
◆ checkValidation
bool MSAReader::checkValidation |
|
protected |
◆ file
std::string MSAReader::file |
|
protected |
◆ omitGaps
◆ Sequences
std::vector<Sequence> MSAReader::Sequences |
|
protected |
The documentation for this class was generated from the following files: