Changeset 5723
- Timestamp:
- Nov 13, 2019, 9:07:07 AM (3 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/autoconfirm/AutoConfirmService.java
r5721 r5723 207 207 RawDataType cufflinksType = Rawdatatype.CUFFLINKS.getRawDataType(); 208 208 RawDataType stringTieType = Rawdatatype.STRINGTIE.getRawDataType(); 209 RawDataType variantCallType = Rawdatatype.VARIANT_CALL.getRawDataType(); 209 210 210 211 // Collection AutoConfirm actions … … 277 278 ac = new StringTieAutoConfirmer(raw); 278 279 } 280 else if (variantCallType.equals(rawType)) 281 { 282 //ac = new VariantCallAutoConfirmer(raw); 283 } 279 284 280 285 manager.checkRulesAndAdd(dc, ac); … … 291 296 // Check if there are any failed mBAF analysis or variant calling jobs 292 297 numItems += confirmMBafAnalysis(dc, manager, "mbaf_genotype.vcf"); 293 numItems += confirm VariantCalling(dc, manager, "variants-raw.vcf.gz");298 numItems += confirmRawOnlyVariantCalling(dc, manager, "variants-raw.vcf.gz"); 294 299 295 300 // Commit now so that all items are reverted to manual flow just in case … … 382 387 @since 4.24 383 388 */ 384 private int confirm VariantCalling(DbControl dc, AutoConfirmManager manager, String vcfName)389 private int confirmRawOnlyVariantCalling(DbControl dc, AutoConfirmManager manager, String vcfName) 385 390 { 386 391 ItemQuery<DerivedBioAssay> query = DerivedBioAssay.getQuery(); … … 399 404 numItems++; 400 405 DerivedBioAssay alignment = it.next(); 401 AutoConfirmer<?> ac = new VariantCallAutoConfirmer(alignment, vcfName);406 AutoConfirmer<?> ac = new RawOnlyVariantCallAutoConfirmer(alignment, vcfName); 402 407 manager.checkRulesAndAdd(dc, ac); 403 408 } -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/autoconfirm/RawOnlyVariantCallAutoConfirmer.java
r5721 r5723 10 10 11 11 /** 12 Auto-confirm implementation for alignments after running variant calling.12 Auto-confirm implementation for alignments after running raw-only variant calling. 13 13 This auto-confirmer is needed to handle the case when the analysis fails. 14 14 In this case the 'variants-raw.vcf.gz' will be linked to the failed JOB instead … … 22 22 @since 4.24 23 23 */ 24 public class VariantCallAutoConfirmer24 public class RawOnlyVariantCallAutoConfirmer 25 25 extends AutoConfirmer<DerivedBioAssay> 26 26 { … … 28 28 private AnyToAny link; 29 29 30 public VariantCallAutoConfirmer(DerivedBioAssay alignment, String vcfName)30 public RawOnlyVariantCallAutoConfirmer(DerivedBioAssay alignment, String vcfName) 31 31 { 32 32 super(alignment, null); … … 81 81 { 82 82 if (!super.equals(o)) return false; 83 VariantCallAutoConfirmer other = (VariantCallAutoConfirmer)o;83 RawOnlyVariantCallAutoConfirmer other = (RawOnlyVariantCallAutoConfirmer)o; 84 84 return other.vcfName.equals(vcfName); 85 85 } -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/grid/VariantCallingJobCreator.java
r5721 r5723 287 287 if (autoConfirm) 288 288 { 289 // TODO -- what about raw-only mode??290 289 Annotationtype.AUTO_PROCESSING.setAnnotationValue(dc, raw, "AutoConfirm"); 291 290 } … … 295 294 ScriptUtil.checkValidScriptParameter(raw.getName()); 296 295 } 297 298 // Temporary link to the job so that it is possible to handle failed jobs in the VariantCallingAutoConfirmer 299 if (autoConfirm) 300 { 301 // TODO -- what about filtering mode?? 302 AnyToAny link = AnyToAny.getNewOrExisting(dc, aligned, "variants-raw.vcf.gz", vCallJob, false); 303 if (!link.isInDatabase()) dc.saveItem(link); 296 else 297 { 298 // Temporary link to the job so that it is possible to handle failed jobs in the RawOnlyVariantCallingAutoConfirmer 299 if (autoConfirm) 300 { 301 AnyToAny link = AnyToAny.getNewOrExisting(dc, aligned, "variants-raw.vcf.gz", vCallJob, false); 302 if (!link.isInDatabase()) dc.saveItem(link); 303 } 304 304 } 305 305
Note: See TracChangeset
for help on using the changeset viewer.