refpkgContents {clstutils} | R Documentation |
Read the manifest file from a refpackage and return a list containing the package contents.
refpkgContents(path, manifest = "CONTENTS.json")
path |
path to a refpkg directory |
manifest |
name of the manifest file |
Returns a list of lists. Run example(refpkgContents)
for details.
Noah Hoffman
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.
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)) contents <- refpkgContents(refpkg) str(refpkg)