You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means to be able to pass a custom file validator on a per task basis, something like:
constmytask=task({input: '*.sra',output: '*.vcf'validators: (file)=>vcf(file).hasSNPs(25)// reject if < 25 SNPs with imaginary APIoperation: ({ 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)
The text was updated successfully, but these errors were encountered:
This means to be able to pass a custom file validator on a per task basis, something like:
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 donesample.vcf
for example)The text was updated successfully, but these errors were encountered: