I guess it could happen for other functions as well in test_snp_frq.py, I have not checked. There probably should be a test before the error is raised for the emptiness of a DataFrame (as I assume that it is the problem here):
FAILED tests/anoph/test_snp_frq.py::test_allele_frequencies_with_str_cohorts_and_sample_query[af1_sim] - ValueError: No amino acid change SNPs found for the given transcript and site mask.
I guess it could happen for other functions as well in
test_snp_frq.py, I have not checked. There probably should be a test before the error is raised for the emptiness of a DataFrame (as I assume that it is the problem here):