findTaxonMat: Find the Taxonomy Information Matrix

Description Usage Arguments Value Examples

View source: R/taxonomy.R

Description

Find the Taxonomy Information Matrix

Usage

1
findTaxonMat(names, taxonLevels)

Arguments

names

Row names of the taxonomy matrix

taxonLevels

Taxon Levels of all tids

Value

taxmat Taxonomy Information Matrix

Examples

1
2
3
4
5
6
7
8
9
example_data_dir <- system.file("example/data", package = "PathoStat")
pathoreport_file_suffix <- "-sam-report.tsv"
datlist <- readPathoscopeData(example_data_dir, pathoreport_file_suffix,
input.files.name.vec = as.character(1:6))
dat <- datlist$data
ids <- rownames(dat)
tids <- unlist(lapply(ids, FUN = grepTid))
taxonLevels <- findTaxonomy(tids[1:5])
taxmat <- findTaxonMat(ids[1:5], taxonLevels)

PathoStat documentation built on Nov. 9, 2018, 6 p.m.