View source: R/umapClustering.R
groupLabelUmapData | R Documentation |
Reduce the number of labels for UMAP plot based on the gene/taxon frequency
groupLabelUmapData(data4umap = NULL, freqCutoff = c(0,200))
data4umap |
data for UMAP clustering (output from prepareUmapData) |
freqCutoff |
gene/taxon frequency cutoff range. Any labels that are outside of this range will be assigned as [Other] |
A dataframe similar to input data4umap, but with modified Label column, where less frequent labels are grouped together as "Other"
Vinh Tran tran@bio.uni-frankfurt.de
prepareUmapData
rawInput <- system.file(
"extdata", "test.main.long", package = "PhyloProfile", mustWork = TRUE
)
longDf <- createLongMatrix(rawInput)
data4umap <- prepareUmapData(longDf, "phylum")
groupLabelUmapData(data4umap, freqCutoff = c(3,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.