Skip to content

Commit

Permalink
Merge pull request #658 from broadinstitute/mw/mid_in_faf
Browse files Browse the repository at this point in the history
Add mid to FAF and grpmax calcs
  • Loading branch information
mike-w-wilson authored Jan 24, 2024
2 parents 59bcfae + 2953763 commit 89548e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion gnomad/resources/grch38/gnomad.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@
"""

POPS_STORED_AS_SUBPOPS = TGP_POPS + HGDP_POPS
POPS_TO_REMOVE_FOR_POPMAX = {"asj", "fin", "oth", "ami", "mid", "remaining"}
POPS_TO_REMOVE_FOR_POPMAX = {
"v3": {"asj", "fin", "mid", "oth", "ami", "remaining"},
"v4": {"asj", "fin", "oth", "ami", "remaining"},
}
"""
Populations that are removed before popmax calculations.
"""
Expand Down
5 changes: 4 additions & 1 deletion gnomad/utils/vcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
Quality histograms used in VCF export.
"""

FAF_POPS = ["afr", "amr", "eas", "nfe", "sas"]
FAF_POPS = {
"v3": ["afr", "amr", "eas", "nfe", "sas"],
"v4": ["afr", "amr", "eas", "mid", "nfe", "sas"],
}
"""
Global populations that are included in filtering allele frequency (faf) calculations. Used in VCF export.
"""
Expand Down

0 comments on commit 89548e7

Please sign in to comment.