Test if a string is a lineage
Arguments
- string
string to be tested as lineage.
Details
Alphanumeric character, hyphen, dots, square brackets
and non-consecutive underscores are allowed in clades names.
Examples
is_lineage("k__Bacteria|p__Firmicutes|c__Clostridia|o__Clostridiales")
#> [1] TRUE