openMSfile: Create and check mzR objects from netCDF, mzXML, mzData or...

Description Usage Arguments Author(s) Examples

View source: R/io.R

Description

The openMSfile constructor will create a new format-specifc mzR object, open 'filename' file and all header information is loaded as a Rcpp module and made accessible through the ramp slot of the resulting object.

Usage

1
2
3
4
5
6
7
 openMSfile(filename, backend=c("Ramp", "netCDF"), verbose = FALSE)

 initializeRamp(object)

 isInitialized(object)

 fileName(object)

Arguments

filename

Path name of the netCDF, mzData, mzXML or mzML file to read.

backend

A character specifiying with backend API to use. Currently only 'Ramp' and 'netCDF' are available. 'pwiz' will be added in future version.

object

An instantiated mzR object.

verbose

Enable verbose output.

Author(s)

Steffen Neumann and Laurent Gatto

Examples

1
2
3
4
5
6
7
8
9
 library(msdata)
 filepath <- system.file("microtofq", package = "msdata")
 file <- list.files(filepath, pattern="MM14.mzML",
                    full.names=TRUE, recursive = TRUE)
  mz <- openMSfile(file)
  fileName(mz)
  isInitialized(mz)
  runInfo(mz)
  close(mz)

sneumann/mzR-playground documentation built on May 30, 2019, 6 a.m.