diff options
| author | Alexander Kabui | 2024-08-30 16:47:55 +0300 |
|---|---|---|
| committer | GitHub | 2024-08-30 16:47:55 +0300 |
| commit | ed20621c23a9a41152f3d6a48334f2a31c018033 (patch) | |
| tree | 5e2182b99f5f05e2f667dfce1b762921c4ec62dc /gn2/wqflask/correlation | |
| parent | 9a345d8abf2f0045b2c47bfcf1ae5860273452be (diff) | |
| parent | 6db49002d4d2e69fcf4fdd6be6aceeea7b95664f (diff) | |
| download | genenetwork2-ed20621c23a9a41152f3d6a48334f2a31c018033.tar.gz | |
Merge pull request #861 from genenetwork/feature/gnqa-search-2
Feature/gnqa search 2
Diffstat (limited to 'gn2/wqflask/correlation')
| -rw-r--r-- | gn2/wqflask/correlation/show_corr_results.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gn2/wqflask/correlation/show_corr_results.py b/gn2/wqflask/correlation/show_corr_results.py index c8625222..1abf1a28 100644 --- a/gn2/wqflask/correlation/show_corr_results.py +++ b/gn2/wqflask/correlation/show_corr_results.py @@ -91,6 +91,8 @@ def apply_filters(trait, target_trait, target_dataset, **filters): min_location_mb, max_location_mb): if target_dataset["type"] in ["ProbeSet", "Geno"] and location_type == "gene": + if not target_trait['mb'] or not target_trait['chr']: + return True return ( ((location_chr!=None) and (target_trait["chr"]!=location_chr)) or @@ -154,7 +156,7 @@ def get_user_filters(start_vars): if all(keys in start_vars for keys in ["loc_chr", "min_loc_mb", - "max_location_mb"]): + "max_loc_mb"]): location_chr = get_string(start_vars, "loc_chr") min_location_mb = get_int(start_vars, "min_loc_mb") |
