ppc.predict.peaks {ppc} | R Documentation |
A function to find centroid peaks, in a list of individual peaks
Description
Takes centroid.fit (result of a call to make.centroids.list)
and looks for these m peaks in peaklist, a list of length n
returns ind - an m by n matrix of TRUE/FALSE values
and ht, the matrix of corresponding peak heights. A peak
is considered present if it is within user.parms$peak.gap units from the centroid.
Usage
ppc.predict.peaks(centroid.fit, data)
Arguments
centroid.fit |
Result of call to make.centroid.list |
data |
List containing the mass spec peaks data |
Value
ind |
indicator matrix of presence/absence of peak |
ht |
matrix of heights. Note: peak is not present if ind=0, even if ht is >0 |
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]