aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/datasets.py
diff options
context:
space:
mode:
authorzsloan2023-05-01 19:32:16 +0000
committerzsloan2023-05-22 17:23:08 +0000
commit3a0a7c1838beb528915e699292c6d3c01ef4cdc4 (patch)
treeb701bca0e5c82071acb427e59005bf72144cec00 /gn3/db/datasets.py
parent428c953cc50057848368482ee646e29fd89e4210 (diff)
downloadgenenetwork3-3a0a7c1838beb528915e699292c6d3c01ef4cdc4.tar.gz
Fix retrieve_sample_list function to correctly get genofile_path
Diffstat (limited to 'gn3/db/datasets.py')
-rw-r--r--gn3/db/datasets.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py
index 9186875..48cd195 100644
--- a/gn3/db/datasets.py
+++ b/gn3/db/datasets.py
@@ -1,11 +1,10 @@
"""
This module contains functions relating to specific trait dataset manipulation
"""
+import os
from typing import Any
-
-def retrieve_sample_list(
- group: str, connection: Any):
+def retrieve_sample_list(group: str):
"""
Get the sample list for a group (a category that datasets belong to)
@@ -13,7 +12,7 @@ def retrieve_sample_list(
the "official" sample list is stored
"""
- genofile_path = current_app.config.get("RQTL_WRAPPER_CMD") + "/" + group + ".geno"
+ genofile_path = os.environ.get("GENENETWORK_FILES") + "/genotype/" + group + ".geno"
if os.path.isfile(genofile_path):
genofile = open(genofile_path)