From 3a0a7c1838beb528915e699292c6d3c01ef4cdc4 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 1 May 2023 19:32:16 +0000 Subject: Fix retrieve_sample_list function to correctly get genofile_path --- gn3/db/datasets.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gn3/db') 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) -- cgit v1.2.3