[galaxy-dev] tool with multiple undefined output datasets

2015-07-29 Thread Sabrina Legoueix Rodriguez

Hi,

I am trying to develop a tool to untar, unzip... an archive file in 
order to obtain each file contained in the archive as a dataset in the 
current history.


My problem is about the unknown various number of files contained within 
the archive file.


I was thinking about having an output variable in my .xml that would be 
fed by my wrapper and returned in order to filter the number of outputs 
in my .xml ; but the output section in the .xml can only get files 
not numbers, right?


In my tool, I ask the user to fill the number of files he wants from the 
archive ;
in  .xml I have put 10 outputs for files contained in the archive (out1, 
out2...) precised in my command and in the output section (for now I can 
retrieve maximum 10 outputs from my archive).


In the output section, I would like to use filter tag in order to 
select only the output number inferior than the number specified by the 
user:


 outputs
  data name=output_uncomp1 
format=${uncompressed_files_format} label=${input_compressed.name}_1/
  data name=output_uncomp2 
format=${uncompressed_files_format} label=${input_compressed.name}_2

   filternum_uncompressed_files = 2/filter
  /data
  data name=output_uncomp3 
format=${uncompressed_files_format} label=${input_compressed.name}_3

   filternum_decompressed_files= 3/filter
  /data

It does not seem to work well. Could you please tell me if it is 
possible to use the filter tag as such? If so, how?


Would you have a better idea to implement that tool?

Thanks in advance,

best regards,
--
Signature e-mail TWB
Sabrina

*Attention changement de coordonnées à partir du 15 Juin 2015:*



**Sabrina LEGOUEIX RODRIGUEZ**
Responsable Plateau Bioinformatique

Tél. : +33 (0) 5 61 28 57 92
sabrina.legou...@toulouse.inra.fr mailto:[MAIL]
www.toulouse-white-biotechnology.com 
http://www.toulouse-white-biotechnology.com/


LinkedIn https://www.linkedin.com/company/2757525h Twitter 
https://twitter.com/TWB_Biotech


TWB - Parc technologique du canal • Bâtiment NAPA CENTER B • 3, rue 
Ariane • 31520 Ramonville Saint-Agne



Ce message et ses pièces jointes sont strictement personnels. Ils 
peuvent contenir des informations confidentielles. Si vous avez reçu ce 
message par erreur, merci d'en avertir l'expéditeur et de détruire le 
message et les documents joints. Toute utilisation des informations 
reçues par erreur est interdite. This message and the attachments are 
strictly personal. They may contain confidential information. If you 
have received this message in error, please notify the sender and delete 
the message and the attachments. Any use of this communication received 
in error is prohibited.



___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

Re: [galaxy-dev] tool with multiple undefined output datasets

2015-07-29 Thread John Chilton
Have you read this documentation
https://wiki.galaxyproject.org/Admin/Tools/Multiple%20Output%20Files#Number_of_Output_datasets_cannot_be_determined_until_tool_run?
I think it may be what you are looking for.

-John

On Wed, Jul 29, 2015 at 5:00 PM, Sabrina Legoueix Rodriguez 
sabrina.rodrig...@toulouse.inra.fr wrote:

  Hi,

 I am trying to develop a tool to untar, unzip... an archive file in order
 to obtain each file contained in the archive as a dataset in the current
 history.

 My problem is about the unknown various number of files contained within
 the archive file.

 I was thinking about having an output variable in my .xml that would be
 fed by my wrapper and returned in order to filter the number of outputs in
 my .xml ; but the output section in the .xml can only get files not
 numbers, right?

 In my tool, I ask the user to fill the number of files he wants from the
 archive ;
 in  .xml I have put 10 outputs for files contained in the archive (out1,
 out2...) precised in my command and in the output section (for now I can
 retrieve maximum 10 outputs from my archive).

 In the output section, I would like to use filter tag in order to select
 only the output number inferior than the number specified by the user:

  outputs
   data name=output_uncomp1
 format=${uncompressed_files_format} label=${input_compressed.name}_1/
   data name=output_uncomp2
 format=${uncompressed_files_format} label=${input_compressed.name}_2
filternum_uncompressed_files = 2/filter
   /data
   data name=output_uncomp3
 format=${uncompressed_files_format} label=${input_compressed.name}_3
filternum_decompressed_files= 3/filter
   /data

 It does not seem to work well. Could you please tell me if it is possible
 to use the filter tag as such? If so, how?

 Would you have a better idea to implement that tool?

 Thanks in advance,

 best regards,
 --

 Sabrina

 *Attention changement de coordonnées à partir du 15 Juin 2015:*

  *Sabrina LEGOUEIX RODRIGUEZ*
 Responsable Plateau Bioinformatique

 Tél. : +33 (0) 5 61 28 57 92
 sabrina.legou...@toulouse.inra.fr [MAIL]
 www.toulouse-white-biotechnology.com

  LinkedIn https://www.linkedin.com/company/2757525hTwitter
 https://twitter.com/TWB_Biotech
 TWB - Parc technologique du canal • Bâtiment NAPA CENTER B • 3, rue
 Ariane • 31520 Ramonville Saint-Agne
   Ce message et ses pièces jointes sont strictement personnels. Ils
 peuvent contenir des informations confidentielles. Si vous avez reçu ce
 message par erreur, merci d'en avertir l'expéditeur et de détruire le
 message et les documents joints. Toute utilisation des informations reçues
 par erreur est interdite. This message and the attachments are strictly
 personal. They may contain confidential information. If you have received
 this message in error, please notify the sender and delete the message and
 the attachments. Any use of this communication received in error is
 prohibited.

 ___
 Please keep all replies on the list by using reply all
 in your mail client.  To manage your subscriptions to this
 and other Galaxy lists, please use the interface at:
   https://lists.galaxyproject.org/

 To search Galaxy mailing lists use the unified search at:
   http://galaxyproject.org/search/mailinglists/

___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/