Mercurial > repos > rnateam > mafft
comparison mafft.xml @ 3:a681631ccee6 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/mafft commit 3dadc4bd6bf2f20b34794c767dfc6d541031914c-dirty
author | rnateam |
---|---|
date | Thu, 18 Feb 2016 12:05:37 -0500 |
parents | d71e007323d4 |
children | f0606dfd5195 |
comparison
equal
deleted
inserted
replaced
2:d71e007323d4 | 3:a681631ccee6 |
---|---|
1 <tool id="rbc_mafft" name="MAFFT" version="7.221.1"> | 1 <tool id="rbc_mafft" name="MAFFT" version="7.221.3"> |
2 <description>Multiple alignment program for amino acid or nucleotide sequences</description> | 2 <description>Multiple alignment program for amino acid or nucleotide sequences</description> |
3 <requirements> | 3 <requirements> |
4 <requirement type="package" version="7.221">mafft</requirement> | 4 <requirement type="package" version="7.221">mafft</requirement> |
5 </requirements> | 5 </requirements> |
6 <stdio> | 6 <stdio> |
14 </version_command> | 14 </version_command> |
15 <command> | 15 <command> |
16 <![CDATA[ | 16 <![CDATA[ |
17 #if $cond_flavour.flavourType != 'custom' | 17 #if $cond_flavour.flavourType != 'custom' |
18 $cond_flavour.flavourType | 18 $cond_flavour.flavourType |
19 | |
19 #elif $cond_flavour.flavourType == 'custom' | 20 #elif $cond_flavour.flavourType == 'custom' |
20 ### full parameter options | 21 ### full parameter options |
21 mafft | 22 mafft |
23 $cond_flavour.distance_method | |
24 --ep $cond_flavour.ep | |
25 --retree $cond_flavour.retree | |
26 --maxiterate $cond_flavour.iterations | |
22 #end if | 27 #end if |
23 | 28 |
24 ## specify threads to use | 29 ## specify threads to use |
25 --thread \${GALAXY_SLOTS:-1} | 30 --thread \${GALAXY_SLOTS:-1} |
26 | 31 |
32 $datatype | |
33 --op $op | |
27 $adjustdirection | 34 $adjustdirection |
28 | 35 |
29 #if $outputFormat.value == 'clustalw' | 36 #if $matrix_condition.matrix == "BLOSUM" |
30 --clustalout | 37 --bl ${matrix_condition.BLOSUM} |
38 #elif $matrix_condition.matrix == "PAM" | |
39 --jtt ${matrix_condition.PAM} | |
31 #end if | 40 #end if |
32 | 41 |
33 $inputSequences > | 42 $reorder |
34 | 43 $getTree |
35 #if $outputFormat.value == 'fasta' | 44 $outputFormat |
36 $outputFasta | 45 $inputSequences > $outputAlignment; |
37 #elif $outputFormat.value == 'clustalw' | 46 |
38 $outputClustalW | 47 #if $getTree == "--treeout" |
48 mv ${inputSequences}.tree $outputTree; | |
39 #end if | 49 #end if |
40 ]]> | 50 ]]> |
41 </command> | 51 </command> |
42 <inputs> | 52 <inputs> |
43 <param name="inputSequences" type="data" format="fasta" label="Sequences to align" help="Amino acid or nucleotide sequences in FASTA format."/> | 53 <param name="inputSequences" type="data" format="fasta" label="Sequences to align" help="Amino acid or nucleotide sequences in FASTA format."/> |
54 <param name="datatype" type="select" label="Data type"> | |
55 <option value="">Auto detection</option> | |
56 <option value="--nuc">Nucleic acids</option> | |
57 <option value="--amino">Amino acids</option> | |
58 </param> | |
44 <conditional name="cond_flavour"> | 59 <conditional name="cond_flavour"> |
45 <param name="flavourType" type="select" label="MAFFT flavour" help="Run mafft with pre-defined input parameters. Specification of these parameters can be found in the help section."> | 60 <param name="flavourType" type="select" label="MAFFT flavour" help="Run mafft with pre-defined input parameters. Specification of these parameters can be found in the help section."> |
61 <option value="mafft --auto">auto</option> | |
46 <option value="mafft-fftns" selected="true">fftns</option> | 62 <option value="mafft-fftns" selected="true">fftns</option> |
47 <option value="mafft --auto">auto</option> | |
48 <option value="mafft-fftnsi">fftnsi</option> | 63 <option value="mafft-fftnsi">fftnsi</option> |
49 <option value="mafft-nwns">nwns</option> | 64 <option value="mafft-nwns">nwns</option> |
50 <option value="mafft-nwnsi">nwnsi</option> | 65 <option value="mafft-nwnsi">nwnsi</option> |
51 <option value="mafft-einsi">einsi</option> | 66 <option value="mafft-einsi">einsi</option> |
52 <option value="mafft-ginsi">ginsi</option> | 67 <option value="mafft-ginsi">ginsi</option> |
53 <option value="mafft-linsi">linsi</option> | 68 <option value="mafft-linsi">linsi</option> |
54 <option value="mafft-qinsi">qinsi</option> | 69 <option value="mafft-qinsi">qinsi</option> |
55 <option value="mafft-xinsi">xinsi</option> | 70 <option value="mafft-xinsi">xinsi</option> |
56 <!-- <option value="custom">Custom Parameters</option> this should trigger tweaking of all parameters --> | 71 <option value="custom">Custom Parameters</option> |
57 </param> | 72 </param> |
58 <when value="mafft-fftns"/> | 73 <when value="mafft-fftns"/> |
59 <when value="mafft --auto"/> | 74 <when value="mafft --auto"/> |
60 <when value="mafft-fftnsi"/> | 75 <when value="mafft-fftnsi"/> |
61 <when value="mafft-nwns"/> | 76 <when value="mafft-nwns"/> |
63 <when value="mafft-einsi"/> | 78 <when value="mafft-einsi"/> |
64 <when value="mafft-ginsi"/> | 79 <when value="mafft-ginsi"/> |
65 <when value="mafft-linsi"/> | 80 <when value="mafft-linsi"/> |
66 <when value="mafft-qinsi"/> | 81 <when value="mafft-qinsi"/> |
67 <when value="mafft-xinsi"/> | 82 <when value="mafft-xinsi"/> |
83 <when value="custom"> | |
84 <param name="distance_method" type="select" display="radio" label="Distance method" help="Distance method must be chosen regarding your data"> | |
85 <option value="--6merpair" selected="true">Shared 6mers distance (fastest)</option> | |
86 <option value="--globalpair">Global alignment (Needleman-Wunsch)</option> | |
87 <option value="--localpair">Local alignment (Smith-Waterman)</option> | |
88 <option value="--genafpair">Local, affine gap cost</option> | |
89 </param> | |
90 <param name="retree" type="integer" value="2" min="1" max="100" label="Guide tree is built this number of times in the progressive stage." help="Valid with 6mer distance" /> | |
91 <param name="iterations" type="integer" value="0" min="0" max="1000" label="Maximum number of iterations" help="1000 for maximum quality" /> | |
92 </when> | |
68 </conditional> | 93 </conditional> |
94 <param name="ep" type="float" value="0.123" label="Gap extend penalty" help="Offset value, which works like gap extension penalty, for group-to-group alignment. For E-INS-i, 0 is recommended to allow large gaps" /> | |
95 <param name="op" type="float" value="1.53" label="Gap opening penalty" help="1.53 default value" /> | |
69 <param name="adjustdirection" type="select" display="radio" label="Direction of nucleotide sequences" help="Generate reverse complement sequences, as necessary, and align them together with the remaining sequences"> | 96 <param name="adjustdirection" type="select" display="radio" label="Direction of nucleotide sequences" help="Generate reverse complement sequences, as necessary, and align them together with the remaining sequences"> |
70 <option value="--adjustdirection">adjust direction</option> | 97 <option value="--adjustdirection">adjust direction</option> |
71 <option value=" " selected="true">do not adjust direction</option> | 98 <option value=" " selected="true">do not adjust direction</option> |
99 </param> | |
100 <conditional name="matrix_condition"> | |
101 <param name="matrix" type="select" label="Matrix selection" display="radio" help="Usefull only for amino acids" > | |
102 <option value="">No matrix</option> | |
103 <option value="BLOSUM">BLOSUM</option> | |
104 <option value="PAM">PAM</option> | |
72 </param> | 105 </param> |
106 <when value=""/> | |
107 <when value="BLOSUM"> | |
108 <param name="BLOSUM" type="select" display="radio" label="Coefficient of the BLOSUM matrix"> | |
109 <option value="30">30</option> | |
110 <option value="45">45</option> | |
111 <option value="62" selected="true">62</option> | |
112 <option value="80">80</option> | |
113 </param> | |
114 </when> | |
115 <when value="PAM"> | |
116 <param name="PAM" type="integer" value="80" min="1" max="350" label="Coefficient of the PAM matrix" /> | |
117 </when> | |
118 </conditional> | |
119 <param name="reorder" type="boolean" truevalue="--reorder" falsevalue="" checked="False" label="Reorder output?" /> | |
120 <param name="getTree" type="boolean" truevalue="--treeout" falsevalue="" checked="False" label="Display alignment tree ?" /> | |
73 <param name="outputFormat" type="select" label="Output format" help="Either FASTA or ClustalW"> | 121 <param name="outputFormat" type="select" label="Output format" help="Either FASTA or ClustalW"> |
74 <option value="fasta" selected="true">FASTA</option> | 122 <option value="" selected="true">FASTA</option> |
75 <option value="clustalw">ClustalW</option> | 123 <option value="--clustalout">ClustalW</option> |
124 <option value="--phylipout">Phylip</option> | |
76 </param> | 125 </param> |
77 </inputs> | 126 </inputs> |
78 <outputs> | 127 <outputs> |
79 <data format="fasta" name="outputFasta" label="${tool.name} on ${on_string}"> | 128 <data format="fasta" name="outputAlignment" label="${tool.name} on ${on_string}"> |
80 <filter>outputFormat == 'fasta'</filter> | 129 <change_format> |
130 <when input="outputFormat" value="--clustalout" format="clustal"/> | |
131 <when input="outputFormat" value="--phylipout" format="phylip"/> | |
132 </change_format> | |
81 </data> | 133 </data> |
82 <data format="clustal" name="outputClustalW" label="${tool.name} on ${on_string}"> | 134 <data name="outputTree" format="txt" label="${tool.name} Guide Tree"> |
83 <filter>outputFormat == 'clustalw'</filter> | 135 <filter>getTree == True</filter> |
84 </data> | 136 </data> |
85 </outputs> | 137 </outputs> |
86 <tests> | 138 <tests> |
87 <test> | 139 <test> |
88 <param name="inputSequences" value="sample.fa"/> | 140 <param name="inputSequences" value="sample.fa"/> |
89 <param name="flavourType" value="mafft-fftns"/> | 141 <param name="flavourType" value="mafft-fftns"/> |
90 <param name="outputFormat" value="fasta"/> | 142 <param name="outputFormat" value=""/> |
91 <output name="outputFasta" ftype="fasta" file="mafft_fftns_result.aln"/> | 143 <output name="outputAlignment" ftype="fasta" file="mafft_fftns_result.aln"/> |
92 </test> | 144 </test> |
93 <test> | 145 <test> |
94 <param name="inputSequences" value="sample.fa"/> | 146 <param name="inputSequences" value="sample.fa"/> |
95 <param name="flavourType" value="mafft-nwns"/> | 147 <param name="flavourType" value="mafft-nwns"/> |
96 <param name="outputFormat" value="clustalw"/> | 148 <param name="outputFormat" value="--clustalout"/> |
97 <output name="outputClustalW" ftype="clustal" file="mafft_nwns_result.aln"/> | 149 <output name="outputAlignment" ftype="clustal" file="mafft_nwns_result.aln"/> |
98 </test> | 150 </test> |
99 </tests> | 151 </tests> |
100 <help> | 152 <help> |
101 <![CDATA[ | 153 <![CDATA[ |
102 **What it does** | 154 **What it does** |
156 | 208 |
157 --auto | 209 --auto |
158 Automatically selects an appropriate strategy from L-INS-i, FFT-NS-i and FFT-NS-2, according to data size. Default: off (always FFT-NS-2) | 210 Automatically selects an appropriate strategy from L-INS-i, FFT-NS-i and FFT-NS-2, according to data size. Default: off (always FFT-NS-2) |
159 --adjustdirection | 211 --adjustdirection |
160 Generate reverse complement sequences, as necessary, and align them together with the remaining sequences. In the case of protein alignment, these options are just ignored. | 212 Generate reverse complement sequences, as necessary, and align them together with the remaining sequences. In the case of protein alignment, these options are just ignored. |
213 --op | |
214 Gap opening penalty, default: 1.53 | |
215 --ep | |
216 Offset (works like gap extension penalty), default: 0.0 | |
217 --maxiterate | |
218 Maximum number of iterative refinement, default: 0 | |
219 --clustalout | |
220 Output: clustal format, default: fasta | |
221 --thread | |
222 Number of threads (if unsure, --thread -1) | |
223 --retree number | |
224 Guide tree is built number times in the progressive stage. Valid with 6mer distance. Default: 2 | |
161 ]]> | 225 ]]> |
162 </help> | 226 </help> |
163 <citations> | 227 <citations> |
164 <citation type="doi">10.1093/molbev/mst010</citation> | 228 <citation type="doi">10.1093/molbev/mst010</citation> |
165 </citations> | 229 </citations> |