aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-10-11 23:27:15 +0000
committerzsloan2022-10-12 18:15:58 +0000
commitf6c4b1350de14a778750b82fb423d3437d14a7d8 (patch)
tree9d6823c4087c2ee4acb25cd9de9e6632edb48602
parent2975110c785646c771f648523b918f22f02b44d3 (diff)
downloadgenenetwork2-f6c4b1350de14a778750b82fb423d3437d14a7d8.tar.gz
Include chr/mb in trait metadata
-rw-r--r--wqflask/wqflask/correlation/rust_correlation.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py
index 3330cce9..b2a0e3a0 100644
--- a/wqflask/wqflask/correlation/rust_correlation.py
+++ b/wqflask/wqflask/correlation/rust_correlation.py
@@ -72,7 +72,11 @@ def get_metadata(dataset, traits):
"additive": additive,
"lrs_score": f"{lrs:3.1f}",
"location": __location__(probe_chr, probe_mb),
- "lrs_location": f"Chr{chr_score}: {mb:.6f}"
+ "chr": probe_chr,
+ "mb": probe_mb,
+ "lrs_location": f"Chr{chr_score}: {mb:.6f}",
+ "lrs_chr": chr_score,
+ "lrs_mb": mb
} for trait_name, probe_chr, probe_mb, symbol, mean, description,
additive, lrs, chr_score, mb