MSnID
is a convenience class for manipulating
the MS/MS search results.
MSnID
constructor function that takes as an input the project working directory
workDir
and the second argument if the cache from previous analysis
should be cleaned cleanCache
.workDir
:"character"
.
containing working directory for the project.
The .Rcache
subdirectory stores the cached
resuls form the previous analyses.
The mechanism of caching relies on R.cache package.psms
:data.table
that contains all
the MS/MS identification results in the
form of peptide(or protein)-spectrum-matches.signature(object, mzids)
:
Reads mzIdentML files into psms
data.table
slot
of object
MSnID instance. The functionality leverage
mzID package facility. Note, the calls are memoised
using R.cache facility. So if the call with the same
list of files issues again, the results will be read from cache
instead of re-parsing the mzIdentML files.
See read_mzIDs
psms(object)
, psms(object)<-value
:data.frame
.
See psms
signature(x = "MSnID")
: Returns the dimensions of
the table with MS/MS identification data.signature(object = "MSnID")
:
Returns unique peptide list. See peptides
signature(object = "MSnID")
:
Returns unique accessions (typically proteins) list.
See accessions
signature(object = "MSnID")
:
Returns unique proteins list.
See proteins
MSnID
object with extra variable numIrregCleavages
.
See assess_termini
assess_missed_cleavages
experimentalMassToCharge
and calculatedMassToCharge
variables to be set. See mass_measurement_error
experimentalMassToCharge
measurements.
See recalibrate
correct_peak_selection
signature(msnidObj="MSnID", filterObj="character")
signature(msnidObj="MSnID", filterObj="MSnIDFilter")
The filterObj
argument is a "character"
or
converted to a "character"
text string that is
evaluated to a "logical"
for each entry of the
MS/MS results table. Return value is a filtered
MSnID
object with entries that pass the applied filter.
See apply_filter
evaluate_filter(object, filter,
level = c("PSM","peptide", "accession")
Returns a list with fdr
and n
elements.
Argument filter
is either "character"
or "MSnIDFilter"
object. Argument level
can
take one of the values c("PSM","peptide","accession")
and controls the level filter is evaluated.
See evaluate_filter
id_quality
signature(object="MSnID", ...)
Other optional ... arguments are filter
is an "MSnIDFilter"
instance and level
. The level
values are one of "PSM",
"peptide", "accession". The method returns FDR for given
level depending of type of identifications.
See id_quality
signature(x = "MSnID")
:
Coerce object from MSnID
to MSnSet
.object$name
, object$name<-value
name
column in MS/MS search results table.object[[i]]
, object[[i]]<-value
i
(character or numeric index) in
MS/MS search results table.signature(from = "MSnID")
:
Coerce object from MSnID
to MSnSet
.signature(from = "MSnID")
:
Coerce object from MSnID
to data.table
.MSnSet
,
mzID
.
## Not run:
# msnidObj <- MSnID(".")
# mzids <- system.file("extdata","c_elegans.mzid.gz",package="MSnID")
# msnidObj <- read_mzIDs(msnidObj, mzids)
# # clean up the cache directory
# unlink(".Rcache", recursive=TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab