CompEvol / BeastFX

GUIs for BEAST using Java FX to make things more pretty.
GNU Lesser General Public License v2.1
4 stars 2 forks source link

Make FastaImporter allow more flexible data types #59

Closed rbouckaert closed 9 months ago

rbouckaert commented 1 year ago

Currently, only nucleotide and aminoacide data types are supported by the FastaImporter, and only if according to a heuristic (based on file extensions) the sequences are deemed to be ambiguous.

Packages can define their own datatype, and it would be convenient to import alignments with non-standard data types, that could pop up in the drop-down list.

A sanity check needs to be included to prevent nonsensical datatypes to be proposed (e.g. Binary for a nucleotide sequence), perhaps based on the set of characters in sequences and the code map of the data types.