diff --git a/gnomad/resources/grch37/gnomad.py b/gnomad/resources/grch37/gnomad.py index 9c9ab1a9..a46a0892 100644 --- a/gnomad/resources/grch37/gnomad.py +++ b/gnomad/resources/grch37/gnomad.py @@ -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"], @@ -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,