Skip to content

Commit

Permalink
fix: susie credible sets with unknown confidence
Browse files Browse the repository at this point in the history
  • Loading branch information
d0choa committed Oct 18, 2024
1 parent 333facb commit fa824d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gentropy/dataset/study_locus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ def assign_confidence(self: StudyLocus) -> StudyLocus:
df = self.df.withColumn(
"confidence",
f.when(
(f.col("finemappingMethod") == "SuSiE-inf")
(f.col("finemappingMethod").isin(["SuSiE-inf", "SuSiE"]))
& (
~f.array_contains(
f.col("qualityControls"),
Expand All @@ -1185,7 +1185,7 @@ def assign_confidence(self: StudyLocus) -> StudyLocus:
CredibleSetConfidenceClasses.FINEMAPPED_IN_SAMPLE_LD.value,
)
.when(
(f.col("finemappingMethod") == "SuSiE-inf")
(f.col("finemappingMethod").isin(["SuSiE-inf", "SuSiE"]))
& (
f.array_contains(
f.col("qualityControls"),
Expand Down

0 comments on commit fa824d7

Please sign in to comment.