View source: R/proteinDataPrep.R
proteinDataPrep | R Documentation |
The function sorts a data set of peptide-spectrum matches with associated profiles and descriptive information, ensuring that spectra are nested within peptides and peptides are nested within proteins so that all peptide and protein data are contiguous. Peptide names (typically sequences) are prepended with the associated protein name. The function assigns unique numerical identifiers to each protein (protId) and each peptide (pepId). The input data frame must be formatted so that the first column contains protein names and the second peptide names. This is followed by a series of columns containing descriptive information and profile data.
proteinDataPrep(protClass, numRefCols, numDataCols)
protClass |
data frame containing protein and peptide names, annotation data and profiles |
numRefCols |
number of reference columns (includes protein and peptide names) |
numDataCols |
number of fractions in each profile |
Data frame properly formatted for protlocassign
data(QuantPSM_test)
specNSA_out <- proteinDataPrep(QuantPSM_test, numRefCols=5,numDataCols=9)
head(specNSA_out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.