feature_reduction: Feature reduction

Description Usage Arguments Value

Description

feature_reduction is a function to reduce the feature table using the info from the clustering. A representative feature/ion is selected from each cluster discarding the rest of the feature of the same cluster (normally, the most intense one).

Usage

1
2
3
feature_reduction(RC,
xdata,
loaded = TRUE)

Arguments

RC

hclust object from the do_findmain function

xdataImp

data matrix with samples in rows and features in columns. The matrix should not include metadata or any columns without LC-MS data. Note that depending on the origins of the dataset, colnames might have a character starting with "X" avoiding a number in the first character (see loaded = TRUE)

loaded

if matrix is loaded into R, an "X" will be added to each colname. In this case, set loaded = TRUE.

Value

A list containing: $singletons: data frame with features that has not been clustered. $xdata_mol_ions: data frame with the representative ions of each cluster $xdata_reduced: data frame with the reduced dataset (singletons + representative ions of each cluster)


sipss/NIHSlcms documentation built on May 13, 2021, 6:19 p.m.