Learn R Programming

binneR (version 2.0.11)

readFiles: Read and process mulitple data files

Description

Apply spectral binning on multiple data files.

Usage

readFiles(files, dp, scans, sranges = list(c(50, 1000)), modes = c("n",
  "p"), nCores = 1)

Arguments

files

A vector of converted data file paths

dp

An integer denoting the number of decimal places for spectral binning

scans

A vector of scan numbers that should be retrieved

sranges

A list of vectors containing the scan events present.

modes

A vector of strings denoting mode names including the order in which the scan events occur.

nCores

The number of cores on which to parallel process.

Value

A list containing peak lists for the relevant scans with combined scan ranges for each present mode in the data file.

Examples

Run this code
# NOT RUN {
res <- readFiles(list.files(system.file('mzML',package = 'binneR'),
                 full.names=TRUE),dp = 2,scans = 6:17)
# }

Run the code above in your browser using DataLab