is_rank {yatah} | R Documentation |
Test if a lineage goes down to a specified rank
Description
Test if a lineage goes down to a specified rank
Usage
is_rank(lineage, rank = yatah::all_ranks)
is_at_least_rank(lineage, rank = yatah::all_ranks)
Arguments
lineage |
string. Vector of lineages. |
rank |
string. One of |
Value
logical.
Examples
lineage1 <- "k__Bacteria|p__Verrucomicrobia|c__Verrucomicrobiae"
lineage2 <- "k__Bacteria|p__Firmicutes|c__Clostridia"
is_rank(c(lineage1, lineage2), "class")
is_rank(c(lineage1, lineage2), "order")
is_at_least_rank(c(lineage1, lineage2), "phylum")
is_at_least_rank(c(lineage1, lineage2), "order")
[Package yatah version 1.0.0 Index]