aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
authorzsloan2021-08-26 20:17:14 +0000
committerzsloan2022-03-22 19:08:01 +0000
commit40e85090b60ef002723b614fd712b6affbd68176 (patch)
tree9ac636b79491033c771cbe1f0d2bfee1e53be882 /gn3/computations
parent35f0784ee32ccc76416d184ac65e8cad6f7aa490 (diff)
downloadgenenetwork3-40e85090b60ef002723b614fd712b6affbd68176.tar.gz
Added genofile name to inputs for processing R/qtl pair-scan results, since it's needed to store the proximal/distal markers for each position
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/rqtl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gn3/computations/rqtl.py b/gn3/computations/rqtl.py
index 36c9fa2..b05a577 100644
--- a/gn3/computations/rqtl.py
+++ b/gn3/computations/rqtl.py
@@ -80,7 +80,7 @@ def process_rqtl_mapping(file_name: str) -> List:
return marker_obs
-def process_rqtl_pairscan(file_name: str) -> List:
+def process_rqtl_pairscan(file_name: str, geno_file: str) -> List:
"""Given an output file name, read in R/qtl pair-scan results and return
a list of both the JSON needed for the d3panels figure and a list of results
to be used when generating the results table (which will include marker names)
@@ -88,7 +88,7 @@ def process_rqtl_pairscan(file_name: str) -> List:
"""
figure_data = pairscan_for_figure(file_name)
- table_data = pairscan_for_table(file_name)
+ table_data = pairscan_for_table(file_name, geno_file)
return [figure_data, table_data]
@@ -127,7 +127,7 @@ def pairscan_for_figure(file_name: str) -> Dict:
return figure_data
-def pairscan_for_table(file_name: str) -> List:
+def pairscan_for_table(file_name: str, geno_file: str) -> List:
"""Given an output file name, read in R/qtl pair-scan results and return
a list of results to be used when generating the results table (which will include marker names)