From 421e744fb07f61542b74a74d5a7806d2b3c3dc90 Mon Sep 17 00:00:00 2001 From: Kyle Ferriter Date: Thu, 21 Mar 2024 18:25:39 -0400 Subject: [PATCH] Update ancestry population names in gks method to always use v4 --- gnomad/resources/grch38/gnomad.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gnomad/resources/grch38/gnomad.py b/gnomad/resources/grch38/gnomad.py index e417ca750..ad7c958cb 100644 --- a/gnomad/resources/grch38/gnomad.py +++ b/gnomad/resources/grch38/gnomad.py @@ -572,11 +572,7 @@ def gnomad_gks( ht = ht.annotate(fraction_cov_over_20=coverage_ht[ht.locus].over_20) # Retrieve ancestry groups from the imported POPS dictionary. - pops_list = ( - list(POPS["v4" if data_type == "exomes" else "v3"]) - if by_ancestry_group - else None - ) + pops_list = list(POPS["v4"]) if by_ancestry_group else None # Throw warnings if contradictory arguments are passed. if by_ancestry_group and vrs_only: