You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flipped_pval=1-0.5*node.p_val#the flipped pval is always larger than 0.5 and the closer to 1 is gets, the closer it goes to 0.5, while the smaller it gets, the closer it goes to 1. When we express this with the standard normal distribution, we are always on the right side of the distribution, so we can use the inv_cdf function to get a positive z-value equivalent to the p-value
flipped_pval=1-0.5*node.p_val#the flipped pval is always larger than 0.5 and the closer to 1 is gets, the closer it goes to 0.5, while the smaller it gets, the closer it goes to 1. When we express this with the standard normal distribution, we are always on the right side of the distribution, so we can use the inv_cdf function to get a positive z-value equivalent to the p-value
def_perform_binomal_test_on_higher_condition(self): # we first test the null hypothesis that the values observed in the higher condition (e.g. 5 values are there and we have 6 measurements in total) are missing at random. If this is not the case, we can't apply the binomial test to the lower condition.
196
+
def_perform_binomal_test_on_higher_condition(self): # we first test the null hypothesis that the values observed in the higher condition (e.g. 5 values are there and we have 6 measurements in total) are missing at random. If this is not the case, we can't apply the binomial test to the lower condition.
if (protnode_missingval.c1_has_values) and (protnode_missingval.c2_has_values): #one of the conditions has to be missing, otherwise it means that there was e.g. one fragment ion with values in c1 and other fragment ions with values in c2
take_median_ion (bool): Use median-centered fragment ions for peptide comparisons. Defaults to True.
109
110
perform_ptm_mapping (bool): Enable PTM site mapping analysis. Defaults to False.
110
111
perform_phospho_inference (bool): Enable phosphorylation-prone region annotation. Defaults to False.
112
+
enable_experimental_ptm_counting_statistics (bool): Allow experimental PTM counting statistics with "either" mode or zero min_valid_values. Defaults to False.
111
113
outlier_correction (bool): Enable outlier correction in differential testing. Defaults to True.
112
114
normalize (bool): Enable sample and condition normalization. Defaults to True.
113
115
use_iontree_if_possible (bool): Use ion tree structure when available. Defaults to True.
raiseException("modification_type is None, but perform_ptm_mapping is True. Please set perform_ptm_mapping to False or specify modification_type.")
163
+
if (valid_values_filter_mode=="either") andnotenable_experimental_ptm_counting_statistics:
164
+
LOGGER.warning("For PTM mapping analysis, using valid_values_filter_mode='either' with counting statistics is currently experimental and may produce unreliable results. Setting to 'both' instead for stability. If you'd like to use 'either' mode anyway, set enable_experimental_ptm_counting_statistics=True.")
165
+
valid_values_filter_mode="both"
166
+
if (min_valid_values_c1==0ormin_valid_values_c2==0) andnotenable_experimental_ptm_counting_statistics:
167
+
LOGGER.warning("For PTM mapping analysis, using min_valid_values_c1=0 or min_valid_values_c2=0 with counting statistics is currently experimental and may produce unreliable results. Setting minimum value to 2 instead for stability. If you'd like to keep the original values, set enable_experimental_ptm_counting_statistics=True.")
name='Enable counting statistics for PTM sites (experimental feature!)',
423
+
value=False,
424
+
width=300
425
+
),
421
426
'outlier_correction': pn.widgets.Checkbox(
422
427
name='Enable outlier correction',
423
428
value=True,
@@ -450,6 +455,7 @@ def _make_widgets(self):
450
455
'take_median_ion': pn.pane.Markdown('Center ion intensities around their median values'),
451
456
'perform_ptm_mapping': pn.pane.Markdown('Map post-translational modifications to proteins'),
452
457
'perform_phospho_inference': pn.pane.Markdown('Infer phosphorylation sites from the data'),
458
+
'enable_experimental_ptm_counting_statistics': pn.pane.Markdown('Enable experimental support for PTM counting statistics with minimum valid values "either" mode. This may produce unreliable results.'),
453
459
'outlier_correction': pn.pane.Markdown('Automatically detect and correct outliers in the data'),
454
460
'normalize': pn.pane.Markdown('Normalize data to account for technical variations'),
455
461
'write_out_results_tree': pn.pane.Markdown('Save detailed results in a tree structure'),
@@ -494,6 +500,9 @@ def _make_widgets(self):
494
500
sizing_mode='stretch_width'
495
501
)
496
502
503
+
# Initially hide the experimental PTM counting statistics checkbox since PTM mapping is off by default
" condpairs_list=CONDPAIRS_LIST, perform_ptm_mapping=True,modification_type=\"[Phospho (STY)]\",organism=\"human\", valid_values_filter_mode=\"both\") #counting statistics together with PTM mapping is currently an experimental feature, so we set valid_values_filter_mode to \"both\""
0 commit comments