Filter out unreliable PSMs.
Source:R/functions-addIdentificationData.R
filterIdentificationDataFrame.Rd
A 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.frame
containing PSMs.- decoy
The column name defining whether entries match the decoy database. Default is
"isDecoy"
. The column should be alogical
and only PSMs holding aFALSE
are retained. Ignored is set toNULL
.- rank
The column name holding the rank of the PSM. Default is
"rank"
. This column should be anumeric
and 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
logical
verbosity 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
.