diff options
author | zsloan | 2020-12-15 14:00:06 -0600 |
---|---|---|
committer | zsloan | 2020-12-15 14:00:06 -0600 |
commit | 66f7e4977f751e3b533ee8fcdbba3547b9e0eace (patch) | |
tree | 44b7e440dbe9b6999586fd74cbb05280676290e0 | |
parent | 18fd821aff77e4352f15f1f74acab2885ceeef67 (diff) | |
download | genenetwork2-66f7e4977f751e3b533ee8fcdbba3547b9e0eace.tar.gz |
Fixed mistake with the way lod score was being set for correlation results
-rw-r--r-- | wqflask/wqflask/correlation/show_corr_results.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index 8536ce51..7d3b9b9f 100644 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -499,9 +499,9 @@ def generate_corr_json(corr_results, this_trait, dataset, target_dataset, for_ap if bool(trait.mean): results_dict['mean'] = f"{float(trait.mean):.3f}" try: - trait_dict['lod_score'] = f"{float(this_trait.LRS_score_repr) / 4.61:.1f}" + results_dict['lod_score'] = f"{float(trait.LRS_score_repr) / 4.61:.1f}" except: - trait_dict['lod_score'] = "N/A" + results_dict['lod_score'] = "N/A" results_dict['lrs_location'] = trait.LRS_location_repr if bool(trait.additive): results_dict['additive'] = f"{float(trait.additive):.3f}" @@ -546,9 +546,9 @@ def generate_corr_json(corr_results, this_trait, dataset, target_dataset, for_ap results_dict['pubmed_link'] = trait.pubmed_link results_dict['pubmed_text'] = trait.pubmed_text try: - trait_dict['lod_score'] = f"{float(this_trait.LRS_score_repr) / 4.61:.1f}" + results_dict['lod_score'] = f"{float(trait.LRS_score_repr) / 4.61:.1f}" except: - trait_dict['lod_score'] = "N/A" + results_dict['lod_score'] = "N/A" results_dict['lrs_location'] = trait.LRS_location_repr if bool(trait.additive): results_dict['additive'] = f"{float(trait.additive):.3f}" |