From aabc6abba32a635db16dca8dc4df5c3085f18806 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 25 Sep 2016 09:17:47 +0000 Subject: Settings: enforce MAPPING_PATH only when running plink_gemma --- wqflask/wqflask/show_trait/show_trait.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py index 912beabe..2fd525a5 100644 --- a/wqflask/wqflask/show_trait/show_trait.py +++ b/wqflask/wqflask/show_trait/show_trait.py @@ -24,7 +24,6 @@ from basicStatistics import BasicStatisticsFunctions from pprint import pformat as pf from utility.tools import flat_files -MAPPING_PATH = flat_files("mapping") from utility.logger import getLogger logger = getLogger(__name__ ) @@ -163,6 +162,7 @@ class ShowTrait(object): def get_mapping_methods(self): '''Only display mapping methods when the dataset group's genotype file exists''' def check_plink_gemma(): + MAPPING_PATH = flat_files("mapping") if (os.path.isfile(MAPPING_PATH+"/"+self.dataset.group.name+".bed") and os.path.isfile(MAPPING_PATH+"/"+self.dataset.group.name+".map")): return True -- cgit v1.2.3