Re: [galaxy-dev] format="input"

2011-06-09 Thread Mariette


Hi and thanks to you both !

Jim : I tryed your solution and it works just fine !
Peter : thanks for the advice, I'll support only sff/fastq as inputs 
you're right it makes think easier !


Jerome



Peter Cock a écrit :

On Wed, Jun 8, 2011 at 4:36 PM, Mariette  wrote:
  

Hi everyone,

I'm facing a little problem ...
Any ideas ?
thx,



I don't know what kind of tool you are working on, but personally I'd
consider dropping support for FASTA+QUAL and try and work with either
SFF or FASTQ only. It makes so many things easier.

Peter
___
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:

  http://lists.bx.psu.edu/
  


___
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:

 http://lists.bx.psu.edu/


[galaxy-dev] format="input"

2011-06-08 Thread Mariette

Hi everyone,

I'm facing a little problem ...

I have the following input :

label="Quality reads file (if input is a fasta)" />


and the following output:



   qual_file != None


If I provide the tool a sff file, the output is sff, if I only provide a 
fasta file and no qual file the output will be a fasta.
However if I provide a fasta+qual the output will be considered as qual 
file even if it's a fasta file.


I don't get how it can mark my output file as a qual file knowing it's 
not a valid input file format.


Any ideas ?
thx,

Jerome
___
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:

 http://lists.bx.psu.edu/


Re: [galaxy-dev] Components

2011-06-07 Thread Mariette


So I tryed an other way to access the value :

  
  ${clean_pairends.clean_pairends_select} == "y"
  

but it's not working either ... I tryed to add a label to the data like 
this :


  label="${clean_pairends.clean_pairends_select}">

  ${clean_pairends.clean_pairends_select} == "y"
  

the data file is created with a label "n" ! Is it not weird ?

Jerome




Mariette a écrit :


Thanks this is what I was looking for !!
I succeded to make it work when checking the value on a simple param 
using the name like this



label="Quality reads file (if input is a fasta)" />


...


 qual_file != None



however when I'm in a conditional tag like this, I tryed :





  Yes
  No


  value="70" label="Minimal length between the spacer and the read 
extremity"/>
  label="Limit of missmatch"/>

 
 
 


...


  clean_pairends.clean_pairends_select == "y"



but it's not working ... it looks like between filter tag I should 
provide a python test, am I missing something ?

thx,
Jerome



Peter Cock a écrit :
On Tue, Jun 7, 2011 at 11:38 AM, Mariette  
wrote:
 

I can only see the usage of the  tag into the 
to change format, is that correct ?




On re-reading the wiki page, yes, I think you are right. I should have
said  with , as in tools/filters/sff_extractor.xml

Peter
___
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:

  http://lists.bx.psu.edu/
  


___
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:

 http://lists.bx.psu.edu/


___
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:

 http://lists.bx.psu.edu/


Re: [galaxy-dev] Components

2011-06-07 Thread Mariette


Thanks for the answer,
Still considering the number of outputed files problem. In my script I 
know that if
a cleaning option is set 2 other files will be created, so I check if 
the option is asked by the

user and try this :

 
   
   #if $clean_pairends.clean_pairends_select=="y":
   
   #end if
 

but this is not working ... there is a way to do what I want ?
thx
Jerome




Peter Cock a écrit :

On Tue, Jun 7, 2011 at 9:24 AM, Mariette  wrote:
  

Thanks for the answer,

so I tryed to write a wrapper, but the main script is not recognize.
When I'm calling my wrapper in the xml file, I don't have to specify
the full path but then from my wrapper if I want to call my main script
I can't if this one is not on the PATH ? the wrapper current directory
is the job_working_directory, there is anyway to access my main script
just like it's done for the wrapper ?



Generally put the wrapper script next to your tool XML file, and don't
prefix it with any path in the  tag in the XML, e.g.

/opt/galaxy/tools/mariette/my_tool.xml
/opt/galaxy/tools/mariette/my_tool.sh

(or my_tool.py or my_tool.pl etc depending on what language you used)

Your wrapper script then has to call the real executable, and the
normal way to do this on Unix is to have it on the PATH. You could
also hard code an absolute path.

Peter
___
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:

  http://lists.bx.psu.edu/
  


___
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:

 http://lists.bx.psu.edu/


Re: [galaxy-dev] Components

2011-06-07 Thread Mariette


Thanks for the answer,

