This is done in the same way as BEAST2 will do so.
get_alignment_id(fasta_filename, capitalize_first_char_id = FALSE)
a FASTA filename.
get_fasta_filename to obtain a testing FASTA filename.
Note that BEAST2 also supports missing data,
by using a dash (
-) or question mark (
as a sequence.
if TRUE, the first character will be capitalized
an alignment's ID
Use check_alignment_id to check if an alignment ID is valid.
# Path need not exist, use UNIX path as example # anthus_aco_sub created <- get_alignment_id("/home/homer/anthus_aco_sub.fas") check_alignment_id(created)