Skip to content

Commit

Permalink
fix: using h4 instead of log2(h4/h3) (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Considine authored Aug 30, 2024
1 parent cf1ec24 commit 2612aa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gentropy/method/l2g/feature_factory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Collection of methods that extract features from the gentropy datasets to be fed in L2G."""

from __future__ import annotations

from functools import reduce
Expand Down Expand Up @@ -59,7 +60,7 @@ def _get_max_coloc_per_credible_set(
colocalisation_df = colocalisation.df.select(
f.col("leftStudyLocusId").alias("studyLocusId"),
"rightStudyLocusId",
f.coalesce("log2h4h3", "clpp").alias("score"),
f.coalesce("h4", "clpp").alias("score"),
ColocalisationFactory._add_colocalisation_metric(),
)

Expand Down

0 comments on commit 2612aa7

Please sign in to comment.