so I tryed to write a wrapper, but the main script is not recognize.
When I'm calling my wrapper in the xml file, I don't have to specify
the full path but then from my wrapper if I want to call my main script
I can't if this one is not on the PATH ? the wrapper current directory
is the job_working_directory, there is anyway to access my main script
just like it's done for the wrapper ?

thanks for your answer,
Jerome





Peter Cock a écrit :

On Mon, Jun 6, 2011 at 2:45 PM, Mariette  wrote:
  

Hi everyone,

I'm new in galaxy and I want to create a component, so I have multiple
questions.
The component executes a script which takes different formats :
fasta|fastq|sff. As output it takes a folder, to do so I used the
extra_files_path attribute of an output data
(--out='$output.extra_files_path'). The result file is stored in this folder
with the log file and should be in the same format as the input one.
I wrote the xml file and it works just fine, however as it's a folder there
is no way to use the result file(s) for further analysis. How can I manage
this ?



I use a wrapper script which moves the output file from the sub-directory
to the location Galaxy requested.

Regarding the file format, if you only have one input file you can use
format="input", otherwise use the change_format tag in the XML.

  

Also it can happen that there is more than 1 file outputted, how can I
manage multiple outputs ?

An other question about the input format, I have an option to the script to
specify the format. I saw there is auto-format detection routines in galaxy,
there is a way so I can call them to automatically complete this option ?



Normally the wrapper specifies the output format explicitly.

Peter
___
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:

  http://lists.bx.psu.edu/
  


___
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:

 http://lists.bx.psu.edu/


Re: [galaxy-dev] Components

2011-06-07 Thread Mariette


I can only see the usage of the  tag into the 
to change format, is that correct ?

I tryed :
 
   
  
  format="interval"/>

  
 

but even if the option is not selected, I have 2 outputs !

Am I missing something with the  tag ? Because it looks to me
that it is pretty limited to the change_format tag, isn't it ?

thx for your answers,
Jerome




Peter Cock a écrit :

On Tue, Jun 7, 2011 at 10:56 AM, Mariette  wrote:
  

Thanks for the answer,
Still considering the number of outputed files problem. In my script I know
that if
a cleaning option is set 2 other files will be created, so I check if the
option is asked by the
user and try this :

 
  
  #if $clean_pairends.clean_pairends_select=="y":
  
  #end if
 

but this is not working ... there is a way to do what I want ?
thx
Jerome



The #if stuff is Cheetah syntax, and only applies within the 
tag - not to the XML file in general.

You probably want a conditional output using , see:
https://bitbucket.org/galaxy/galaxy-central/wiki/ToolConfigSyntax

Peter

___
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:

  http://lists.bx.psu.edu/
  


___
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:

 http://lists.bx.psu.edu/


Re: [galaxy-dev] Components

2011-06-07 Thread Mariette


Thanks this is what I was looking for !!
I succeded to make it work when checking the value on a simple param 
using the name like this



label="Quality reads file (if input is a fasta)" />


...


 qual_file != None



however when I'm in a conditional tag like this, I tryed :





  Yes
  No


  value="70" label="Minimal length between the spacer and the read 
extremity"/>
  label="Limit of missmatch"/>

 
 
 


...


  clean_pairends.clean_pairends_select == "y"



but it's not working ... it looks like between filter tag I should 
provide a python test, am I missing something ?

thx,
Jerome



Peter Cock a écrit :

On Tue, Jun 7, 2011 at 11:38 AM, Mariette  wrote:
  

I can only see the usage of the  tag into the 
to change format, is that correct ?




On re-reading the wiki page, yes, I think you are right. I should have
said  with , as in tools/filters/sff_extractor.xml

Peter
___
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:

  http://lists.bx.psu.edu/
  


___
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:

 http://lists.bx.psu.edu/


[galaxy-dev] Components

2011-06-06 Thread Mariette

Hi everyone,

I'm new in galaxy and I want to create a component, so I have multiple 
questions.
The component executes a script which takes different formats : 
fasta|fastq|sff. As output it takes a folder, to do so I used the 
extra_files_path attribute of an output data 
(--out='$output.extra_files_path'). The result file is stored in this 
folder with the log file and should be in the same format as the input one.
I wrote the xml file and it works just fine, however as it's a folder 
there is no way to use the result file(s) for further analysis. How can 
I manage this ?
Also it can happen that there is more than 1 file outputted, how can I 
manage multiple outputs ?


An other question about the input format, I have an option to the script 
to specify the format. I saw there is auto-format detection routines in 
galaxy, there is a way so I can call them to automatically complete this 
option ?


thx,
Jerome
___
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:

 http://lists.bx.psu.edu/