We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 966cddb + 1da4a14 commit 361ea15Copy full SHA for 361ea15
2 files changed
malariagen_data/anoph/xpehh.py
@@ -296,6 +296,12 @@ def plot_xpehh_gwss_track(
296
inline_array=inline_array,
297
)
298
299
+ if len(x) == 0:
300
+ raise ValueError(
301
+ "No XP-EHH values remain after filtering. "
302
+ "Try relaxing filter_min_maf or min_ehh parameters."
303
+ )
304
+
305
# determine X axis range
306
x_min = x[0]
307
x_max = x[-1]
malariagen_data/anopheles.py
@@ -950,6 +950,12 @@ def plot_ihs_gwss_track(
950
951
952
953
954
955
+ "No iHS values remain after filtering. "
956
957
958
959
960
961
0 commit comments