Changeset 20785
- Timestamp:
- 03/03/10 16:14:43 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bio/webapp/src/org/intermine/bio/web/logic/OrthologueConverter.java
r20775 r20785 78 78 String organismName) { 79 79 StringBuffer orthologues = new StringBuffer(); 80 String geneIdentifier = "Gene.homologues.homologue.primaryIdentifier"; 80 81 PathQuery pathQuery = constructPathQuery(organismName); 81 82 pathQuery.addConstraint(bagType, Constraints.in(bagName)); 82 pathQuery.setView("Gene.homologues.homologue.primaryIdentifier"); 83 pathQuery.addConstraint(geneIdentifier, Constraints.isNotNull()); 84 pathQuery.setView(geneIdentifier); 83 85 pathQuery.syncLogicExpression("and"); 84 86 PathQueryExecutor executor = im.getPathQueryExecutor(profile); … … 92 94 } 93 95 orthologues.append(orthologue); 96 } 97 if (orthologues.length() == 0) { 98 return null; 94 99 } 95 100 return orthologues.toString(); … … 202 207 return executor.execute(q); 203 208 } 204 209 205 210 /** 206 211 *If view contains joined organism, this will make sure, that
Note: See TracChangeset
for help on using the changeset viewer.
