Skip to content

Commit

Permalink
fix: fix in test
Browse files Browse the repository at this point in the history
  • Loading branch information
addramir committed Apr 5, 2024
1 parent 3f8e20a commit d462368
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gentropy/susie_finemapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def susie_finemapper_one_studylocus_row(
GWAS.df.withColumn("z", f.col("beta") / f.col("standardError"))
.withColumn("chromosome", f.split(f.col("variantId"), "_")[0])
.withColumn("position", f.split(f.col("variantId"), "_")[1])
.filter(f.col("studyId") == studyId)
.filter(f.col("z").isNotNull())
)

Expand Down
4 changes: 2 additions & 2 deletions tests/gentropy/method/test_susie_inf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def test_SUSIE_inf_convert_to_study_locus(
L1 = SusieFineMapperStep.susie_inf_to_studylocus(
susie_output=susie_output,
session=session,
_studyId="sample_id",
_region="sample_region",
studyId="sample_id",
region="sample_region",
variant_index=gwas_df,
cs_lbf_thr=2,
)
Expand Down

0 comments on commit d462368

Please sign in to comment.