is_rank | R Documentation |
Test if a lineage goes down to a specified rank
is_rank(lineage, rank = yatah::all_ranks)
is_at_least_rank(lineage, rank = yatah::all_ranks)
lineage |
string. Vector of lineages. |
rank |
string. One of |
logical.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.