Learn R Programming

MSnID (version 1.6.0)

read_mzIDs: Populates MS/MS results table from mzIdentML files

Description

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.

Usage

read_mzIDs(object, mzids)

Arguments

object
An instance of class "MSnID"
mzids
paths to mzIdentML (mzid) files

Value

Returns an instance of "MSnID" class with @psms data.table slot populated with MS/MS identifications.

Details

mzIdentML files can be either as is or in gzip compressed form (*.mzid.gz).

See Also

flatten mzID

Examples

Run this code
## 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