Changeset 5790
- Timestamp:
- Dec 13, 2019, 2:26:35 PM (3 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/dao/ReggieItem.java
r5789 r5790 249 249 250 250 /** 251 Helper method to copy all DoNotUse-related annotations from this item to the other.252 @param force TRUE to overwrite existing annotations, FALSE to not253 @return TRUE if any of the information was changed, FALSE if not254 @since 4.25255 */256 public boolean copyDoNotUseAnnotations(DbControl dc, Annotatable to, boolean force)257 {258 boolean copiedFlag = Annotationtype.DO_NOT_USE.copyAnnotationValues(dc, item, to, force);259 boolean copiedComment = Annotationtype.DO_NOT_USE_COMMENT.copyAnnotationValues(dc, item, to, force);260 return copiedFlag || copiedComment;261 }262 263 264 /**265 251 Utility method for finding parent biomaterial of the specified subtypes 266 252 by following the chain of parent items up to biosource. -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/grid/CufflinksJobCreator.java
r5705 r5790 48 48 import net.sf.basedb.reggie.dao.Datafiletype; 49 49 import net.sf.basedb.reggie.dao.DemuxedSequences; 50 import net.sf.basedb.reggie.dao.DoNotUse; 50 51 import net.sf.basedb.reggie.dao.Fileserver; 51 52 import net.sf.basedb.reggie.dao.Library; … … 315 316 masked.setProtocol(maskingProtocol); 316 317 masked.addParent(merged); 318 DoNotUse.copyDoNotUseAnnotations(dc, merged, masked, false); 317 319 dc.saveItem(masked); 318 320 … … 327 329 aligned.setProtocol(alignProtocol); 328 330 aligned.addParent(masked); 331 DoNotUse.copyDoNotUseAnnotations(dc, merged, aligned, false); 329 332 dc.saveItem(aligned); 330 333 … … 340 343 raw.setProtocol(protocol); 341 344 raw.setParentBioAssay(aligned); 345 DoNotUse.copyDoNotUseAnnotations(dc, merged, raw, false); 342 346 dc.saveItem(raw); 343 347 -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/grid/StringTieJobCreator.java
r5705 r5790 45 45 import net.sf.basedb.reggie.dao.BiomaterialList; 46 46 import net.sf.basedb.reggie.dao.Datafiletype; 47 import net.sf.basedb.reggie.dao.DoNotUse; 47 48 import net.sf.basedb.reggie.dao.Fileserver; 48 49 import net.sf.basedb.reggie.dao.Library; … … 227 228 raw.setProtocol(protocol); 228 229 raw.setParentBioAssay(aligned); 230 DoNotUse.copyDoNotUseAnnotations(dc, aligned, raw, false); 229 231 dc.saveItem(raw); 230 232 -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/grid/VariantCallingJobCreator.java
r5775 r5790 47 47 import net.sf.basedb.reggie.dao.BiomaterialList; 48 48 import net.sf.basedb.reggie.dao.Datafiletype; 49 import net.sf.basedb.reggie.dao.DoNotUse; 49 50 import net.sf.basedb.reggie.dao.Fileserver; 50 51 import net.sf.basedb.reggie.dao.Library; … … 280 281 raw.setArrayDesign(null); // To prevent the default hg38 281 282 raw.setParentBioAssay(aligned); 283 DoNotUse.copyDoNotUseAnnotations(dc, aligned, raw, false); 282 284 dc.saveItem(raw); 283 285
Note: See TracChangeset
for help on using the changeset viewer.