powered by
Extract the clade of a desired rank in a lineage
get_clade(lineage, rank = yatah::all_ranks, same = TRUE)
A string.
string. Vector of lineages.
The desired rank of the clade.
logical. Does the lineage have the same depth? Default to TRUE.
TRUE
lineage1 <- "k__Bacteria|p__Verrucomicrobia|c__Verrucomicrobiae" lineage2 <- "k__Bacteria|p__Firmicutes|c__Clostridia" get_clade(c(lineage1, lineage2), "phylum")
Run the code above in your browser using DataLab