Learn R Programming

specmine (version 2.0.3)

nmr_clustering: Cluster of variables (peaks) in a NMR peaks dataset for metabolite identification.

Description

Takes a dataset and performs clustering of variables, according to a correlation. The variables will be separated into different clusters, according to a minimum correlation between variables. Each cluster may correspond to a metabolite.

Usage

nmr_clustering(dataset_orig, CMETH = "pearson", CVAL = 0.95, MVER = 2)

Arguments

dataset_orig

List representing the dataset from an nmr peaks metabolomics experiment.

CMETH

Correlation method used to cluster the variables. Defaults to "pearson".

CVAL

Minimum correlation between variables, so they can belong to the same cluster. Can be calculated using find_corr function.

MVER

Minimum number of variables in each cluster. Only the clusters with at least MVER variables will be returned.

Value

List with the formed clusters