View source: R/evalTargetDecoys.R
evalTargetDecoys | R Documentation |
Create diagnostic plots to evaluate the TDA assumptions. A histogram and PP plot allow to check both necessary assumptions.
evalTargetDecoys( object, decoy = NULL, score = NULL, log10 = TRUE, nBins = 50, maxPoints = 1000 ) evalTargetDecoysPPPlot( object, decoy = NULL, score = NULL, log10 = TRUE, zoom = FALSE, maxPoints = 1000 ) evalTargetDecoysHist( object, decoy = NULL, score = NULL, log10 = TRUE, nBins = 50, zoom = FALSE )
object |
A |
decoy |
|
score |
|
log10 |
|
nBins |
|
maxPoints |
|
zoom |
Logical value indicating whether a zoomed version of the plot
should be returned. Default: |
evalTargetDecoys
returns an overview of the following four plots:
A PP plot showing the empirical cumulative distribution of the target distribution in function of that of the decoy distribution
A histogram showing the score distributions of the decoys and non-decoys
A zoomed PP plot
A zoomed histogram
evalTargetDecoysPPPlot
generates the PP plot only (1.) or the zoomed
version (3.) if zoom = TRUE
.
evalTargetDecoysHist
generates the histogram only (2.) or the zoomed
version (4.) if zoom = TRUE
.
Sometimes the variable names are not known up front. If this is the case, the
evalTargetDecoys*()
functions can be called with only an input object. This
launches a Shiny gadget that allows selecting the variables interactively. A
histogram and PP-plot of the selected variables are created on the fly for
previewing, together with a snapshot of the selected data.
Elke Debrie, Lieven Clement, Milan Malfait
library(mzID) ## Use one of the example files in the mzID package exampleFile <- system.file("extdata", "55merge_tandem.mzid", package = "mzID") mzIDexample <- mzID(exampleFile) # Plot the overview of the four plots evalTargetDecoys(mzIDexample, decoy = "isdecoy", score = "x\\!tandem:expect", log10 = TRUE ) # Plot the PP plot only evalTargetDecoysPPPlot(mzIDexample, decoy = "isdecoy", score = "x\\!tandem:expect", log10 = TRUE ) # Plot the zoomed PP plot only evalTargetDecoysPPPlot(mzIDexample, decoy = "isdecoy", score = "x\\!tandem:expect", log10 = TRUE, zoom = TRUE ) # Plot the histogram only evalTargetDecoysHist(mzIDexample, decoy = "isdecoy", score = "x\\!tandem:expect", log10 = TRUE ) # Plot the zoomed histogram only evalTargetDecoysHist(mzIDexample, decoy = "isdecoy", score = "x\\!tandem:expect", log10 = TRUE, zoom = TRUE ) ## mzRident objects can also be used library(mzR) if (requireNamespace("msdata", quietly = TRUE)) { ## Using example file from msdata file <- system.file("mzid", "Tandem.mzid.gz", package = "msdata") mzid <- openIDfile(file) } evalTargetDecoys(mzid, decoy = "isDecoy", score = "X.Tandem.expect", log10 = TRUE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.