15 if (format == PHYLIP_FORMAT)
16 return make_unique<PhylipDistanceMatrixFormat>(extended);
18 throw Exception(
"Format " + format +
" is not supported for input.");
23 if (format == PHYLIP_FORMAT)
25 return make_unique<PhylipDistanceMatrixFormat>(extended);
28 throw Exception(
"Format " + format +
" is not supported for output.");
virtual std::unique_ptr< ODistanceMatrix > createWriter(const std::string &format, bool extended=false)
Get a new dynamically created ODistanceMatrix object.
virtual std::unique_ptr< IDistanceMatrix > createReader(const std::string &format, bool extended=false)
Get a new dynamically created IDistanceMatrix object.
static const std::string PHYLIP_FORMAT
This alphabet is used to deal NumericAlphabet.