Skip to content

Commit

Permalink
Update PGxScreening.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rhdolin committed Aug 23, 2024
1 parent 5afa583 commit 9ba74c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion genomics-apps/PGxScreening.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import csv
import random
from st_aggrid import GridOptionsBuilder, AgGrid, JsCode
from pathlib import Path

st.set_page_config(
page_title="PGx Screening",
Expand Down Expand Up @@ -32,7 +33,7 @@ def findSubjectTxImplications(subject, haplotypes):


def getMedicationList(subject):
with open('genomics-apps/data/product.csv') as productFile:
with open(Path(__file__).parent/'data/product.csv') as productFile:
products = csv.reader(productFile, delimiter=',', quotechar='"')
productList = []
for row in products:
Expand Down

0 comments on commit 9ba74c5

Please sign in to comment.