pallassgj / bpipe

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

Transform insists on CLI input #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Run this pipeline (no CLI input)
   DATA="file.txt"
   @Transform("count")
   count = {
      exec """
         wc -l $DATA > $output
      """
   }
   Bpipe.run {
      count
   }

What is the expected output? What do you see instead?
I get an error message:
   ====================================================================================================
   |                              Starting Pipeline at 2013-05-03 11:26                               |
   ====================================================================================================

   =========================================== Stage count ============================================
   Pipeline failed! (2) 

   Expected input but no input provided

I expected this approach to work because it works if I remove the @Transform() 
line.

If I want to keep the @Transform line, I need to modify the pipeline as follows 
and provide the data file on the CLI:
   count = {
      exec """
         wc -l $input > $output
      """
   }
   Bpipe.run {
      count
   }

What version of the product are you using? On what operating system?
Linux 3.2.0-39-generic
jdk 1.6.0
bpipe 0.9.8

Please provide any additional information below.

Original issue reported on code.google.com by florent....@gmail.com on 3 May 2013 at 1:30