These are chat archives for nextflow-io/nextflow

1st
Jul 2017
Paolo Di Tommaso
@pditommaso
Jul 01 2017 07:04
@ewels something like this
process foo {
output:
  file 'hola.yml' into x

exec: 
  def newFile = task.workDir.resolve('hola.yml')
  newFile.text  = 'Hola' 
}

x.println()
Paolo Di Tommaso
@pditommaso
Jul 01 2017 07:14
@mes5k nope, but it could be interesting to add cache operator eg.
Channel
    .fromPath("s3://example/my_blast_db/*")
    .cachePath(store:"/mnt/my/local/cache") { /* closure invoked only if the file does not exit locally  */ }
or maybe even merge fromPath with cachePath as you are proposing .. may you open a feature request and continue the discussion there?
Phil Ewels
@ewels
Jul 01 2017 16:39
Thanks @pditommaso! Looking tidier now!
Paolo Di Tommaso
@pditommaso
Jul 01 2017 16:44
:clap:
Mike Smoot
@mes5k
Jul 01 2017 16:56
Thanks @pditommaso here's the ticket: nextflow-io/nextflow#397
Paolo Di Tommaso
@pditommaso
Jul 01 2017 16:59
you are welcome