bionode / bionode-watermill

💧Bionode-Watermill: A (Not Yet Streaming) Workflow Engine
https://bionode.gitbooks.io/bionode-watermill/content/
MIT License
37 stars 11 forks source link

Types #7

Closed thejmazz closed 8 years ago

thejmazz commented 8 years ago

value

Pass something in directly, as it is, with no resolution. Could be a boolean, string, number, Array, Function, Promise, ...

{ value: 'foo' }

file

a glob expression/regex to be resolved to a full path before/after task

{ file: '**/*.sra' }

stream

Use this if the task should take a stream as input, output, or both.

task 1

{ input: { value: '2492428' }, output: { stream: 'stdout' } }

task 2

{ input: { stream: 'stdin' }, output: { file: '*_genomic.fna.gz' } }

This will take the output stream of the preceding task and pipe it into the input of this task.

It is also possible to stream out an existing (or as it is created) file:

{ input: { 'stream-file': '*.sam' }, output: { stream: 'stdout' } }
thejmazz commented 8 years ago

The objs for #6

thejmazz commented 8 years ago

EDIT:

switched from

{ val: 'foo', type: 'value' }

to

{ value: 'foo' }
thejmazz commented 8 years ago

Closing as per port into wiki.