groupLabelDimRedData: Reduce the number of labels for DIM reduction plot based on...

View source: R/umapClustering.R

groupLabelDimRedDataR Documentation

Reduce the number of labels for DIM reduction plot based on the gene/taxon frequency

Description

Reduce the number of labels for DIM reduction plot based on the gene/taxon frequency

Usage

groupLabelDimRedData(data4dimRed = NULL, freqCutoff = c(0,200))

Arguments

data4dimRed

data for dimension reduction (from prepareDimRedData)

freqCutoff

gene/taxon frequency cutoff range. Any labels that are outside of this range will be assigned as [Other]

Value

A dataframe similar to input data4dimRed, but with modified Label column, where less frequent labels are grouped together as "Other"

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

prepareDimRedData

Examples

rawInput <- system.file(
   "extdata", "test.main.long", package = "PhyloProfile", mustWork = TRUE
)
longDf <- createLongMatrix(rawInput)
data4dimRed <- prepareDimRedData(longDf, "phylum")
groupLabelDimRedData(data4dimRed, freqCutoff = c(3,5))

BIONF/PhyloProfile documentation built on Dec. 23, 2024, 4:23 a.m.