Re: [galaxy-dev] question about error output

2015-04-16 Thread John Chilton
Two things - if you really want to just hide standard output - you can
use the XML CDATA idiom to eliminate the need for escaping < and >.





I think this is a saner default and I would just add this block to all
new tools.

You may want to check out the planemo tool builder - it will bootstrap
new tool definitions that do both of these (use CDATA for the command
and set a default stdio).

http://planemo.readthedocs.org/en/latest/writing_standalone.html

Hope this helps.

-John


On Thu, Apr 16, 2015 at 6:55 AM, Roberto Alonso CIPF  wrote:
> Hello,
>
> I am defining some tools for my own galaxy installation and I would like to
> know if there is a more elegant solution for redirecting error output than
> the one in the next config file:
>
> 
>   calling with gatk
>   
>   ln -s "${input}" input.bam ;
>   samtools index input.bam;
>   java -jar
> /home/ralonso/software/GenomeAnalysisTK-3.3-0/GenomeAnalysisTK.jar -T
> UnifiedGenotyper -R
> /home/ralonso/BiB/Galaxy/data/Cclementina_v1.0_scaffolds.fa -I input.bam -o
> $output 2>/dev/null;
>   
>
>   
> 
>   
>   
>   
>   
>
>   
>   bwa
>   
>
> 
>
> Best regards
>
> many thanks
>
> --
> Roberto Alonso
> Functional Genomics Unit
> Bioinformatics and Genomics Department
> Prince Felipe Research Center (CIPF)
> C./Eduardo Primo Yúfera (Científic), nº 3
> (junto Oceanografico)
> 46012 Valencia, Spain
> Tel: +34 963289680 Ext. 1021
> Fax: +34 963289574
> E-Mail: ralo...@cipf.es
>
> ___
> 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/

[galaxy-dev] question about error output

2015-04-16 Thread Roberto Alonso CIPF
Hello,

I am defining some tools for my own galaxy installation and I would like to
know if there is a more elegant solution for redirecting error output than
the one in the next config file:


  calling with gatk
  
  ln -s "${input}" input.bam ;
  samtools index input.bam;
  java -jar
/home/ralonso/software/GenomeAnalysisTK-3.3-0/GenomeAnalysisTK.jar -T
UnifiedGenotyper -R
/home/ralonso/BiB/Galaxy/data/Cclementina_v1.0_scaffolds.fa -I input.bam -o
$output *2>/dev/null;*
  

  

  
  
  
  

  
  bwa
  



Best regards

many thanks

-- 
Roberto Alonso
Functional Genomics Unit
Bioinformatics and Genomics Department
Prince Felipe Research Center (CIPF)
C./Eduardo Primo Yúfera (Científic), nº 3
(junto Oceanografico)
46012 Valencia, Spain
Tel: +34 963289680 Ext. 1021
Fax: +34 963289574
E-Mail: ralo...@cipf.es
___
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/