aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: