diff options
author | AlexanderKabui | 2022-11-13 23:54:56 +0300 |
---|---|---|
committer | AlexanderKabui | 2022-11-13 23:54:56 +0300 |
commit | 60c4387aba515d0c7c6ec933901c33ac51486725 (patch) | |
tree | 0ab2f8791eb548aa842c0c93d5d6fae5a420e103 /wqflask | |
parent | 3073a26a612af1d6cba93c92474e75ec83553697 (diff) | |
download | genenetwork2-60c4387aba515d0c7c6ec933901c33ac51486725.tar.gz |
add check when parsing floats
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/correlation/rust_correlation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py index f5ee9403..8decbd6c 100644 --- a/wqflask/wqflask/correlation/rust_correlation.py +++ b/wqflask/wqflask/correlation/rust_correlation.py @@ -70,11 +70,11 @@ def get_metadata(dataset, traits): "mean": mean, "description": description, "additive": additive, - "lrs_score": f"{lrs:3.1f}", + "lrs_score": f"{lrs:3.1f}" if lrs else "", "location": __location__(probe_chr, probe_mb), "chr": probe_chr, "mb": probe_mb, - "lrs_location": f"Chr{chr_score}: {mb:.6f}", + "lrs_location":f'Chr{chr_score}: {mb:{".6f" if mb else ""}}' "lrs_chr": chr_score, "lrs_mb": mb |