This function read raw spectra (i.e. intensity over time spectra) from the varian format and processess them to intensity over ppm spectra. For this function to work, in each spectrum directory should be present a fid and procpar files.
Python 3 with modules nmrglue must be installed.
read_varian_spectra_raw(varian_spectra_directory,
metadata_file=NULL, m.header_col=TRUE, m.header_row=TRUE, m.sep=",",
samples.names=NULL, zero_filling=TRUE, apodization=TRUE, zipped=TRUE,
description="", label.x="ppm", label.values="intensity")
Path of the directory with all the directories of the varian spectra.
Path of the metadata file.
Boolean value indicating if the metadata CSV file contains a header column with the name of the metadata variables.
Boolean value indicating if the metadata CSV file contains a header row with the name of the samples.
The separator character of the metadata file.
CSV file where the first column represents the samples names and in the second column the names of the spectra directories to which they correspond. If NULL, it will be considered that the directories names are the samples names (it has to be the same names that appear in the metadata file).
boolean value indicating whether zero-filling should be performed or not when processing the fid spectra. Defaults to TRUE.
boolean value indicating whether apodization should be performed or not when processing the fid spectra. Defaults to TRUE.
Boolean value indicating if the spectra directories are zipped or not.
A short text describing the dataset.
The label for the x values.
The label for the y values.
Returns a list representing a dataset for specmine.
You must not call this function unless you have Python (>=3.5.2) installed in your machine and the module nmrglue.