Skip to content

Commit

Permalink
Fix circular dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mrg committed Apr 18, 2020
1 parent 6820fe0 commit 1c64817
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ieugwaspy/variants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""SNP/variant helper functions
"""
import ieugwaspy.query as query


def variants_to_rsid(variants):
Expand Down Expand Up @@ -30,6 +29,8 @@ def variants_chrpos(chrpos, radius=0):
data: variant rsid (string)
"""
import ieugwaspy.query as query

variantdata = query.api_query("variants/chrpos/{}".format(chrpos))
result = variantdata[0][0]["_id"]
return result

0 comments on commit 1c64817

Please sign in to comment.