Hello Michel, Any number of output files can be generated by naming them in a certain way and putting them in a certain directory. The maf_to_interval tool in ~/tools/maf/maf_to_interval.xml and maf_to_interval.py is an example of how this can be done. On Dec 3, 2009, at 7:43 AM, Michel P. Villerius wrote:
I'm almost done with the wrapper scripts, galaxy works great, still there is one question left:
One of my perl script creates one or more output files, I wrote a wrapper that handles one file within galaxy and that works great. How do I specify two or more output files with galaxy if I on forehand don't know how many files there will be created? Can I use an array in the wrapper perl script(@) that returns the array to galaxy?
Thanks,
//Michel
On Tue, 2009-12-01 at 11:12 -0500, Greg Von Kuster wrote:
Hello Michel,
have you seen our wiki for adding a new tool?
http://bitbucket.org/galaxy/galaxy-central/wiki/AddToolTutorial
Greg
On Dec 1, 2009, at 10:19 AM, Michel P. Villerius wrote:
Hi Hans,
Thanks for the reply.
I called the perl script with the 3rd argument because I don't understand the galaxy part of it, on command line I call it with just 2 arguments. How does the galaxy work with the output that is just a file ? What is the right way to handle the output with galaxy? In short: I can't even seem to get a command line working program working under galaxy without some proper manual, even google is not my best friend here when it comes to galaxy framework.
//Michel
On Tue, 2009-12-01 at 16:03 +0100, Hotz, Hans-Rudolf wrote:
Michel
I am not sure, whether I do understand your e-mail correctly, but something looks strange to me:
you call a perl script with 3 arguments :
###########40################ <tool id="GAPSS_FASTA_to_FASTQ" name="GAPSS - FASTA to FASTQ"> <description>converter</description> <command interpreter="perl">GAPSS_FASTA2FASTQ.v2.pl $input $score $output</command>
but you never use "$ARGV[2]" in your 'PERl script job 40'
Have you tried
my $fastq_output_file_name = $ARGV[2];
instead of " my $fastq_output_file_name = $file_to_convert.".fastq"; "
Hans
_______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev
Greg Von Kuster Galaxy Development Team greg@bx.psu.edu
Greg Von Kuster Galaxy Development Team greg@bx.psu.edu