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
raiseException(f"condpair has not enough samples: c1:{len(samples_c1)} c2: {len(samples_c2)}, skipping")
162
162
163
-
if (minrep_eitherisnotNone) or ((minrep_c1isnotNone) and (minrep_c2isnotNone)): #minrep_both was set as default and should be overruled by minrep_either or minrep_c1 and minrep_c2
raiseException(f"invalid value set for the variable valid_values_filter_mode: {valid_values_filter_mode}, please ensure that is set to: 'either', 'both' or 'per_condition'")
multicond_median_analysis (bool): Whether to compare all conditions to a median condition. Defaults to False.
87
92
condpairs_list (list): Specific condition pairs to compare. If None, performs all pairwise comparisons.
88
93
file_has_alphaquant_format (bool): Whether the input file is already in AlphaQuant matrix format. Defaults to False.
89
-
minrep_both (int): Minimum replicate count required in both conditions. Defaults to 2.
90
-
minrep_either (int): Minimum replicate count required in either condition.
91
-
minrep_c1 (int): Minimum replicate count required in condition 1.
92
-
minrep_c2 (int): Minimum replicate count required in condition 2.
94
+
min_valid_values (int): Minimum number of valid values required across conditions. Defaults to 2.
95
+
valid_values_filter_mode (str): Strategy for filtering based on valid values. Options:
96
+
- "either": Include features that have at least 'min_valid_values' valid values in at least one condition.
97
+
- "both": Include only features that have at least 'min_valid_values' valid values in all conditions.
98
+
- "per_condition": Include only features that have at least 'min_valid_values_c1' valid values in condition 1 and 'min_valid_values_c2' valid values in condition 2.
99
+
min_valid_values_c1 (int): Minimum number of valid values required specifically in condition 1.
100
+
min_valid_values_c2 (int): Minimum number of valid values required specifically in condition 2.
93
101
min_num_ions (int): Minimum number of ions required per peptide. Defaults to 1.
94
102
minpep (int): Minimum number of peptides required per protein. Defaults to 1.
95
103
organism (str): Organism name for PTM mapping (e.g., 'human', 'mouse'). Required if perform_ptm_mapping is True.
# TODO: this backwards compatibility can be removed beginning of 2026
129
+
# to ensure backwards compatibility: in case the minrep paramters are set, we need to convert them to the min_valid_values and valid_values_filter_mode parameters
130
+
ifminrep_bothisnotNone:
131
+
min_valid_values=minrep_both
132
+
valid_values_filter_mode="both"
133
+
LOGGER.warning("you set the parameter 'minrep_both', which is deprecated. Please use 'min_valid_values' and 'valid_values_filter_mode' instead.")
134
+
ifminrep_eitherisnotNone:
135
+
min_valid_values=minrep_either
136
+
valid_values_filter_mode="either"
137
+
LOGGER.warning("you set the parameter 'minrep_either', which is deprecated. Please use 'min_valid_values' and 'valid_values_filter_mode' instead.")
138
+
ifminrep_c1isnotNoneandminrep_c2isnotNone:
139
+
min_valid_values_c1=minrep_c1
140
+
min_valid_values_c2=minrep_c2
141
+
valid_values_filter_mode="per_condition"
142
+
LOGGER.warning("you set the parameter 'minrep_c1' and 'minrep_c2', which is deprecated. Please use 'min_valid_values_c1' and 'min_valid_values_c2' instead.")
# Log samplemap status right before passing to pipeline
733
-
print(f"Samplemap right before pipeline run: {'Present with '+str(len(self.samplemap_table.value)) +' rows'ifself.samplemap_table.valueisnotNoneelse'None'}")
Copy file name to clipboardexpand all lines: example_nbs/differential_expression.ipynb
+2-2
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@
55
55
"source": [
56
56
"Now we can use the 'run_pipeline' command from AlphaQuant. This performs normalization between sample and then differential expression testing. The main output is a table of proteins with fold changes and an fdr value as a result of the differential expression test. Due to AlphaQuant's tree based approach, sensitivity is in general higher as compared to standard approaches like the t-test, i.e. there should be more proteins with significant fdr, especially for lower fold changes.\n",
57
57
"\n",
58
-
"Important: We analyze only proteins with highly complete data across both conditions by setting minrep_both = 7, requiring seven valid values out of 10 possible replicates in each condition. To include proteins that may be absent in one condition, use minrep_either = 7 instead, which requires seven valid values in at least one condition while allowing any number of values in the other."
58
+
"Important: We analyze only proteins with highly complete data across both conditions by setting min_valid_values = 7, requiring seven valid values out of 10 possible replicates in each condition. To include proteins that may be absent in one condition. Additionally, we set valid_values_filter_mode = \"both\", which means that seven valid values need to be in both conditions for a protein to be included. If you want to include proteins completely missing in one condition, set set valid_values_filter_mode = \"either\", which requires seven valid values in at least one condition while allowing any number of values in the other."
59
59
]
60
60
},
61
61
{
@@ -67,7 +67,7 @@
67
67
"import alphaquant.run_pipeline as aq_pipeline\n",
0 commit comments