-
Notifications
You must be signed in to change notification settings - Fork 46
Description
Given the new OnDiskMSnExp infrastructure, it is time to upgrade the quantify method. I am considering the following signature (only focusing on the most important arguments for now):
quantify <- function(object, msLevel,
reporters,
method) with the following behaviour:
## msLevel:
## 1 -> see method
## 2 -> see method: either spectral counting (if reporters is
## missing) or isobaric labelling (requires reporters)
## 3 -> isobaric labelling, requires reporters
Another possibility would be to have a QuantitationParams class (with essentially the arguments shown above) and pre-defined instances for the most used methods. At this point it feels overkill, but could be a way to more easily extend quantification parametrisation in the future. This could by the way also be useful for xcms.
Another point I am considering is to allow to either returns an MSnSet containing the feature of the MS level defined as argument to quantify (current behaviour), or to return a new OnDiskMSnExp and the quantification matrix (for all feature) would be stored in a matrix in the assayData slot, similar to what xcms does in the XCMSnExp object.
@sgibb @jotsetung - any comments or suggestions?