We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e48d75b + fb79a35 commit 1da4a14Copy full SHA for 1da4a14
malariagen_data/anopheles.py
@@ -970,6 +970,12 @@ def plot_ihs_gwss_track(
970
inline_array=inline_array,
971
)
972
973
+ if len(x) == 0:
974
+ raise ValueError(
975
+ "No iHS values remain after filtering. "
976
+ "Try relaxing filter_min_maf or min_ehh parameters."
977
+ )
978
+
979
# determine X axis range
980
x_min = x[0]
981
x_max = x[-1]
@@ -1494,6 +1500,12 @@ def plot_xpehh_gwss_track(
1494
1500
1495
1501
1496
1502
1503
1504
1505
+ "No XP-EHH values remain after filtering. "
1506
1507
1508
1497
1509
1498
1510
1499
1511
0 commit comments