aboutsummaryrefslogtreecommitdiff
path: root/scripts/sampledata.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/sampledata.py')
-rw-r--r--scripts/sampledata.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/sampledata.py b/scripts/sampledata.py
index fb3668d6..2aef6968 100644
--- a/scripts/sampledata.py
+++ b/scripts/sampledata.py
@@ -59,3 +59,14 @@ def fetch_all_traits(species, group, type_, dataset):
"search_terms_or": "*",
}).trait_list:
yield result.get('name')
+
+
+# Dump all traits from a given dataset
+for trait in fetch_all_traits(
+ species="mouse",
+ group="BXD",
+ type_="Phenotypes",
+ dataset="BXDPublish",
+):
+ print(json.dumps(dump_sample_data("BXDPublish", trait)))
+ break # Just do this once!