Last chance! 50% off unlimited learning
Sale ends in
Construct a data.frame providing the lineage of each sequence represented in the reference package.
taxonomyFromRefpkg(path, seqnames, lowest_rank = NA)
$taxTab
refpkg_contents$taxonomy
data.frame
in which each row corresponds to a
reference sequence and contains a tax_id followed by the corresponding
lineage (columns are "root"...lowest_rank)The decsription and specification for a reference package can be found in the project repository in github: https://github.com/fhcrc/taxtastic
Scripts and tools for creating reference packages are provided in the
python package taxonomy
, also available from the taxtastic
project site.
refpkgContents
archive <- 'vaginal_16s.refpkg.tar.gz'
destdir <- tempdir()
system(gettextf('tar -xzf %s --directory="%s"',
system.file('extdata',archive,package='clstutils'),
destdir))
refpkg <- file.path(destdir, sub('.tar.gz','',archive))
reftax <- taxonomyFromRefpkg(refpkg)
str(reftax)
Run the code above in your browser using DataLab