The current workflow using modelIntensity and correctIntensities is counterintuitive.
While modelRt build the rt model and corrects the retention times the modelIntensity functions just creates the model and a new column intensityCorrectionFactor. In contrast to the rt correction the user has to apply the correctIntensities functions manually on a MSnSet:
# synapter workflow
# ...
modelIntensity(synapterObj)
msnset <- as(synapterObj, "MSnSet")
## do stuff with msnset
correctedMSnSet <- correctIntensities(msnset)
I would suggest to correct the intensities automatically, create the intensityCorrectionFactor column and if the user wants to requantifiy the intensity correction could be undone and redone afterwards:
This approach would completely remove the need to call correctIntensities manually (in the same manner as nobody needs to call correctRetentionTimes). IMHO the uncorrected intensities are just useful for requantify.
The current workflow using
modelIntensity
andcorrectIntensities
is counterintuitive. WhilemodelRt
build the rt model and corrects the retention times themodelIntensity
functions just creates the model and a new columnintensityCorrectionFactor
. In contrast to the rt correction the user has to apply thecorrectIntensities
functions manually on aMSnSet
:I would suggest to correct the intensities automatically, create the
intensityCorrectionFactor
column and if the user wants torequantifiy
the intensity correction could be undone and redone afterwards:This approach would completely remove the need to call
correctIntensities
manually (in the same manner as nobody needs to callcorrectRetentionTimes
). IMHO the uncorrected intensities are just useful forrequantify
.What is your opinion @pavel-shliaha ?