New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom file validator over output object #42

Open
thejmazz opened this Issue Aug 17, 2016 · 0 comments

Comments

2 participants
@thejmazz
Member

thejmazz commented Aug 17, 2016

This means to be able to pass a custom file validator on a per task basis, something like:

const mytask = task({
  input: '*.sra',
  output: '*.vcf'
  validators: (file) => vcf(file).hasSNPs(25) // reject if < 25 SNPs with imaginary API
  operation: ({ input, context }) => `sometool ${input} -o ${context.sample}`
})

It will also need to handle multiple output types and how to set up validators for each one.

(Also I just made up that context thing - but maybe some way to pass current sample through tasks in a multiple input pipeline? in any way, it is always a little awkward hard coding output filenames in tasks - could have done sample.vcf for example)

@bmpvieira bmpvieira added this to Backlog in Bionode Project Board Mar 29, 2017

@bmpvieira bmpvieira added the feature label Mar 29, 2017

@tiagofilipe12 tiagofilipe12 added this to DAG related in Watermill board Jul 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment