createChemShiftPerSpec: Creating the file chemShiftPerSpec.csv which contains...

Description Usage Arguments See Also Examples

View source: R/createChemShiftPerSpec.R

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

1
 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

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

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