valpas.valpas_core.prepare#
- valpas.valpas_core.prepare(infile=None, infile2=None, infolder=None, file_type='csv', sheet=None, sheet2=None)#
Prepares and validates input data for association analysis.
- Parameters:
infile (str or Path) – Path to the primary file.
infile2 (str or Path) – Path to the optional second file.
infolder (str or Path) – Path to folder containing multiple files.
file_type (str) – File type (‘csv’ or ‘xlsx’).
sheet (str) – Name of the Excel sheet (if applicable).
sheet2 (str) – Secondary Excel sheet for the second file (if applicable).
- Returns:
Validated experiment objects.
- Return type:
experiments