23 unparsedArguments_.clear();
26 unique_ptr<IAlignment> iAln;
29 iAln.reset(
new Mase());
31 else if (format ==
"Phylip")
33 bool sequential =
true, extended =
true;
36 if (order ==
"sequential")
38 else if (order ==
"interleaved")
41 throw Exception(
"BppOAlignmentReaderFormat::read. Invalid argument 'order' for phylip format: " + order);
44 if (type ==
"extended")
48 if (
split ==
"spaces")
50 else if (
split ==
"tab")
53 throw Exception(
"BppOAlignmentReaderFormat::read. Invalid argument 'split' for phylip format: " +
split);
55 else if (type ==
"classic")
58 throw Exception(
"BppOAlignmentReaderFormat::read. Invalid argument 'type' for phylip format: " + type);
60 iAln.reset(
new Phylip(extended, sequential, 100,
split));
62 else if (format ==
"Fasta")
66 iAln.reset(
new Fasta(100,
true, extended, strictNames));
68 else if (format ==
"Clustal")
70 unsigned int extraSpaces = ApplicationTools::getParameter<unsigned int>(
"extraSpaces", unparsedArguments_, 0,
"",
true, warningLevel_);
71 iAln.reset(
new Clustal(
true, extraSpaces));
73 else if (format ==
"Dcse")
75 iAln.reset(
new DCSE());
77 else if (format ==
"Nexus")
83 throw IOException(
"Sequence format '" + format +
"' unknown.");
92 unparsedArguments_.clear();
95 unique_ptr<IProbabilisticAlignment> iAln;
97 if (format ==
"Pasta")
101 iAln.reset(
new Pasta(100, extended, strictNames));
105 throw IOException(
"Probabilistic Sequence format '" + format +
"' unknown.");
The clustal sequence file format.
Support for the Dedicated Comparative Sequence Editor format.
The fasta sequence file format.
The mase sequence file format.
The Nexus format reader for sequences.
The Pasta sequence file format.
std::vector< std::string > split(const std::string &s, std::size_t n)
This alphabet is used to deal NumericAlphabet.