findTaxonMat {PathoStat} | R Documentation |
Find the Taxonomy Information Matrix
findTaxonMat(names, taxonLevels)
names |
Row names of the taxonomy matrix |
taxonLevels |
Taxon Levels of all tids |
taxmat Taxonomy Information Matrix
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)