diff options
author | zsloan | 2021-08-26 20:17:14 +0000 |
---|---|---|
committer | zsloan | 2021-09-23 19:29:59 +0000 |
commit | 9aeafe51e60989fb018d147163c4fb861ceeb256 (patch) | |
tree | 644cb56de624586b080964b063dd99fb44b1dda0 /gn3 | |
parent | 1408b107beb4c799a1d7afaf571f53d0d56305bf (diff) | |
download | genenetwork3-9aeafe51e60989fb018d147163c4fb861ceeb256.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')
-rw-r--r-- | gn3/api/rqtl.py | 2 | ||||
-rw-r--r-- | gn3/computations/rqtl.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gn3/api/rqtl.py b/gn3/api/rqtl.py index b0405f4..2ff0f4e 100644 --- a/gn3/api/rqtl.py +++ b/gn3/api/rqtl.py @@ -49,7 +49,7 @@ run the rqtl_wrapper script and return the results as JSON os.system(rqtl_cmd.get('rqtl_cmd')) if "pairscan" in boolean_kwargs: - rqtl_output['results'] = process_rqtl_pairscan(rqtl_cmd.get('output_file')) + rqtl_output['results'] = process_rqtl_pairscan(rqtl_cmd.get('output_file'), genofile) else: rqtl_output['results'] = process_rqtl_mapping(rqtl_cmd.get('output_file')) diff --git a/gn3/computations/rqtl.py b/gn3/computations/rqtl.py index 3b50c85..ea88c29 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) |