|Title||»||Create Document Settings form|
|Assigned To||»||Nick Shulman|
Here is a short spec for the feature we were discussing this week:
- Add a Document Settings menu item to the Settings menu that brings up a tabbed form with the following tabs
- The Documentation tab could contain:
- Authors and affiliations
- Standard Operating Procedure
- The Reports tab would show a checked list with the same list of reports currently shown in File > Export > Report. Checked reports would be saved with the document, and restored to the reports list on document load, like the annotations.
- The Annotations tab would contain what is currently shown in the Settings > Annotations form, and Settings > Annotations would go away.
- The Comparisons tab would contain a list of Grouping comparisons that would be editable. The editor for these would contain two dropdown lists:
- Grouping annotation
- Control value
- Identity annotation - allows for averaging technical replicates by, for example subject ID
And a Normalize to group box containing the following options:
- (o) Isotope label type with a combo box listing the isotope label types in the document
- ( ) Peptide standards with a multi-line edit control for pasting peptide sequences into
- ( ) Total signal (the sum of all peak areas for the file)
The comparisons tab would allow us to add fold-change information to both the reports and the Peak Areas - Peptide Comparison graph. To start with, we will do this the simple way that any researcher would do themselves, lacking more sophisticated statistical tools like MSstats and Linear Mixed Effects modeling. That is, we will simply average the values by Identity annotation, divide by the normalization factor, take the log base 2 of the result and subtract the mean of the control group from the mean of any other grouping value in the annotation.
The graph would also have whiskers, which would be settable in a properties form as either:
- Confidence interval
- Prediction interval
With a choice of confidence levels 95% and 99%.
The confidence interval for this difference would be calculated as + or - sqrt(stderr1^2 + stderr2^2)*critical value, where the critical value for a standard normal at 95% confidence is 1.96. Since, these will likely be pretty small numbers included in the means, we should use a T distribution instead, which will require us to write a QT(prob, df) function to be able to get the critical value for 0.975 and 0.995 for various degrees of freedom (n1 + n2 - 2). Prediction intervals are just (stdev + stderr) * critical value. This is important for knowing when a difference might actually be useful for prediction (e.g. a biomarker) versus when just the means of the two groups are different to some level of confidence (e.g. a drug has an effect on a population).