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

flag to allow input resolution to fallback to cwd #44

Open thejmazz opened 7 years ago

thejmazz commented 7 years ago

by default off, but can be useful for putting quick pipelines together.

else need to make sure files end up in DAG

thejmazz commented 7 years ago

For example, to get starting files from CWD into DAG:

const getters = task({
  input: {
    reference: '*.fna',
    reads: '*.fq'
  },
  output: [ 'reference.fna', 'reads.fq' ]
}, ({ input: { reference, reads } }) => `
cp ${reference} reference.fna && \
cp ${reads} reads.fq
`)