aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/partial_correlations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/db/partial_correlations.py b/gn3/db/partial_correlations.py
index 9a4d814..8c4ec65 100644
--- a/gn3/db/partial_correlations.py
+++ b/gn3/db/partial_correlations.py
@@ -733,8 +733,8 @@ def set_homologene_id(conn, traits):
"SELECT InbredSet.Name AS `group`, Homologene.GeneId AS geneid, "
"HomologeneId "
"FROM Homologene, Species, InbredSet "
- "WHERE Homologene.GeneId = ({geneids}) "
- "AND InbredSet.Name = ({groups}) "
+ "WHERE Homologene.GeneId IN ({geneids}) "
+ "AND InbredSet.Name IN ({groups}) "
"AND InbredSet.SpeciesId = Species.Id "
"AND Species.TaxonomyId = Homologene.TaxonomyId").format(
geneids=", ".join(["%s"] * len(geneids)),