Description Usage Arguments Value Examples
View source: R/mzML2dataTable.R
Convert mzML/mzXML data files into data.tables. This function is used by other converters in this package and provides flexible inputs - see parameters for details.
1 | mzML2dataTable(path, scans = NULL, header = NULL)
|
path |
Either a system path to the .mzML file or mzR pointer object |
scans |
A numeric vecotr specifying which scans to return. Optional argument. If ommited, all peaks are returned. Default is 'NULL' |
header |
Option to provide a header data.frame/data.table if it has already been imported. Expects header spans range of 'scans'. Default is NULL. |
a data.table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
#Typical use for user - import mzML/mzXML data as data.table
dt <- mzML2dataTable(path = "mzML_path.mzML", scans = c(1:100))
#Typical use for other functions in this package
#-import mzML/mzXML data as data.table from mzR pointer
mzML <- mzR::openMSfile(filename = "mzML_path.mzML")
dt <- mzML2dataTable(path = mzML, scans = c(1:100))
#-import mzML/mzXML scan data with previously imported header
header <- mzR::header(object = mzML, scans = c(1:100))
dt <- mzML2dataTable(path = mzML,
scans = c(1:100),
header = header)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.