ppc.subset.and.reshape.peakdata {ppc} | R Documentation |
This function subsets mass spec peak data, using the m/z limits mz.min and mz.max in user.parms. If there are batches, it also reshapes the data, concatenating the spectra in different batches for a given patient. Thus for each patient it produces one long vector of values. The m/z values are strung out as well. Using this trick we can essentially ignore the presence of batches for the rest of the analysis,
ppc.subset.and.reshape.peakdata(data, user.parms)
data |
List containing the mass spec data |
user.parms |
List of user parameters |
List containing the subset and reshaped mass spec data
Balasubramanian Narasimhan and Rob Tibshirani
## for a complete worked example of this function in a PPC analysis see ## http://www-stat.stanford.edu/~tibs/PPC/Rdist/Rscript.peakdata