Skip to content

Commit 0993e25

Browse files
committed
feat: hardened autosome list
1 parent b1e3382 commit 0993e25

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

workflows/generate_divref.smk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ TMP_DIR: Path = Path(config["tmp_dir"])
5353

5454
CHROMS: list[str] = config["chromosomes"]
5555
# Haplotypes are computed for autosomes only; chrX/chrY contribute single gnomAD variants only.
56-
HAPLOTYPE_CHROMS: list[str] = [c for c in CHROMS if c not in ("chrX", "chrY")]
56+
_AUTOSOMES: frozenset[str] = frozenset(f"chr{n}" for n in range(1, 23))
57+
HAPLOTYPE_CHROMS: list[str] = [c for c in CHROMS if c in _AUTOSOMES]
5758

5859
REFERENCE_GENOME: str = config["reference_genome_base_name"]
5960
REFERENCE_GENOME_URI: str = config["reference_genome_uri"]

0 commit comments

Comments
 (0)