makeProteinTable | R Documentation |
makeProteinTable
creates a protein table from the peptide table.
Protein intensities or ratios are aggregated from peptide data. An external
function is used to aggregate each protein.
makeProteinTable(
pepdat,
aggregate.fun = aggregateHifly,
...,
min.peptides = 2,
ncores = 4
)
pepdat |
A |
aggregate.fun |
Function to aggregate peptides into a protein. See "Details" for more details. |
... |
Additional parameters to pass to |
min.peptides |
Minimum number of peptides per protein |
ncores |
Number of cores for parallel processing |
There are three protein aggregation functions provided in this package:
aggregateHifly
, aggregateMedian
and
aggregateSum
. Depending on the needs, the user can provide any
arbitrary function to perform aggregation.
The aggregate function should be in form: function(wp, ...)
. wp
is a matrix containing measurements from all peptides for the particular
protein. Rows are peptides, columns are samples. ...
are additional
parameters for the function that are passed from makeProteinTable
. The
aggregate function should return a vector of values for each sample. That is
the length of the vector should be the same as the number of columns in
wp
.
A proteusData
object containing protein intensities and
metadata.
library(proteusLabelFree)
data(proteusLabelFree)
prodat <- makeProteinTable(pepdat.clean, ncores=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.