pallassgj / bpipe

Automatically exported from code.google.com/p/bpipe
0 stars 1 forks source link

Transform should not overwrite input files if output file would be produced with same name as input #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It's possible to construct a transform() that will make an output file the same 
name as an input file and destroy the input. eg:

transform("bam") {
  exec "command $input.bed $input.bam > $output"
}

Bpipe should notice that the output file is going to have the same name as an 
input (or output from previous stage) and prevent that happening.

Original issue reported on code.google.com by ssade...@gmail.com on 14 Aug 2012 at 3:26