Retrieves an aligned sequence via the Fish Tree of Life API. If neither `species` nor `rank` are specified, returns the entire sequence matrix.
fishtree_alignment(species, rank, split = FALSE)
species | (Optionally) subset the results based on a vector of species names. |
---|---|
rank | (Optionally) subset the results based on the supplied taxonomic rank. |
split | Splits the output into a list by gene locus. |
An object of class `"DNAbin"`, or a named list of the same if `split = TRUE``
Rabosky, D. L., Chang, J., Title, P. O., Cowman, P. F., Sallan, L., Friedman, M., Kashner, K., Garilao, C., Near, T. J., Coll, M., Alfaro, M. E. (2018). An inverse latitudinal gradient in speciation rate for marine fishes. Nature, 559(7714), 392–395. doi:10.1038/s41586-018-0273-1