TranslateIdToTaxLevel: Find the taxonomy for the given taxon id name

Description Usage Arguments Value Examples

View source: R/taxonomy.R

Description

Find the taxonomy for the given taxon id name

Usage

1
TranslateIdToTaxLevel(pstat, input.id.vec, tax.level)

Arguments

pstat

pathostat object

input.id.vec

names containing id

tax.level

target taxon level

Value

target taxon level names

Examples

1
2
3
4
5
6
7
data_dir_test <- system.file("data", package = "PathoStat")
pstat_test <- loadPstat(indir=data_dir_test,
infileName="pstat_data_2_L1.rda")
names.new <- TranslateIdToTaxLevel(pstat_test,
c("ti|862962|org|Bacteroides_fragilis_638R",
"ti|697329|org|Ruminococcus_albus_7" ),
"genus")

PathoStat documentation built on Nov. 8, 2020, 5:28 p.m.