prepareDimRedData: Prepare data for dimension reduction

View source: R/umapClustering.R

prepareDimRedDataR Documentation

Prepare data for dimension reduction

Description

Prepare data for dimension reduction

Usage

prepareDimRedData(longDf = NULL, taxonRank = NULL, type = "taxa",
    taxDB = NULL, filterVar = "both", cutoff = 0, groupLabelsBy = "taxa")

Arguments

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"

Value

A dataframe in wide format

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

Examples

rawInput <- system.file(
   "extdata", "test.main.long", package = "PhyloProfile", mustWork = TRUE
)
longDf <- createLongMatrix(rawInput)
prepareDimRedData(longDf, "phylum")

BIONF/PhyloProfile documentation built on Dec. 18, 2024, 7:33 a.m.