Performs automated QC of Recall CSV logs while also performing necessary postprocessing steps.
- Check if metadata (first 7 columns) mnemonics and units are matching the template.
- Check metadata values (lab name, test type, sample type, test date).
- Check if mnemonics are unique
- Check if mnemonics are valid (for specific test type)
- Check if units are correct for specific mnemonic
- Check if data values are in expected range for that unit
- Check depth column for duplicates
- Cleans mnemonic and unit rows. Replaces to uppercase.
- Increment duplicates in Depth column by 0.00001. Causes all values in the column to be unique.
- Splits CSV logs that contain more than 10 data columns to subfiles containing 8 data columns each.
A mandatory supplement to the script, QC_Settings.xlsx (not available on GitHub) file is controlling the QC setup. It lists all the correct values for each QC action. Users can edit and improve QC_Settings.xlsx according to current demands.