aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-02-01 11:46:55 -0600
committerzsloan2021-02-01 11:46:55 -0600
commit4bd2a3ac8ee7efba0bfb134a3dc9e12b695e15d6 (patch)
tree7da4b3772aef56f5079bc82e7b970988896d8bb0 /wqflask
parent0e48ed730817937a7dec6967eb6effdfb1382cf1 (diff)
downloadgenenetwork2-4bd2a3ac8ee7efba0bfb134a3dc9e12b695e15d6.tar.gz
Randomized phenotype input file for GEMMA instead of just using the group and trait name
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/gemma_mapping.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/marker_regression/gemma_mapping.py b/wqflask/wqflask/marker_regression/gemma_mapping.py
index ab3a7278..7777735d 100644
--- a/wqflask/wqflask/marker_regression/gemma_mapping.py
+++ b/wqflask/wqflask/marker_regression/gemma_mapping.py
@@ -21,7 +21,7 @@ def run_gemma(this_trait, this_dataset, samples, vals, covariates, use_loco, maf
genofile_name = this_dataset.group.name
if first_run:
- trait_filename = str(this_trait.name) + "_" + str(this_dataset.name) + "_pheno"
+ trait_filename = str(this_dataset.group.name) + "_" + str(this_trait.name) + "_" + ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(6))
gen_pheno_txt_file(this_dataset, genofile_name, vals, trait_filename)
if not os.path.isfile("{}{}_output.assoc.txt".format(webqtlConfig.GENERATED_IMAGE_DIR, genofile_name)):