50 MSAReader(std::string _file,
Alphabet _alphabet,
bool _checkValidation,
bool _omitGaps =
false);
54 std::vector<Sequence>
read();
Definition msaReader.h:59
void readFile(std::ifstream &file) override
Definition msaReader.cpp:105
Definition msaReader.h:68
void readFile(std::ifstream &file) override
Definition msaReader.cpp:148
Definition msaReader.h:104
void readFile(std::ifstream &file) override
Definition msaReader.cpp:420
Definition msaReader.h:95
void readFile(std::ifstream &file) override
Definition msaReader.cpp:391
Definition msaReader.h:86
void readFile(std::ifstream &file) override
Definition msaReader.cpp:336
Definition msaReader.h:113
void readFile(std::ifstream &file) override
Definition msaReader.cpp:435
Definition msaReader.h:77
void readFile(std::ifstream &file) override
Definition msaReader.cpp:237
Definition msaReader.h:19
bool checkValidation
Definition msaReader.h:23
void makeUppercase()
Convert all lowercase letters to uppercase in the sequences.
Definition msaReader.cpp:48
std::vector< Sequence > read()
Read the MSA file.
Definition msaReader.cpp:25
void validateSequences(Alphabet alphabet)
Validate the sequences for any invalid characters or unaligned sequences.
Definition msaReader.cpp:56
int isUnaligned()
Check if the MSA sequences are aligned.
Definition msaReader.cpp:72
Alphabet alphabet
Definition msaReader.h:22
virtual void readFile(std::ifstream &file)=0
bool omitGaps
Definition msaReader.h:24
std::vector< Sequence > Sequences
Definition msaReader.h:25
std::string file
Definition msaReader.h:21
MSAReader(std::string _file, Alphabet _alphabet, bool _checkValidation, bool _omitGaps=false)
Constructor.
Definition msaReader.cpp:22
std::string containsInvalidLetters(Alphabet alphabet)
Check if the sequences contain any invalid characters.
Definition msaReader.cpp:88
This file contains declaration of common utility functions used in the MSA project.
Alphabet
Definition common.h:41