Mercurial > repos > iuc > quicktree
comparison quicktree.xml @ 0:1e89a460d1bd draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/quicktree commit ba1e44dfaf0a986252e2fef60a831b819647f25e
| author | iuc |
|---|---|
| date | Mon, 25 Nov 2024 13:13:10 +0000 |
| parents | |
| children | 5c2ac7f640ab |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:1e89a460d1bd |
|---|---|
| 1 <tool id="quicktree" name="Quicktree" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01"> | |
| 2 <description></description> | |
| 3 <macros> | |
| 4 <token name="@TOOL_VERSION@">2.5</token> | |
| 5 <token name="@VERSION_SUFFIX@">0</token> | |
| 6 </macros> | |
| 7 <edam_topics> | |
| 8 <edam_topic>topic_3293</edam_topic> <!-- phylogenetics --> | |
| 9 </edam_topics> | |
| 10 <edam_operations> | |
| 11 <edam_operation>operation_0540</edam_operation> <!-- Phylogenetic inference (from molecular sequences) --> | |
| 12 </edam_operations> | |
| 13 <requirements> | |
| 14 <requirement type="package" version="@TOOL_VERSION@">quicktree</requirement> | |
| 15 <requirement type="package" version="3.4">hmmer</requirement> <!-- for file conversion with esl-reformat--> | |
| 16 </requirements> | |
| 17 <version_command>quicktree -v</version_command> | |
| 18 <command detect_errors="exit_code"><![CDATA[ | |
| 19 | |
| 20 ## convert alignment to stockholm before quicktree if needed | |
| 21 #if $input_type.format == "align" | |
| 22 esl-reformat -o input.quicktree stockholm '$input_file' ##--informat a2m | |
| 23 #else | |
| 24 ln -s '$input_file' input.quicktree | |
| 25 #end if | |
| 26 | |
| 27 && | |
| 28 | |
| 29 quicktree | |
| 30 #if $input_type.format =="align" | |
| 31 -in a | |
| 32 #else | |
| 33 -in m | |
| 34 #end if | |
| 35 #if $output_type == 'tree_out' | |
| 36 -out t | |
| 37 #else | |
| 38 -out m | |
| 39 #end if | |
| 40 $upgma | |
| 41 $kimura | |
| 42 #if $boot | |
| 43 -boot $boot | |
| 44 #end if | |
| 45 input.quicktree | |
| 46 > '$output_file' | |
| 47 | |
| 48 ]]></command> | |
| 49 <inputs> | |
| 50 <conditional name="input_type"> | |
| 51 <param name="format" type="select" label="Provide an alignment file or a distance matrix?"> | |
| 52 <option value="align">Alignment File</option> | |
| 53 <option value="dist">Distance Matrix</option> | |
| 54 </param> | |
| 55 <when value="align"> | |
| 56 <param name="input_file" type="data" format="fasta,stockholm,phylip,txt" label="Alignment file" /> | |
| 57 </when> | |
| 58 <when value="dist"> | |
| 59 <param name="input_file" type="data" format="mothur.dist,mothur.lower.dist,mothur.square.dist,txt" label="Distance Matrix" help="A distance matrix in phylip format (see help below for details). Can be a square distance matrix or a lower triangle distance matrix." /> | |
| 60 </when> | |
| 61 </conditional> | |
| 62 <param argument="-upgma" type="boolean" truevalue="-upgma" falsevalue="" checked="false" label="Use the UPGMA method to construct the tree" help="ignored for distance matrix outputs"/> | |
| 63 <param argument="-kimura" type="boolean" truevalue="-kimura" falsevalue="" checked="false" label="Use the kimura translation for pairwise distances" help="ignored for distance matrix outputs"/> | |
| 64 <param argument="-boot" type="integer" optional="true" min="0" label="Calcuate bootstrap values with n iterations" help="ignored for distance matrix outputs"/> | |
| 65 <param name="output_type" type="select" multiple="false" label="Choose output format"> | |
| 66 <option value="dist_out">Distance Matrix (Phylip format)</option> | |
| 67 <option value="tree_out" selected="true">Tree (Newick format)</option> | |
| 68 </param> | |
| 69 </inputs> | |
| 70 <outputs> | |
| 71 <data name="output_file" format="newick" label="${tool.name} on ${on_string}: stockholm format"> | |
| 72 <change_format> | |
| 73 <when input="output_type" value="dist_out" format="mothur.dist" /> | |
| 74 </change_format> | |
| 75 </data> | |
| 76 </outputs> | |
| 77 <tests> | |
| 78 <test expect_num_outputs="1"><!-- test 1: with fasta input (with reformat) --> | |
| 79 <param name="format" value="align"/> | |
| 80 <param name="input_file" value="example.009.AA.fasta" ftype="fasta"/> | |
| 81 <output name="output_file" file="example.009.AA.newick" ftype="newick"/> | |
| 82 </test> | |
| 83 <test expect_num_outputs="1"><!-- test 2: with stockholm input (no reformat)--> | |
| 84 <param name="format" value="align"/> | |
| 85 <param name="input_file" value="example.009.AA.stockholm" ftype="stockholm"/> | |
| 86 <output name="output_file" file="example.009.AA.newick" ftype="newick"/> | |
| 87 </test> | |
| 88 <test expect_num_outputs="1"><!-- test 3: with clustalw input --> | |
| 89 <param name="format" value="align"/> | |
| 90 <param name="input_file" value="example.011.AA.clw" ftype="txt"/> | |
| 91 <output name="output_file" file="example.011.AA.newick" ftype="newick"/> | |
| 92 </test> | |
| 93 <test expect_num_outputs="1"><!-- test 4: with phylip distance matrix input (lower triangle distance matrix) --> | |
| 94 <param name="format" value="dist"/> | |
| 95 <param name="input_file" value="example.001.AA.dist.lt.phy" ftype="mothur.dist"/> | |
| 96 <output name="output_file" file="example.001.AA.newick" ftype="newick"/> | |
| 97 </test> | |
| 98 <test expect_num_outputs="1"><!-- test 5: with phylip distance matrix input (square distance matrix) --> | |
| 99 <param name="format" value="dist"/> | |
| 100 <param name="input_file" value="example_dist_square_phylip.dist" ftype="mothur.dist"/> | |
| 101 <output name="output_file" file="example_dist_square_phylip.newick" ftype="newick"/> | |
| 102 </test> | |
| 103 <test expect_num_outputs="1"><!-- test 6: with phylip alignment input --> | |
| 104 <param name="format" value="align"/> | |
| 105 <param name="input_file" value="example.011.AA.phy" ftype="phylip"/> | |
| 106 <output name="output_file" file="example.011.AA.align.newick" ftype="newick"/> | |
| 107 </test> | |
| 108 <test expect_num_outputs="1"><!-- test 7: with distance matrix output --> | |
| 109 <param name="format" value="align"/> | |
| 110 <param name="input_file" value="example.009.AA.fasta" ftype="fasta"/> | |
| 111 <param name="output_type" value="dist_out"/> | |
| 112 <output name="output_file" file="example.009.AA.dist" ftype="mothur.dist"/> | |
| 113 </test> | |
| 114 <test expect_num_outputs="1"><!-- test 8: test with all parameters set --> | |
| 115 <param name="format" value="align"/> | |
| 116 <param name="input_file" value="example.011.AA.phy" ftype="phylip"/> | |
| 117 <param name="upgma" value="-upgma"/> | |
| 118 <param name="kimura" value="-kimura"/> | |
| 119 <param name="boot" value="100"/> | |
| 120 <output name="output_file" file="example.011.AA.align.params.newick" ftype="newick"/> | |
| 121 </test> | |
| 122 </tests> | |
| 123 <help><![CDATA[ | |
| 124 | |
| 125 .. class:: infomark | |
| 126 | |
| 127 **What it does** | |
| 128 | |
| 129 QuickTree is an efficient implementation of the Neighbor-Joining algorithm, capable of reconstructing phylogenies | |
| 130 from huge alignments in time less than the age of the universe. | |
| 131 | |
| 132 | |
| 133 **Input** | |
| 134 | |
| 135 QuickTree accepts both distance matrix and multiple-sequence-aligment inputs. The former should be in PHYLIP format. The latter should be in Stockholm format, which is the native alignment format for the Pfam database. | |
| 136 | |
| 137 Alignments can be supplied in various other formats (fasta, phylip, clustalw, pfam, psiblast, selex) and will be converted to Stockholm format with the esl-reformat program, | |
| 138 which is part of the HMMer package (hmmer.org). | |
| 139 | |
| 140 **Output** | |
| 141 | |
| 142 Quicktree will output either a distance matrix (in PHYLIP format, square distance matrix) or a Newick tree. | |
| 143 | |
| 144 | |
| 145 **File Formats** | |
| 146 | |
| 147 The **distance matrix** input should be in phylip format, it can be a square matrix or a lower triangle matrix. | |
| 148 The distance matrix output by quicktree will be a square matrix. | |
| 149 | |
| 150 Example square distance matrix in phylip format:: | |
| 151 | |
| 152 5 | |
| 153 Alpha 0.000 1.000 2.000 3.000 3.000 | |
| 154 Beta 1.000 0.000 2.000 3.000 3.000 | |
| 155 Gamma 2.000 2.000 0.000 3.000 3.000 | |
| 156 Delta 3.000 3.000 3.000 0.000 1.000 | |
| 157 Epsilon 3.000 3.000 3.000 1.000 0.000 | |
| 158 | |
| 159 Example of a lower triangle matrix:: | |
| 160 | |
| 161 7 | |
| 162 Mouse | |
| 163 Bovine 1.7043 | |
| 164 Lemur 2.0235 1.1901 | |
| 165 Orang 2.0593 1.2005 1.5356 | |
| 166 Gorilla 1.6664 1.3460 1.4577 1.5935 | |
| 167 Chimp 1.7320 1.3757 1.7803 1.7119 1.0635 | |
| 168 Human 1.7101 1.3956 1.6661 1.7599 1.0557 0.6933 | |
| 169 | |
| 170 | |
| 171 * For more details about the PHYLIP distance matrix format, see https://phylipweb.github.io/phylip/doc/distance.html | |
| 172 * For more details about the Newick output format, see https://phylipweb.github.io/phylip/newicktree.html | |
| 173 | |
| 174 | |
| 175 ]]></help> | |
| 176 <citations> | |
| 177 <citation type="doi">10.1093/oxfordjournals.molbev.a040454</citation> | |
| 178 </citations> | |
| 179 </tool> |
