ppc.make.centroid.list {ppc}R Documentation

Function to make a list of peak centroids, from a set of peaks from different spectra

Description

This function starts with a list of peaks from a collection of spectra, and does a one dimensional hierarchical clustering. It then cuts off the dendogram at height user.parms$peak.gap, forming clusters of peaks. The medoids of each cluster form hte final list of peak centroids.

Usage

ppc.make.centroid.list(data, user.parms)

Arguments

data List containing mass spc data
user.parms List of user-defined parameters

Value

cent Matrix of centroids, one per row
peaklist Peaklist used
clust.tree Dendrogram from hclust.1d
all.peaks Vector of m/z values of all peaks used
peak.gap Peak width used
recluster Not currently used

Author(s)

Balasubramanian Narasimhan and Rob Tibshirani

Examples

## for a complete worked example of this function in a PPC analysis  see
##  http://www-stat.stanford.edu/~tibs/PPC/Rdist/Rscript.rawdata

[Package ppc version 1.01 Index]