From 359fd846f8962e4ba7b5ece0f89513f55a4b841a Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 31 Dec 2019 12:36:32 -0600 Subject: Fixed bug that occurred if you input 0 for bootstrap when using reaper for mapping --- wqflask/wqflask/marker_regression/qtlreaper_mapping.py | 3 ++- wqflask/wqflask/marker_regression/run_mapping.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'wqflask') 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: -- cgit v1.2.3