filterMaxQuant.Rd
Exclude features with 'Score' below minScore
, 'Peptides' below
minPeptides
, or identified as either 'Reverse',
'Potential.contaminant' or 'Only.identified.by.site' by MaxQuant
.
filterMaxQuant(sce, minScore, minPeptides, plotUpset = TRUE, exclFile = NULL)
A SummarizedExperiment
object (or a derivative).
Numeric scalar, the minimum allowed value in the 'Score' column in order to retain the feature.
Numeric scalar, the minimum allowed value in the 'Peptides' column in order to retain the feature.
Logical scalar, whether to generate an UpSet plot detailing the reasons for features being filtered out. Only generated if any feature is in fact filtered out.
Character scalar, the path to a text file where the
features that are filtered out are written. If NULL
(default),
excluded features are not recorded.
A filtered object of the same type as sce
.
sce <- importExperiment(inFile = system.file("extdata", "mq_example",
"1356_proteinGroups.txt",
package = "einprot"),
iColPattern = "^LFQ.intensity.")$sce
dim(sce)
#> [1] 463 9
sce <- filterMaxQuant(sce = sce, minScore = 2, minPeptides = 2,
plotUpset = TRUE)
dim(sce)
#> [1] 349 9