read_mzIDs: Populates MS/MS results table from mzIdentML files

Description Usage Arguments Details Value Author(s) See Also Examples

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

1
    read_mzIDs(object, mzids, backend)

Arguments

object

An instance of class "MSnID"

mzids

paths to mzIdentML (mzid) files

backend

Package that is leveraged for parsing. Either 'mzID' or 'mzR' corresponding to mzID-package and mzR-class respectively. The 'mzR' parser is much faster, since it is based on C++ code. 'mzID' will be kept in the package for leagacy reasons. Note, the default is 'mzID'.

Details

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

Value

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

Author(s)

Vladislav A Petyuk vladislav.petyuk@pnnl.gov

See Also

flatten mzID

Examples

1
2
3
4
5
6
7
8
## 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)

vladpetyuk/MSnID documentation built on June 25, 2021, 6:35 a.m.