Learn R Programming

SIM (version 1.42.0)

readCDF: Read raw mass spectrometry data in netCDF files

Description

This function read raw netCDF files and provides a list of peaks and retention time of scans.

Usage

readCDF(path = getwd())

Arguments

path
a string including the full path of the CDF files, optional.

Value

  • a character vector inlcuding the names of the imported netCDF files. The output then can be used with getPeak function.

Details

This function gets a path which is optional. In the path, it searches for CDF files and reads them one by one. An RData file is created for each file separately, keeping the original file names. Each file includes a list of peaks, i.e. a combination of mass and intensities of scans, and the retention times of the scans.

References

http://omics.georgetown.edu/SIMAT.html

See Also

readMSL

Examples

Run this code
# load an example data set
    extdata.path <- system.file("extdata", package = "SIMAT")
    
    # read CDF files
    file.name <- readCDF(path = extdata.path)

Run the code above in your browser using DataLab