Skip to content

Commit

Permalink
Merge pull request #749 from broadinstitute/qh/coverage_global
Browse files Browse the repository at this point in the history
Add coverage release global in GRCh37
  • Loading branch information
KoalaQin authored Jan 2, 2025
2 parents e7fc859 + 31b2c67 commit a0f0f33
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions gnomad/resources/grch37/gnomad.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
EXOME_RELEASES = ["2.1", "2.1.1"]
GENOME_RELEASES = ["2.1", "2.1.1"]

EXOME_COVERAGE_RELEASES = ["2.1"]
GENOME_COVERAGE_RELEASES = ["2.1"]

CURRENT_EXOME_COVERAGE_RELEASE = "2.1"
CURRENT_GENOME_COVERAGE_RELEASE = "2.1"

SUBPOPS = {
"NFE": ["BGR", "EST", "NWE", "SEU", "SWE", "ONF"],
"EAS": ["KOR", "JPN", "OEA"],
Expand Down Expand Up @@ -174,11 +180,11 @@ def coverage(data_type: str) -> VersionedTableResource:
raise DataException(f"{data_type} not in {DATA_TYPES}")

if data_type == "exomes":
current_release = "2.1"
releases = [r for r in EXOME_RELEASES if r != "2.1.1"]
current_release = CURRENT_EXOME_COVERAGE_RELEASE
releases = EXOME_COVERAGE_RELEASES
else:
current_release = "2.1"
releases = [r for r in GENOME_RELEASES if r != "2.1.1"]
current_release = CURRENT_GENOME_COVERAGE_RELEASE
releases = GENOME_COVERAGE_RELEASES

return VersionedTableResource(
current_release,
Expand Down

0 comments on commit a0f0f33

Please sign in to comment.