diff options
author | zsloan | 2021-11-12 10:32:51 -0600 |
---|---|---|
committer | GitHub | 2021-11-12 10:32:51 -0600 |
commit | 92c992f6a311fa4d01e479de1bb8da38a3b798d2 (patch) | |
tree | 208d44052251096d4cce5c9dc8876066285dc403 /wqflask | |
parent | fd4abaaeb18c31b1d0d8474fe2229d5a31bfc20d (diff) | |
parent | e2647916b051f5d46ccb24e08a6c97cbb8f668f2 (diff) | |
download | genenetwork2-92c992f6a311fa4d01e479de1bb8da38a3b798d2.tar.gz |
Merge pull request #627 from zsloan/bug/fix_gene_symbol_mapping_error
Fix mapping export error when trait symbols is None
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/marker_regression/run_mapping.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/marker_regression/run_mapping.py b/wqflask/wqflask/marker_regression/run_mapping.py index 769b9240..9d70bb15 100644 --- a/wqflask/wqflask/marker_regression/run_mapping.py +++ b/wqflask/wqflask/marker_regression/run_mapping.py @@ -556,7 +556,8 @@ def export_mapping_results(dataset, trait, markers, results_path, mapping_method transform_text = "" output_file.write(transform_text + "\n") if dataset.type == "ProbeSet": - output_file.write("Gene Symbol: " + trait.symbol + "\n") + if trait.symbol: + output_file.write("Gene Symbol: " + trait.symbol + "\n") output_file.write("Location: " + str(trait.chr) + \ " @ " + str(trait.mb) + " Mb\n") if len(covariates) > 0: |