Extract the number of taxa from a file

get_n_taxa(filename)

Arguments

filename

name of a FASTA file

Value

the number of taxa

Author

Richèl J.C. Bilderbeek

Examples

fasta_filename <- get_beautier_path("test_output_5.fas")
# 5
get_n_taxa(fasta_filename)
#> [1] 5