comparison hyphy_gard.xml @ 25:1fb98a84e86d draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 3908306ffa6f6cbc7b83303b2d4c581406d2fad9"
author iuc
date Tue, 27 Apr 2021 18:05:30 +0000
parents a0731e81e0c2
children 45d39a499816
comparison
equal deleted inserted replaced
24:4755f52427c4 25:1fb98a84e86d
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 <tool id="hyphy_gard" name="HyPhy-GARD" version="@VERSION@+galaxy0" profile="19.09"> 2 <tool id="hyphy_gard" name="HyPhy-GARD" version="@VERSION@+galaxy1" profile="19.09">
3 <description>Genetic Algorithm for Recombination Detection</description> 3 <description>Genetic Algorithm for Recombination Detection</description>
4 <macros> 4 <macros>
5 <import>macros.xml</import> 5 <import>macros.xml</import>
6 <token name="@OPERATION@">GARD</token>
7 <token name="@operation@">gard</token>
8 </macros> 6 </macros>
9 <expand macro="requirements"/> 7 <expand macro="requirements"/>
10 <command detect_errors="exit_code"><![CDATA[ 8 <command detect_errors="exit_code"><![CDATA[
11 ln -s '$input_file' input.$input_file.extension && 9 ln -s '$input_file' input.$input_file.extension &&
12 #set $input_file = 'input.%s' % $input_file.extension 10 #set $input_file = 'input.%s' % $input_file.extension
18 #elif str($datatype.value) == 'amino-acid': 16 #elif str($datatype.value) == 'amino-acid':
19 --model '$datatype.model' 17 --model '$datatype.model'
20 #end if 18 #end if
21 #if str($rate_cond.rate): 19 #if str($rate_cond.rate):
22 --rv '$rate_cond.rate' 20 --rv '$rate_cond.rate'
23 --rate-classes '$rate_classes' 21 --rate-classes '$rate_cond.rate_classes'
24 #end if 22 #end if
25 --output '$translated' 23 --output '$translated'
26 --output-lf '$gard_output' 24 --output-lf '$gard_output'
27 > '$gard_log' 25 @ERRORS@
28 ;
29 @CATCH_ERROR@
30 ]]></command> 26 ]]></command>
31 <inputs> 27 <inputs>
32 <param name="input_file" type="data" format="fasta,fasta.gz,nex" label="Input FASTA or NEXUS file" /> 28 <param name="input_file" type="data" format="fasta,fasta.gz,nex" label="Input FASTA or NEXUS file" />
33 <conditional name="datatype"> 29 <conditional name="datatype">
34 <param argument="--type" name="value" type="select" label="Alignment kind"> 30 <param argument="--type" name="value" type="select" label="Alignment kind">
50 <option value="GDD">General Discrete</option> 46 <option value="GDD">General Discrete</option>
51 <option value="Gamma">Beta-Gamma</option> 47 <option value="Gamma">Beta-Gamma</option>
52 </param> 48 </param>
53 <when value=""/> 49 <when value=""/>
54 <when value="GDD"> 50 <when value="GDD">
55 <param argument="--rate-classes" name="rate_classes" type="integer" value="2" min="2" max="6" label="Rate classes" /> 51 <param argument="--rate-classes" type="integer" value="2" min="2" max="6" label="Rate classes" />
56 </when> 52 </when>
57 <when value="Gamma"> 53 <when value="Gamma">
58 <param argument="--rate-classes" name="rate_classes" type="integer" value="2" min="2" max="6" label="Rate classes" /> 54 <param argument="--rate-classes" type="integer" value="2" min="2" max="6" label="Rate classes" />
59 </when> 55 </when>
60 </conditional> 56 </conditional>
61 </inputs> 57 </inputs>
62 <outputs> 58 <outputs>
63 <data name="gard_log" format="txt"/>
64 <data name="gard_output" format="nex" /> 59 <data name="gard_output" format="nex" />
65 <data name="translated" format="hyphy_results.json" /> 60 <data name="translated" format="hyphy_results.json" />
66 </outputs> 61 </outputs>
67 <tests> 62 <tests>
68 <test> 63 <test>
69 <param name="input_file" ftype="fasta" value="gard-in1.fa"/> 64 <param name="input_file" ftype="fasta" value="gard-in1.fa"/>
70 <output name="gard_output" file="gard-out1.nex" compare="sim_size"/> 65 <output name="gard_output" file="gard-out1.nex" compare="sim_size"/>
66 <output name="translated" file="gard-out1.json" compare="sim_size"/>
71 </test> 67 </test>
72 </tests> 68 </tests>
73 <help><![CDATA[ 69 <help><![CDATA[
74 70
75 GARD : Genetic Algorithms for Recombination Detection. 71 GARD : Genetic Algorithms for Recombination Detection.