We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e30e8c8 commit 21988d4Copy full SHA for 21988d4
1 file changed
malariagen_data/anopheles.py
@@ -1183,6 +1183,11 @@ def _gene_cnv_frequencies(
1183
1184
freq_cols[f"frq_{coh}"] = np.concatenate([amp_freq_coh, del_freq_coh])
1185
1186
+ if len(coh_dict) == 0:
1187
+ raise ValueError(
1188
+ "No cohorts available for the given sample selection parameters and minimum cohort size."
1189
+ )
1190
+
1191
debug("build a dataframe with the frequency columns")
1192
df_freqs = pd.DataFrame(freq_cols)
1193
0 commit comments