fulcrumgenomics / dagr

A scala based DSL and framework for writing and executing bioinformatics pipelines as Directed Acyclic GRaphs
MIT License
69 stars 14 forks source link

Allow optional piped tasks #336

Closed nh13 closed 5 years ago

nh13 commented 5 years ago

Example usage


def chain(boolean: Boolean): Task = {
   val optionalTask = if (boolean) Some(new Task1) else None
   val task2 = new Task2
   task2 | optionalTask
}
codecov-io commented 5 years ago

Codecov Report

Merging #336 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #336      +/-   ##
==========================================
+ Coverage   91.43%   91.44%   +<.01%     
==========================================
  Files          31       31              
  Lines        1144     1145       +1     
  Branches      110      115       +5     
==========================================
+ Hits         1046     1047       +1     
  Misses         98       98
Impacted Files Coverage Δ
...ore/src/main/scala/dagr/core/tasksystem/Pipe.scala 86% <100%> (+0.28%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5b6368c...62566b9. Read the comment docs.