Changeset 5314
- Timestamp:
- Apr 16, 2010, 12:46:12 PM (13 years ago)
- Location:
- branches/2.15-stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.15-stable/doc/test/roles/index.html
r5144 r5314 1778 1778 Inherit the annotations from the scans, samples and biosource for each raw bioassay. 1779 1779 Use the <i>auto-inherit</i> function that exists on the experiment properties 1780 tab. The <i>Status</i> column in <i>Experimental factors</i> table should indicate1781 the number of raw bioassays that is missing a value. Click on this warning to1782 automatically inherit annotations from the parents.Note! The <i>Dye swap</i>1780 tab. Make sure that all experimental factors are selected by the check boxes, 1781 then click on the <i>Auto-inherit</i> link in the column header. 1782 Note! The <i>Dye swap</i> 1783 1783 annotation will not get values until the next step, and the <i>Affymetrix raw A.3</i> 1784 data set doesn't have anyparents with annotations.1784 data set is missing biomaterial parents with annotations. 1785 1785 <p> 1786 1786 -
branches/2.15-stable/src/core/net/sf/basedb/core/AnnotationSet.java
r5176 r5314 791 791 AnnotationSetSnapshot snapshot = manager.getSnapshot(dc, getId()); 792 792 AnnotationTypeFilter atFilter = new AnnotationTypeFilter(); 793 for (AnnotationType at : annotationTypes) 794 { 795 atFilter.setAnnotationType(at); 796 if (manager.findAnnotations(dc, snapshot, atFilter, true).size() == 0) 793 if (snapshot == null) 794 { 795 // If snapshot==null this annotation set is new and unsaved 796 // and doesn't have any annotations 797 missing.addAll(annotationTypes); 798 } 799 else 800 { 801 for (AnnotationType at : annotationTypes) 797 802 { 798 missing.add(at); 803 atFilter.setAnnotationType(at); 804 if (manager.findAnnotations(dc, snapshot, atFilter, true).size() == 0) 805 { 806 missing.add(at); 807 } 799 808 } 800 809 } -
branches/2.15-stable/src/core/net/sf/basedb/core/snapshot/SnapshotManager.java
r5185 r5314 90 90 the database cache 91 91 @param annotationSetId The id of the annotation set 92 @return A snapshot 92 @return A snapshot, or null if the annotation set with the given 93 id doesn't exists 93 94 */ 94 95 public AnnotationSetSnapshot getSnapshot(DbControl dc, int annotationSetId) … … 106 107 // As a last resort, create a new snapshot and cache it 107 108 snapshot = AnnotationSet.createSnapshot(dc, annotationSetId); 108 cache.store(cacheKey, snapshot, 1000);109 if (snapshot != null) cache.store(cacheKey, snapshot, 1000); 109 110 } 110 111 snapshots.put(annotationSetId, snapshot);
Note: See TracChangeset
for help on using the changeset viewer.