createPuerSpectraTemplate: Creating a folder called 'PureSpectraTemplate' in the...

Description Usage Arguments Examples

Description

This function will read in pure metabolites spectra in Bruker format and save them in .txt format in folder "PureSpectraTemplate". The .txt file name is the same as the input to "metaNames". The "PureSpectraTemplate" folder will be used if a raster multiplet is used ("couple_code" value in multi_data.csv and/or multi_data_user.csv is set to "-2").

Usage

1
 createPureSpectraTemplate(dirPureSpec, metaNames, dirIP)

Arguments

dirPureSpec

A vector containing the directories of Bruker pure metabolite spectra files.

metaNames

The vector of metabolites names in the same order as the spectra directories in dirPureSpec.

dirIP

The input directory of BATMAN. This is the path ending with '/runBATMAN/BatmanInput' if runBATMAN directory is created.

Examples

1
2
3
4
5
6
7
library(batman)
## createfolder "runBATMAN" in current working directory
batmanDir = newDir(runBATMANDir = getwd(), overwriteFile = TRUE) 
## create pure spectra text file, replace "/user/bruker/spectra/file?" 
## with the directories of Bruker spectra files.
## createPureSpectraTemplate(dirPureSpec = c(/user/bruker/spectra/file1,
## /user/bruker/spectra/file2), metaNames = c("testPure1"), dirIP = batmanDir[2])

batman documentation built on June 7, 2017, 3 p.m.