Filter out unreliable PSMs.
Source:R/functions-addIdentificationData.R
filterIdentificationDataFrame.RdA function to filter out PSMs matching to the decoy database, of rank greater than one and matching non-proteotypic peptides.
Usage
filterIdentificationDataFrame(
x,
decoy = "isDecoy",
rank = "rank",
accession = "DatabaseAccess",
spectrumID = "spectrumID",
verbose = isMSnbaseVerbose()
)Arguments
- x
A
data.framecontaining PSMs.- decoy
The column name defining whether entries match the decoy database. Default is
"isDecoy". The column should be alogicaland only PSMs holding aFALSEare retained. Ignored is set toNULL.- rank
The column name holding the rank of the PSM. Default is
"rank". This column should be anumericand only PSMs having rank equal to 1 are retained. Ignored is set toNULL.- accession
The column name holding the protein (groups) accession. Default is
"DatabaseAccess". Ignored is set toNULL.- spectrumID
The name of the spectrum identifier column. Default is
spectrumID.- verbose
A
logicalverbosity flag. Default is to takeisMSnbaseVerbose().
Details
The PSMs should be stored in a data.frame such as those produced
by readMzIdData(). Note that this function should be called
before calling the reduce method on a
PSM data.frame.