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_mzIDspsms(object), psms(object)<-value:data.frame.
See psmssignature(x = "MSnID"): Returns the dimensions of
the table with MS/MS identification data.signature(object = "MSnID"):
Returns unique peptide list. See peptidessignature(object = "MSnID"):
Returns unique accessions (typically proteins) list.
See accessionssignature(object = "MSnID"):
Returns unique proteins list.
See proteinsMSnID object with extra variable numIrregCleavages.
See assess_terminiassess_missed_cleavagesexperimentalMassToCharge and calculatedMassToCharge
variables to be set. See mass_measurement_errorexperimentalMassToCharge measurements.
See recalibratecorrect_peak_selectionsignature(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_filterevaluate_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_filterid_qualitysignature(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_qualitysignature(x = "MSnID"):
Coerce object from MSnID to MSnSet.object$name, object$name<-valuename column in MS/MS search results table.object[[i]], object[[i]]<-valuei (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