Hi Branden, The $infiles variable is simply a list that you can then use the "len" command on to find its length. For example, you can do this in the cmd string: <command interpreter="python">randomlines.py $input ${len($match_blocks)} $out_file1</command> Let us know if you run into any problems. Thanks, Kanwei On Tue, Nov 2, 2010 at 12:03 PM, Branden Timm <btimm@wisc.edu> wrote:
Hi, I'd like to be able to ascertain the length of an array of input files captured by the REPEAT tag. For example:
<repeat name="infiles"> <param name="infile" type="data" format"txt" /> </repeat>
How can I get the length of $infiles to pass in my command line? Something like $infiles.length ?
-- Branden Timm btimm@glbrc.wisc.edu _______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev