Skip to content

Commit 15ae843

Browse files
committed
More work on the planemo workflow presentation.
1 parent 5d286f2 commit 15ae843

3 files changed

Lines changed: 142 additions & 28 deletions

File tree

docs/presentations/2016_workflows.html

Lines changed: 65 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,13 @@
6565
---
6666

6767
class: center
68+
background-image: url(images/gx_new_run_workflow.png)
69+
background-repeat: no-repeat
70+
background-size: contain
71+
background-position: center
6872

6973
### GUI Enhancements - Workflow Run Form
7074

71-
![Workflow Run Form](images/gx_new_run_workflow.png)
72-
7375
???
7476

7577
The run workflow form has likewise been overhauled and will be merged soon. This
@@ -215,7 +217,7 @@
215217
Supply as many tools as you want.
216218

217219
---
218-
class: large
220+
class: larger
219221

220222
### Workflows are harder to serve than tools
221223

@@ -306,11 +308,11 @@
306308

307309
Doesn't Galaxy have a JSON workflow format?
308310

309-
```json
311+
.code[```json
310312
"tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null,
311313
\"input1\": \"null\", \"chromInfo\": \"\\\"/home/john/workspace/galaxy-central/tool-data/shared/ucsc/chrom/?.len\\\"\",
312314
\"queries\": \"[{\\\"input2\\\": null, \\\"__index__\\\": 0}]\"}",
313-
```
315+
```]
314316

315317
- Neither human writable, nor human readable.
316318
- JSON doesn't allow comments.
@@ -379,17 +381,67 @@
379381
- Github @ https://github.com/galaxyproject/emphemeris
380382

381383
---
382-
class: large
384+
class: smaller
383385

384386
### Format 2 Workflows - Composition Example
385387

386-
TODO: Show a subworkflow example.
388+
```yaml
389+
class: GalaxyWorkflow
390+
inputs:
391+
- id: outer_input
392+
steps:
393+
- tool_id: cat1
394+
label: first_cat
395+
state:
396+
input1: {$link: outer_input}
397+
- run:
398+
class: GalaxyWorkflow
399+
inputs:
400+
- id: inner_input
401+
outputs:
402+
- id: workflow_output
403+
source: random_lines#out_file1
404+
steps:
405+
- tool_id: random_lines1
406+
label: random_lines
407+
state:
408+
num_lines: 1
409+
input: {$link: inner_input}
410+
seed_source:
411+
seed_source_selector: set_seed
412+
seed: asdf
413+
label: nested_workflow
414+
connect:
415+
inner_input: first_cat#out_file1
416+
...
417+
```
387418

388419
---
389420

421+
class: smaller
422+
390423
### Format 2 Workflows - Implicit Connections Example
391424

392-
TODO: Show a data manager example.
425+
```yaml
426+
class: GalaxyWorkflow
427+
name: "Indexing Workflow"
428+
inputs:
429+
- id: fasta
430+
- id: reads
431+
steps:
432+
- label: create_index
433+
tool_id: example_data_manager
434+
state:
435+
sequences:
436+
$link: fasta
437+
- label: run_mapper
438+
tool_id: example_mapper
439+
connect:
440+
$step: create_index
441+
state:
442+
input1:
443+
$link: reads
444+
```
393445

394446
---
395447
class: large
@@ -425,16 +477,17 @@
425477

426478
### Run Workflows
427479

480+
```
481+
$ planemo run <workflow> <job.json>
482+
```
483+
428484
---
429485

430-
class: large, bottom
431-
layout: false
486+
class: large, bottom, white
432487
background-image: url(images/CWL-Logo-HD.png)
433488
background-repeat: no-repeat
434489
background-size: contain
435490

436-
### .
437-
438491
---
439492

440493
layout: true

docs/presentations/2016_workflows.md

Lines changed: 65 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ new tool form presented last year.
5151
---
5252

5353
class: center
54+
background-image: url(images/gx_new_run_workflow.png)
55+
background-repeat: no-repeat
56+
background-size: contain
57+
background-position: center
5458

5559
### GUI Enhancements - Workflow Run Form
5660

57-
![Workflow Run Form](images/gx_new_run_workflow.png)
58-
5961
???
6062

6163
The run workflow form has likewise been overhauled and will be merged soon. This
@@ -201,7 +203,7 @@ $ planemo s --extra_tools <tool_dir>
201203
Supply as many tools as you want.
202204

203205
---
204-
class: large
206+
class: larger
205207

