This functions reads a directory containing directories where each one corresponds to a bruker 2D spectrum directory. A CSV file with the names of the samples and to which bruker 2D spectrum directory (directory name) they correspond to should be given, unless directories' names correspond to the samples names.
read_Bruker_files_2d(bruker_directory, metadata_file=NULL,
m.header_col=T, m.header_row=T, m.sep=",",
samples.names=NULL, zipped=T,
description="", label.x="ppm",
label.y = "ppm", label.values="intensity")
Path of the directory with all the directories of the bruker 2D 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 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.
The label for the pairs' (x,y) variables.
Returns a list representing a 2D dataset for specmine:
A list of matrices where each matrix matches one 2D spectra.
The type of the data in the dataset.
A short text describing the dataset.
A dataframe with the metadata variables.
The ppm values regarding indirect dimension.
The ppm values regarding direct dimension.
A list of vectors for the x, y and pairs'(x,y) values.