|
| 1 | +# Example Bpipe Workflow |
| 2 | + |
| 3 | +[Bpipe](http://bpipe.org) is a workflow manager focused on emulating the simplicity of |
| 4 | +the command line and making your pipelines look as close to the literal commands |
| 5 | +that run as possible. |
| 6 | + |
| 7 | +Bpipe pipeline are written in Groovy, a scripting version of Java that enables powerful |
| 8 | +yet high performing DSLs to be easily developed. The definition of the workflow is |
| 9 | +in the [quantify_rna.groovy](quantify_rna.groovy) file. |
| 10 | + |
| 11 | +To run this workflow, you can first install Bpipe using [SDKMan](https://sdkman.io/sdks#bpipe) |
| 12 | +and then execute from within the bpipe directory: |
| 13 | + |
| 14 | +``` |
| 15 | +bpipe run quantify_rna.groovy ../test_data/*.fq.gz |
| 16 | +``` |
| 17 | + |
| 18 | +**Note**: please make sure to use Bpipe 0.9.11 or higher for running the example. |
| 19 | + |
| 20 | +Please note the default configuration will run the commands on the local computer, and it |
| 21 | +assumes that salmon and fastqc are available in the PATH. It is easy |
| 22 | +to configure Bpipe for other environments, and an example is shown in the |
| 23 | +[bpipe.config](bpipe.config) file which illustrates how to configure it to run using |
| 24 | +PBS Torque. To run the Torque version you can tell Bpipe to use the alternative environment like |
| 25 | +so: |
| 26 | + |
| 27 | +``` |
| 28 | +bpipe run --env torque quantify_rna.groovy ../test_data/*.fq.gz |
| 29 | +``` |
| 30 | + |
| 31 | +If you would like to see how the HTML report that Bpipe makes looks, add the `-r` option: |
| 32 | + |
| 33 | +``` |
| 34 | +bpipe run -r --env torque quantify_rna.groovy ../test_data/*.fq.gz |
| 35 | +``` |
| 36 | + |
| 37 | +This example only uses very simple features of Bpipe. Bpipe has many more features |
| 38 | +which you can explore in the [documentation](http://docs.bpipe.org). |
| 39 | + |
| 40 | +Other useful commands to experiment with are: |
| 41 | + |
| 42 | +- `bpipe log` (see logs of a running pipeline) |
| 43 | +- `bpipe stop` (stop a running pipeline) |
| 44 | +- `bpipe history` (show history) |
| 45 | + |
| 46 | + |
| 47 | +Thanks for trying out the Bpipe example! |
| 48 | + |
| 49 | + |
0 commit comments