createChemShiftPerSpec {batman}R Documentation

Creating the file chemShiftPerSpec.csv which contains chemical shift parameters for all multiplets and spectra.

Description

This function creates a file called chemShiftPerSpec.csv, so user can specify chemical shift parameter for each spectrum and multiplet. The first column is multiplet names in the same order as the template inputs in multi_data.csv and/or multi_data_user.csv (depending on user choice of using one or both of them) file(s). The second column is the default chemical shift value (pos_in_ppm) for the corresponding multiplet. From the third column forward is the chemical shift value for each spectrum in the same order as they read in by BATMAN, if 'n' is present in the field, the default chemical shift value (or overwrite_pos value if given) will be used.

Usage

 createChemShiftPerSpec(templateOption, dirIP)

Arguments

templateOption

Choose template file(s). templateOption = 1 for multi_data.csv, templateOption = 2 for multi_data_user.csv, and templateOption = 3 for both files.

dirIP

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

See Also

batman

Examples

library(batman)
## createfolder "runBATMAN" in current working directory
batmanDir = newDir(runBATMANDir = getwd(), overwriteFile = TRUE) 
## create chemShiftPerSpec.csv
createChemShiftPerSpec(templateOption = 1, dirIP = batmanDir[2]) 

[Package batman version 1.2.1.11 Index]