206208
### Workflows are harder to serve than tools
207209

@@ -292,11 +294,11 @@ class: large
292294
293295
Doesn't Galaxy have a JSON workflow format?
294296
295-
```json
297+
.code[```json
296298
"tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null,
297299
\"input1\": \"null\", \"chromInfo\": \"\\\"/home/john/workspace/galaxy-central/tool-data/shared/ucsc/chrom/?.len\\\"\",
298300
\"queries\": \"[{\\\"input2\\\": null, \\\"__index__\\\": 0}]\"}",
299-
```
301+
```]
300302
301303
- Neither human writable, nor human readable.
302304
- JSON doesn't allow comments.
@@ -365,17 +367,67 @@ pip install emphemeris
365367
- Github @ https://github.com/galaxyproject/emphemeris
366368

367369
---
368-
class: large
370+
class: smaller
369371

370372
### Format 2 Workflows - Composition Example
371373

372-
TODO: Show a subworkflow example.
374+
```yaml
375+
class: GalaxyWorkflow
376+
inputs:
377+
- id: outer_input
378+
steps:
379+
- tool_id: cat1
380+
label: first_cat
381+
state:
382+
input1: {$link: outer_input}
383+
- run:
384+
class: GalaxyWorkflow
385+
inputs:
386+
- id: inner_input
387+
outputs:
388+
- id: workflow_output
389+
source: random_lines#out_file1
390+
steps:
391+
- tool_id: random_lines1
392+
label: random_lines
393+
state:
394+
num_lines: 1
395+
input: {$link: inner_input}
396+
seed_source:
397+
seed_source_selector: set_seed
398+
seed: asdf
399+
label: nested_workflow
400+
connect:
401+
inner_input: first_cat#out_file1
402+
...
403+
```
373404

374405
---
375406

407+
class: smaller
408+
376409
### Format 2 Workflows - Implicit Connections Example
377410

378-
TODO: Show a data manager example.
411+
```yaml
412+
class: GalaxyWorkflow
413+
name: "Indexing Workflow"
414+
inputs:
415+
- id: fasta
416+
- id: reads
417+
steps:
418+
- label: create_index
419+
tool_id: example_data_manager
420+
state:
421+
sequences:
422+
$link: fasta
423+
- label: run_mapper
424+
tool_id: example_mapper
425+
connect:
426+
$step: create_index
427+
state:
428+
input1:
429+
$link: reads
430+
```
379431
380432
---
381433
class: large
@@ -411,16 +463,17 @@ Will detect this aritfact and run the tests in this YAML file.
411463

412464
### Run Workflows
413465

466+
```
467+
$ planemo run <workflow> <job.json>
468+
```
469+
414470
---
415471

416-
class: large, bottom
417-
layout: false
472+
class: large, bottom, white
418473
background-image: url(images/CWL-Logo-HD.png)
419474
background-repeat: no-repeat
420475
background-size: contain
421476

422-
### .
423-
424477
---
425478

426479
layout: true

docs/presentations/style.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ i, em {
4646
font-size: 1.6em;
4747
}
4848

49+
.larger {
50+
font-size: 1.8em;
51+
}
52+
4953
.photo-credit {
5054
font-weight: bolder;
5155
font-size: 2.2em;
@@ -57,6 +61,10 @@ i, em {
5761
font-size: .8em;
5862
}
5963

64+
.code > pre, .code > code {
65+
white-space: pre-wrap;
66+
}
67+
6068
a, a > code {
6169
color: #ff9300;
6270
text-decoration: none;
@@ -86,13 +94,13 @@ a, a > code {
8694
#slideshow .slide .content pre code {
8795
}
8896
.inverse {
89-
background: #000;
97+
background-color: #000;
9098
background-repeat: no-repeat;
9199
color: #ffffff;
92100
}
93101

94102
.white {
95-
background: #fff;
103+
background-color: #fff;
96104
background-repeat: no-repeat;
97105
color: #000;
98106
}
@@ -124,15 +132,15 @@ a, a > code {
124132
box-shadow: 0 0 10px #777;
125133
}
126134
#slide-how .slides .first {
127-
background: #fff;
135+
background-color: #fff;
128136
position: absolute;
129137
top: 20%;
130138
left: 20%;
131139
z-index: 1;
132140
}
133141
#slide-how .slides .second {
134142
position: relative;
135-
background: #fff;
143+
background-color: #fff;
136144
z-index: 0;
137145
}
138146

0 commit comments

Comments
 (0)