R/doc_metadata.r

#' @title The Metadata File
#' @description The metadata file contains all the metadata of an experiment 
#' like experiment name etc. It is also used to design the experiment and 
#' to export a randomized sample list that then can be used in the data 
#' acquisition process. Additionally, the references to the temperature 
#' calibration file (necessary for plotting Aquagrams) and to the file containing 
#' the noise-spectra are kept here.
#' @details While the parameters \code{TimePoints, nrConScans, spacing, Repls} 
#' and \code{Group} can be used to further modify an existing sample list, the 
#' class structure as provided in the Excel file referenced at argument 
#' \code{sl_classes} is defining the basic class-structure of an experiment. 
#' Please refer to XXX for examples on how define the class structure via 
#' xlsx-input. 
#' @param expName The name of the experiment. This will be used in many plot 
#'  titles and as a first part of the name of saved PDFs.
#' @param commonValue Character. A value that will be be present in all the rows 
#'  of the dataset. The default 'def' reads in the default value from the 
#' settings.r file. (Parameter \code{p_commonNoSplit}.) 
#' @param envControlLabel The label for the environmental control. Leave at 
#' \code{def} to take the default value from the settings 
#' (parameter \code{p_envControlLabel}).
#' @param realMeasurementLabel The label for the "real measurement", for all 
#' the samples of an experiment. Leave at \code{def} to take the default value 
#' from the settings (parameter \code{p_realMeasurementLabel}).
#' @param xaxDenominator The unit that is displayed on the x-axis when 
#' plotting e.g. raw spectra.
#' @param yaxDenominator The unit that is displayed on the y-axis when 
#' plotting e.g. raw spectra.
#' @param TimePoints Logical 'FALSE' or a character vector. Leave at 'FALSE' if 
#' your experiment does not cover more than one point in time, otherwise provide 
#' a label for each time-point in the format c("T0", "T1", "T2", ...) or leave 
#' at 'FALSE' for no time-splitting.
#' @param nrConScans Numeric length one. The number of consecutive scans for each 
#' sample.
#' @param spacing Numeric length one. The number of "real measurements" between 
#' each "environmental control", i.e. the "space" between environmental control 
#' samples (set to \code{FALSE} for not inserting environmental controls).
#' @param sl_classes Character length one. The name of the xlsx file located in 
#' the metadata folder holding the desired class structure for the experiment, 
#' see details. 
#' @param Repls Numeric. How many replicates of each sample to measure. The values 
#' in the dataset wil be prefixed with the default character for the replicates, 
#' which can be set in the settings (default is "R"). So, with e.g. three 
#' replicates you will find the values "R1", "R2", and "R3" in the dataset.
#' @param Group Character vector. Additional groups to split the above generated 
#' classes into, like e.g. experiment and control. Please see details.
#' @param filetype Character length one. The filetype of the raw-data file. 
#' Leave at \code{def} to get the default from the settings 
#' (parameter \code{imp_specFileType}). If a value other than \code{def} is 
#' provided in the argument \code{filetype} in \code{\link{getFullData}}, this 
#' is overriding the value of \code{filetype} in the metadata file. Please refer 
#' to \code{\link{getFullData}} for possible values.
#' @param noiseFileName The name of the corresponding noise-data file residing 
#' in the AQUAP2SH folder. Leave at \code{def} to get the default from the 
#' settings (parameter \code{noi_noiseDataFilename}. If a value other than 
#' \code{def} is provided in the argument \code{noiseFile} in the function 
#' \code{\link{gdmm}}, this is overriding the value of 'noiseFileName' here in 
#' the metadata file. Please refer to \code{\link{noise_procedures}} for more 
#' information.
#' @param tempCalibFileName The name of the corresponding temperature-data file 
#' residing in the AQUAP2SH folder. Leave at \code{def} to get the default from 
#' the settings (parameter \code{aqg_tempCalib_Filename}). If a value 
#' other than \code{def} is provided in the argument \code{tempFile} in the 
#' function \code{\link{gdmm}}, this is overriding the value of 
#' \code{tempCalibFileName}here in the metadata file. Please refer to 
#' \code{\link{tempCalib_procedures}} for more information.
#' @param sampleListType The type of sample-list file in the 
#' \code{sampleLists/sl_in} folder. Leave at \code{def} to get the default from 
#' the settings (parameter \code{imp_sampleListType}). If a value other than 
#' \code{def} is provided in the argument \code{slType} in the function 
#' \code{\link{getFullData}}, this is overriding the value of 
#' \code{sampleListType} in the metadata file. Please refer to 
#' \code{\link{getFullData}} for possible values.
#' @param tempHumLog If data from temperature and rel.humidity logger should be 
#' imported and aligned to a timestamp in the dataset. Leave at \code{def} to get 
#' the default from the settings (parameter \code{imp_use_TRH_logfile}).  If a 
#' value other than \code{def} is provided in the argument \code{trhLog} in the 
#' function \code{\link{getFullData}}, this is overriding the value of 
#' \code{tempHumLog} in the metadata file. Please refer to \code{\link{getFullData}} 
#' for possible values. 
#' @param multiplyRows Character \code{def} or Logical. If all the rows in the 
#' sample list should be multiplied by the number of consecutive scans as 
#' specified in the metadata of the experiment. Leave at \code{def} to get the 
#' default from the settings (parameter \code{imp_multiplyRows}). If a value other 
#' than \code{def} is provided in the argument \code{multiplyRows} in the function 
#' \code{\link{getFullData}}, this is overriding the value of \code{multiplyRows} 
#' in the metadata file. Please refer to \code{\link{getFullData}} for possible 
#' values. 
#' @seealso \code{\link{getmd}}
#' @family fileDocs
#' @name metadata_file
NULL
bpollner/aquap2 documentation built on March 29, 2024, 7:33 a.m.