iterateScampi(peptides, proteins, edgespp, rescaling = TRUE, method = "LSE", numIter = 2, numMLEIter = 10, thresh = 2, verbose = FALSE)
pepId
(unique identification number for each distinct peptide sequence, numbering from 1:n where n=number of distinct peptide sequences), pepSeq
(peptide sequence, optionally including modifications and charge states), and pepQty
(peptide abundance score). An additional column pepObs
(peptide observability or identification score) is used if provided. Each row in the data frame describes one observed distinct peptide sequence.
protId
(unique identification number for each distinct protein sequence, numbering from (n+1):(n+m) where m=number of distinct protein sequences), protName
(protein identifier or protein sequence). Each row describes a distinct protein sequence to which at least one of the observed peptides is matching.
pepId
and protId
. Each row defines an edge of the bipartite graph.
rescaling=TRUE
.
method="LSE"
(default), method="MLE"
and method="all"
.
method="MLE"
, see details. Default: numIter=10
.
TRUE
, detailed output is provided.
scampiVal
method="MLE"
the inverses of the covariance matrices (of the connected components) are needed. Depending on the chosen parameters, this can lead to stability issues. To avoid the function from crashing, a try(...)
bolck is used: the parameter estimation is performed until it was successful numIter
times. Among these numIter
sets, the one with the lowest negative log-likelihood value is returned. Peptide outlier detection is based on an interquartile range criterion on the peptide abundance residuals. The larger the chosen thresh
, the less peptides get discarded.
runScampi
to perform a single iteration
data("leptoSRM")
scampiIterRes <- iterateScampi(peptides=leptoSRMpeptides,
proteins=leptoSRMproteins,
edgespp=leptoSRMedgespp, rescaling=FALSE,
method="LSE", numIter=3, thresh=1.37)
Run the code above in your browser using DataLab