Changeset 20752
Legend:
- Unmodified
- Added
- Removed
-
trunk/bio/webapp/src/org/intermine/bio/web/logic/OrthologueConverter.java
r20740 r20752 38 38 { 39 39 40 40 41 41 // D. melanogaster, C. lupus familiaris 42 42 private static final Pattern ORGANISM_SHORTNAME_MATCHER = Pattern.compile("([a-zA-Z]\\..+)"); 43 43 private Model model; 44 44 45 45 46 46 /** … … 58 58 59 59 // organism 60 q.addConstraint("Gene.homologues.homologue.organism.shortName", 60 q.addConstraint("Gene.homologues.homologue.organism.shortName", 61 61 Constraints.eq(organismName)); 62 62 … … 98 98 return orthologues.toString(); 99 99 } 100 100 101 101 /** 102 102 * runs the orthologue conversion pathquery and returns list of intermine IDs -
trunk/intermine/web/main/src/org/intermine/web/struts/PortalQueryAction.java
r20740 r20752 171 171 if (addparameters.length > 0) { 172 172 173 BagConverter bagConverter = getBagConverter( converterClassName);173 BagConverter bagConverter = getBagConverter(im, webConfig, converterClassName); 174 174 175 175 imBag = profile.createBag(bagName, className, ""); … … 215 215 } 216 216 217 private BagConverter getBagConverter(String converterClassName) { 217 private BagConverter getBagConverter(InterMineAPI im, WebConfig webConfig, 218 String converterClassName) { 218 219 219 220 BagConverter bagConverter = bagConverters.get(converterClassName); … … 223 224 Class clazz = Class.forName(converterClassName); 224 225 Constructor constructor = clazz.getConstructor(); 225 bagConverter = (BagConverter) constructor.newInstance( );226 bagConverter = (BagConverter) constructor.newInstance(im, webConfig); 226 227 } catch (Exception e) { 227 228 throw new RuntimeException("Failed to construct bagconverter for "
Note: See TracChangeset
for help on using the changeset viewer.
