Skip to content

Commit

Permalink
fixup: hey look another linter
Browse files Browse the repository at this point in the history
  • Loading branch information
phildarnowsky-broad committed Jun 20, 2024
1 parent 4fe0213 commit bfceb25
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions data-pipeline/src/data_pipeline/datasets/gnomad_sv_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def import_svs_from_vcfs(vcf_path):
(
pop_id,
hl.if_else(
((ds.chrom == "X") | (ds.chrom == "Y")) & (ds.par == False),
((ds.chrom == "X") | (ds.chrom == "Y")) & (ds.par == False), # noqa: E712
ds.info[f"N_HEMIALT_{pop_id}_XY"],
0,
),
Expand All @@ -190,7 +190,7 @@ def import_svs_from_vcfs(vcf_path):
(
f"{pop_id}_XY",
hl.if_else(
((ds.chrom == "X") | (ds.chrom == "Y")) & (ds.par == False),
((ds.chrom == "X") | (ds.chrom == "Y")) & (ds.par == False), # noqa: E712
ds.info[f"N_HEMIALT_{pop_id}_XY"],
0,
),
Expand All @@ -201,7 +201,9 @@ def import_svs_from_vcfs(vcf_path):
+ [
(
"XY",
hl.if_else(((ds.chrom == "X") | (ds.chrom == "Y")) & (ds.par == False), ds.info.N_HEMIALT_XY, 0),
hl.if_else(
((ds.chrom == "X") | (ds.chrom == "Y")) & (ds.par == False), ds.info.N_HEMIALT_XY, 0
), # noqa: E712
)
]
)
Expand All @@ -211,7 +213,9 @@ def import_svs_from_vcfs(vcf_path):
freq=ds.freq.annotate(
hemizygote_count=hl.or_missing(
ds.type != "MCNV",
hl.if_else(((ds.chrom == "X") | (ds.chrom == "Y")) & (ds.par == False), ds.info.N_HEMIALT_XY, 0),
hl.if_else(
((ds.chrom == "X") | (ds.chrom == "Y")) & (ds.par == False), ds.info.N_HEMIALT_XY, 0
), # noqa: E712
),
populations=hl.if_else(
ds.type != "MCNV",
Expand Down

0 comments on commit bfceb25

Please sign in to comment.