Skip to content

Commit

Permalink
fix: adding fillter by studyId
Browse files Browse the repository at this point in the history
  • Loading branch information
addramir committed Apr 2, 2024
1 parent 67f7f36 commit 1dc6701
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gentropy/susie_finemapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def susie_finemapper_chr_pos(

GWAS_df = GWAS._df
GWAS_df = GWAS_df.filter(
(f.col("chromosome") == chromosome)
(f.col("studyId") == _studyId)
& (f.col("chromosome") == chromosome)
& (f.col("position") >= position - (window / 2))
& (f.col("position") <= position + (window / 2))
).withColumn("z", f.col("beta") / f.col("standardError"))
Expand Down

0 comments on commit 1dc6701

Please sign in to comment.