View source: R/umapClustering.R
prepareDimRedData | R Documentation |
Prepare data for dimension reduction
prepareDimRedData(longDf = NULL, taxonRank = NULL, type = "taxa",
taxDB = NULL, filterVar = "both", cutoff = 0, groupLabelsBy = "taxa")
longDf |
input phyloprofile file in long format |
taxonRank |
taxonomy rank for labels (e.g. "phylum") |
type |
type of clustering, either "taxa" (default) or "genes" |
taxDB |
path to taxonomy database |
filterVar |
choose variable (either "var1", "var2" or "both") to filter the data. Default: "both" |
cutoff |
cutoff to filter data values. Default: 0 |
groupLabelsBy |
group labels by the number of "taxa" (default) or "genes" |
A dataframe in wide format
Vinh Tran tran@bio.uni-frankfurt.de
rawInput <- system.file(
"extdata", "test.main.long", package = "PhyloProfile", mustWork = TRUE
)
longDf <- createLongMatrix(rawInput)
prepareDimRedData(longDf, "phylum")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.