diff options
author | zsloan | 2017-12-04 17:50:14 +0000 |
---|---|---|
committer | zsloan | 2017-12-04 17:50:14 +0000 |
commit | 5813a1a3006dc67278eb094513c455b9cb2fa91f (patch) | |
tree | 34d8d12f4363326bb1505eded6126b3e7a4c5c56 /wqflask/maintenance/gen_select_dataset.py | |
parent | 09fb1581bd403f88df403939a931c8c3bbfa1ad0 (diff) | |
download | genenetwork2-5813a1a3006dc67278eb094513c455b9cb2fa91f.tar.gz |
Fixed drop-down scripts to more appropriately deal with BXD300 groups (though there's still a minor issue with a few datasets)
Added some header data to mapping output file
Fixed links in Network Group nodes/edges
Diffstat (limited to 'wqflask/maintenance/gen_select_dataset.py')
-rw-r--r-- | wqflask/maintenance/gen_select_dataset.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/maintenance/gen_select_dataset.py b/wqflask/maintenance/gen_select_dataset.py index 6553f090..1123f997 100644 --- a/wqflask/maintenance/gen_select_dataset.py +++ b/wqflask/maintenance/gen_select_dataset.py @@ -96,13 +96,14 @@ def get_groups(species): Cursor.execute("""select InbredSet.Name, InbredSet.FullName from InbredSet, Species, ProbeFreeze, GenoFreeze, PublishFreeze where Species.Name = '%s' - and InbredSet.SpeciesId = Species.Id and InbredSet.Name != 'BXD300' and + and InbredSet.SpeciesId = Species.Id and (PublishFreeze.InbredSetId = InbredSet.Id or GenoFreeze.InbredSetId = InbredSet.Id or ProbeFreeze.InbredSetId = InbredSet.Id) group by InbredSet.Name order by InbredSet.Name""" % species_name) - groups[species_name] = list(Cursor.fetchall()) + results = Cursor.fetchall() + groups[species_name] = list(results) return groups |