aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2019-12-31 12:36:32 -0600
committerzsloan2019-12-31 12:36:32 -0600
commit359fd846f8962e4ba7b5ece0f89513f55a4b841a (patch)
tree532c188ab40702c9e758c342ae339f7e0dae153f
parent983ccf7c78accc262b731d69fad0c5a850a94e7e (diff)
downloadgenenetwork2-359fd846f8962e4ba7b5ece0f89513f55a4b841a.tar.gz
Fixed bug that occurred if you input 0 for bootstrap when using reaper for mapping
-rw-r--r--wqflask/wqflask/marker_regression/qtlreaper_mapping.py3
-rw-r--r--wqflask/wqflask/marker_regression/run_mapping.py1
2 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/marker_regression/qtlreaper_mapping.py b/wqflask/wqflask/marker_regression/qtlreaper_mapping.py
index fe216166..41764c1c 100644
--- a/wqflask/wqflask/marker_regression/qtlreaper_mapping.py
+++ b/wqflask/wqflask/marker_regression/qtlreaper_mapping.py
@@ -121,7 +121,8 @@ def parse_reaper_output(gwa_filename, permu_filename, bootstrap_filename):
bootstrap_vals.append(int(line))
marker_obs = [marker_obs[i] for i in sorted_indices]
- bootstrap_vals = [bootstrap_vals[i] for i in sorted_indices]
+ if len(bootstrap_vals) > 0:
+ bootstrap_vals = [bootstrap_vals[i] for i in sorted_indices]
return marker_obs, permu_vals, bootstrap_vals
diff --git a/wqflask/wqflask/marker_regression/run_mapping.py b/wqflask/wqflask/marker_regression/run_mapping.py
index 9e06aa00..a65dafd5 100644
--- a/wqflask/wqflask/marker_regression/run_mapping.py
+++ b/wqflask/wqflask/marker_regression/run_mapping.py
@@ -62,7 +62,6 @@ class RunMapping(object):
self.json_data['lodnames'] = ['lod.hk']
all_samples_ordered = self.dataset.group.all_samples_ordered()
- primary_sample_names = list(all_samples_ordered)
self.vals = []
if 'samples' in start_vars: