Hexadecimal coding is useful for ensuring that accession numbers dont contain characters that are considered illegal for newick strings

hex2acc(x, force = FALSE)

Arguments

x

A DNAbin or DNAStringSet with names formatted Accession|taxid;taxonomy. Or a character vector with names formatted Accession|taxid;taxonomy Or a character vector of accessions

force

override checks if string is already hexadecimal