From ef1266e1375a12bb80ccea0a91a4a6113faff30c Mon Sep 17 00:00:00 2001 From: Mihai Todor Date: Fri, 23 Aug 2024 20:48:53 +0100 Subject: [PATCH] Fix genomics-apps/PGxScreening.py --- genomics-apps/PGxScreening.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/genomics-apps/PGxScreening.py b/genomics-apps/PGxScreening.py index 447217186..8cf38066c 100644 --- a/genomics-apps/PGxScreening.py +++ b/genomics-apps/PGxScreening.py @@ -1,10 +1,10 @@ -import streamlit as st -import pandas as pd -import requests import csv import random -from st_aggrid import GridOptionsBuilder, AgGrid, JsCode -from pathlib import Path + +import pandas as pd +import requests +import streamlit as st +from st_aggrid import AgGrid, GridOptionsBuilder, JsCode st.set_page_config( page_title="PGx Screening", @@ -33,7 +33,7 @@ def findSubjectTxImplications(subject, haplotypes): def getMedicationList(subject): - with open(Path(__file__).parent/'data/product.csv') as productFile: + with open('genomics-apps/data/product.csv') as productFile: products = csv.reader(productFile, delimiter=',', quotechar='"') productList = [] for row in products: