Skip to content

Commit

Permalink
fix: mhc flag incorrect (opentargets#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
d0choa authored Oct 9, 2024
1 parent b7dce8f commit 9f0111c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gentropy/dataset/study_locus.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ def validate_lead_pvalue(self: StudyLocus, pvalue_cutoff: float) -> StudyLocus:
df = self.df.withColumn(
qc_colname,
create_empty_column_if_not_exists(
qc_colname, get_struct_field_schema(StudyLocus.get_schema(), qc_colname)
qc_colname,
get_struct_field_schema(StudyLocus.get_schema(), qc_colname),
),
)
return StudyLocus(
Expand Down Expand Up @@ -940,7 +941,7 @@ def qc_MHC_region(self: StudyLocus) -> StudyLocus:
"qualityControls",
self.update_quality_flag(
f.col("qualityControls"),
~(
(
(f.col("chromosome") == region.chromosome)
& (
(f.col("position") <= region.end)
Expand Down

0 comments on commit 9f0111c

Please sign in to comment.