updateRawSpectraPath: updateRawSpectraPath

View source: R/Spectra_Utils.R

updateRawSpectraPathR Documentation

updateRawSpectraPath

Description

updateRawSpectraPath

Usage

updateRawSpectraPath(mSet, newPath)

Arguments

mSet

mSet object generated by ImportRawMSData or the following functions.

newPath

Character vector, a character vector specify the absolute path of the new raw spectra files.

Value

will return an mSet object with raw files' path updated

Author(s)

Zhiqiang Pang, Jeff Xia jeff.xia@mcgill.ca McGill University, Canada

Examples

data(mSet);
newPath <- dir(system.file("mzData", package = "mtbls2"),
               full.names = TRUE, recursive = TRUE)[c(10, 11, 12)]
mSet <- updateRawSpectraPath(mSet, newPath);

xia-lab/OptiLCMS documentation built on Nov. 26, 2024, 3:50 a.m.