diff options
author | Pjotr Prins | 2016-09-25 09:17:47 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-09-25 09:17:47 +0000 |
commit | aabc6abba32a635db16dca8dc4df5c3085f18806 (patch) | |
tree | 0c53b3f678606cfc28eeffdf08aacc0fb5400776 | |
parent | 073cee5125b1e65e0aaef365539633552b0f527c (diff) | |
download | genenetwork2-aabc6abba32a635db16dca8dc4df5c3085f18806.tar.gz |
Settings: enforce MAPPING_PATH only when running plink_gemma
-rw-r--r-- | wqflask/wqflask/show_trait/show_trait.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |