Skip to content

Commit 21988d4

Browse files
authored
Updated the error message (#668)
1 parent e30e8c8 commit 21988d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

malariagen_data/anopheles.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,11 @@ def _gene_cnv_frequencies(
11831183

11841184
freq_cols[f"frq_{coh}"] = np.concatenate([amp_freq_coh, del_freq_coh])
11851185

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+
11861191
debug("build a dataframe with the frequency columns")
11871192
df_freqs = pd.DataFrame(freq_cols)
11881193

0 commit comments

Comments
 (0)