diff options
| author | Alexander_Kabui | 2025-01-28 15:09:42 +0300 |
|---|---|---|
| committer | BonfaceKilz | 2025-02-06 12:43:15 +0300 |
| commit | 5c2e841dc5663c078c5fdba30d01101ebe890812 (patch) | |
| tree | 0de186e1af46e9deb160f754d242c0ea034008aa /gn3/computations | |
| parent | 096db61835f7d25f731735fc8256f703f40b4634 (diff) | |
| download | genenetwork3-5c2e841dc5663c078c5fdba30d01101ebe890812.tar.gz | |
refactor process qtl2 results function to include output reading.
Diffstat (limited to 'gn3/computations')
| -rw-r--r-- | gn3/computations/rqtl2.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gn3/computations/rqtl2.py b/gn3/computations/rqtl2.py index 703d5fd..24cbbd0 100644 --- a/gn3/computations/rqtl2.py +++ b/gn3/computations/rqtl2.py @@ -208,17 +208,16 @@ def process_scan_results(qtl_file_path: str, return results -def process_qtl2_results(results: Dict[str, str]) -> Dict[str, any]: +def process_qtl2_results(output_file: str) -> Dict[str, any]: """Function provides abstraction for processing all QTL2 mapping results. - Args: - results (Dict[str, str]): A dictionary containing file paths and - other related parameters. + Args: * File path to to the output generated Returns: Dict[str, any]: A dictionary containing both QTL and permutation results along with input data. """ + results = read_output_file(output_file) qtl_results = process_scan_results(results["scan_file"], results["gmap_file"]) permutation_results = process_permutation(results) @@ -227,5 +226,3 @@ def process_qtl2_results(results: Dict[str, str]) -> Dict[str, any]: "qtl_results": qtl_results, "permutation_results": permutation_results } - - |
