diff options
author | Munyoki Kilyungi | 2023-01-17 11:49:48 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-01-20 15:02:46 +0300 |
commit | 5cc778e3db7035b49a8c5f37b98dcd3a07fafa26 (patch) | |
tree | e48bd7514157cdcc628be3fef647eddb0aa1847c /scripts/sampledata.py | |
parent | 234f110e1e492a2701a6cf8cd2b45aa2341c8041 (diff) | |
download | genenetwork2-5cc778e3db7035b49a8c5f37b98dcd3a07fafa26.tar.gz |
Return a trait's display name if the name is non-existent
* scripts/sampledata.py (fetch_all_traits): Should the name of a trait
not exists, e.g. in probeset data, return it's display name.
Diffstat (limited to 'scripts/sampledata.py')
-rw-r--r-- | scripts/sampledata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sampledata.py b/scripts/sampledata.py index 4777b6f9..8b060e82 100644 --- a/scripts/sampledata.py +++ b/scripts/sampledata.py @@ -60,7 +60,7 @@ def fetch_all_traits(species, group, type_, dataset): "dataset": dataset, "search_terms_or": "*", }).trait_list: - yield result.get('name') + yield result.get('name') or result.get('display_name') if __name__ == "__main__": |