This PR suggests changes to calculate and output quality control information for each data set based on evaluating the deviation of measured values of standards from their true values as specified in the input.
Specifically, it rewrites part of the code in helpers_accumulateMeasurementsForEachSample.R to deliver the desired output by replacing accumulateMeasurementsForEachSample() with processDataForOutput() and adding the functions processSingleDatasetForOutput() and getQualityControlInfo(). The code to deliver the programme output has been changed accordingly in processData(). Tests have been added to check the new behaviour. The new function calculate RMSD() in maths_calculateRMSD.R is used to obtain the root mean square deviation between two variables.
@twollnik Please have a look over the suggested changes. One specific point to look at is the test commented out in Line 48 of testProcessDataForOutput.R. From manual testing/printing I checked that the two data frames are actually identical, however, the automatic test still fails for reasons I coudn't figure out. If the test eventually works, it is supposed to replace the two tests in the following Lines 49-50 which only test for correct dimensions.
This PR suggests changes to calculate and output quality control information for each data set based on evaluating the deviation of measured values of standards from their true values as specified in the input.
Specifically, it rewrites part of the code in
helpers_accumulateMeasurementsForEachSample.R
to deliver the desired output by replacingaccumulateMeasurementsForEachSample()
withprocessDataForOutput()
and adding the functionsprocessSingleDatasetForOutput()
andgetQualityControlInfo()
. The code to deliver the programme output has been changed accordingly inprocessData()
. Tests have been added to check the new behaviour. The new functioncalculate RMSD()
inmaths_calculateRMSD.R
is used to obtain the root mean square deviation between two variables.@twollnik Please have a look over the suggested changes. One specific point to look at is the test commented out in Line 48 of
testProcessDataForOutput.R
. From manual testing/printing I checked that the two data frames are actually identical, however, the automatic test still fails for reasons I coudn't figure out. If the test eventually works, it is supposed to replace the two tests in the following Lines 49-50 which only test for correct dimensions.