Changeset 16275
- Timestamp:
- 22/07/08 16:38:59 (1 month ago)
- Files:
-
- trunk/bio/webapp/src/org/intermine/bio/web/widget/ChromosomeDistributionGraphURLGenerator.java (modified) (2 diffs)
- trunk/flymine/webapp/src/org/flymine/web/widget/BDGPinsituGraphURLGenerator.java (modified) (2 diffs)
- trunk/flymine/webapp/src/org/flymine/web/widget/FlyAtlasGraphURLGenerator.java (modified) (2 diffs)
- trunk/flymine/webapp/src/org/flymine/web/widget/FlyFishGraphURLGenerator.java (modified) (2 diffs)
- trunk/intermine/web/main/src/org/intermine/web/logic/widget/GraphCategoryURLGenerator.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bio/webapp/src/org/intermine/bio/web/widget/ChromosomeDistributionGraphURLGenerator.java
r15993 r16275 73 73 public PathQuery generatePathQuery(ObjectStore os, 74 74 InterMineBag imBag, 75 @SuppressWarnings("unused") String series,76 @SuppressWarnings("unused") String category) {75 @SuppressWarnings("unused") String category, 76 @SuppressWarnings("unused") String series) { 77 77 78 78 Model model = os.getModel(); … … 114 114 PathNode chromosomeNode = q.addNode(bagType + ".chromosome.primaryIdentifier"); 115 115 Constraint chromosomeConstraint 116 = new Constraint(constraintOp, series, false, label, code, id, null);116 = new Constraint(constraintOp, category, false, label, code, id, null); 117 117 chromosomeNode.getConstraints().add(chromosomeConstraint); 118 118 trunk/flymine/webapp/src/org/flymine/web/widget/BDGPinsituGraphURLGenerator.java
r16230 r16275 78 78 public PathQuery generatePathQuery(ObjectStore os, 79 79 InterMineBag bag, 80 String series,81 String category) {80 String category, 81 String series) { 82 82 83 83 Model model = os.getModel(); … … 93 93 q.addConstraint("Gene.mRNAExpressionResults.dataSet.title", Constraints.eq(DATASET)); 94 94 95 // stage ( series)95 // stage (category) 96 96 q.addConstraint("Gene.mRNAExpressionResults.stageRange", 97 Constraints.eq( series+ " (BDGP in situ)"));97 Constraints.eq(category + " (BDGP in situ)")); 98 98 99 // expressed ( category)100 Boolean expressed = ( category.equals("true") ? Boolean.TRUE : Boolean.FALSE);99 // expressed (series) 100 Boolean expressed = (series.equals("true") ? Boolean.TRUE : Boolean.FALSE); 101 101 q.addConstraint("Gene.mRNAExpressionResults.expressed", Constraints.eq(expressed)); 102 102 trunk/flymine/webapp/src/org/flymine/web/widget/FlyAtlasGraphURLGenerator.java
r16230 r16275 66 66 public PathQuery generatePathQuery(ObjectStore os, 67 67 InterMineBag bag, 68 String series,69 String category) {68 String category, 69 String series) { 70 70 71 71 Model model = os.getModel(); … … 79 79 80 80 q.addConstraint("Gene", Constraints.in(bag.getName())); 81 q.addConstraint("FlyAtlasResult.affyCall", Constraints.eq( category));82 q.addConstraint("FlyAtlasResult.assays.name", Constraints.eq( series));81 q.addConstraint("FlyAtlasResult.affyCall", Constraints.eq(series)); 82 q.addConstraint("FlyAtlasResult.assays.name", Constraints.eq(category)); 83 83 84 84 Boolean sortAscending = (category.equalsIgnoreCase("up") ? Boolean.FALSE : Boolean.TRUE); trunk/flymine/webapp/src/org/flymine/web/widget/FlyFishGraphURLGenerator.java
r16230 r16275 78 78 public PathQuery generatePathQuery(ObjectStore os, 79 79 InterMineBag bag, 80 String series,81 String category) {80 String category, 81 String series) { 82 82 83 83 Model model = os.getModel(); … … 93 93 q.addConstraint("Gene.mRNAExpressionResults.dataSet.title", Constraints.eq(DATASET)); 94 94 95 // stage ( series)95 // stage (category) 96 96 q.addConstraint("Gene.mRNAExpressionResults.stageRange", 97 Constraints.eq( series+ " (fly-FISH)"));97 Constraints.eq(category + " (fly-FISH)")); 98 98 99 // expressed ( category)100 Boolean expressed = ( category.equals("true") ? Boolean.TRUE : Boolean.FALSE);99 // expressed (series) 100 Boolean expressed = (series.equals("true") ? Boolean.TRUE : Boolean.FALSE); 101 101 q.addConstraint("Gene.mRNAExpressionResults.expressed", Constraints.eq(expressed)); 102 102 trunk/intermine/web/main/src/org/intermine/web/logic/widget/GraphCategoryURLGenerator.java
r15963 r16275 28 28 * builds the url used by the graph widgets. Simply concatenates the variables to create 29 29 * a URL. 30 * @param dataset dataset represented by the entire graph 30 * @param dataset dataset represented by the entire graph 31 31 * @param category specific category (eg employee type: manager, etc) 32 32 * @param series specific series (eg part-time, full-time) 33 * @return url that sends the user to the results page containing data represented by 33 * @return url that sends the user to the results page containing data represented by 34 34 * the bar on the graph they clicked on 35 35 */ … … 37 37 38 38 /** 39 * generates the path query 39 * generates the path query 40 40 * @param os object store 41 41 * @param bag bag that this widget is displaying … … 46 46 public PathQuery generatePathQuery(ObjectStore os, 47 47 InterMineBag bag, 48 String series,49 String category);48 String category, 49 String series); 50 50 51 51
