comparison macros.xml @ 0:24431ccf6352 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/amas commit 158ec0e635067d354c425baf14b95cb616fd93c4
author iuc
date Tue, 02 Dec 2025 09:26:59 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:24431ccf6352
1 <macros>
2 <token name="@TOOL_VERSION@">1.0</token>
3 <token name="@VERSION_SUFFIX@">0</token>
4 <token name="@PROFILE@">25.0</token>
5
6 <xml name="requirements">
7 <requirements>
8 <requirement type="package" version="@TOOL_VERSION@">amas</requirement>
9 </requirements>
10 </xml>
11
12 <xml name="version_command">
13 <version_command>python -c "import amas; print(amas.__version__)"</version_command>
14 </xml>
15
16 <token name="@SNIFF_INPUT_FORMAT@"><![CDATA[
17 #set $in_format = $input_files[0].ext
18 #if $in_format == 'nex'
19 #set $in_format = 'nexus'
20 #end if
21 ]]></token>
22
23 <token name="@CHECK_INTERLEAVED@"><![CDATA[
24 ## Check if inputs are interleaved
25 IN_FORMAT=\$(python '$__tool_directory__/check_interleaved.py'
26 #for $f in $input_files
27 '${f}'
28 #end for
29 --format '${in_format}') &&
30 ]]></token>
31
32 <token name="@SYMLINK_INPUTS@"><![CDATA[
33 ## Create symlinks with original filename for consistent tests
34 #for $f in $input_files
35 #set $safename_input = re.sub('[^\w\-_\.]', '_', $f.element_identifier)
36 ln -s '${f}' '${safename_input}';
37 #end for
38 ]]></token>
39
40 <token name="@INPUT_FILENAMES@"><![CDATA[
41 #for $f in $input_files
42 #set $safename_input = re.sub('[^\w\-_\.]', '_', $f.element_identifier)
43 '${safename_input}'
44 #end for
45 ]]></token>
46
47 <xml name="output_format" token_name="out_format" token_label="Format of the output file">
48 <param name="out_format" type="select" label="@LABEL@">
49 <option value="fasta">fasta</option>
50 <option value="phylip">phylip (sequential)</option>
51 <option value="phylip-int">phylip (interleaved)</option>
52 <option value="nexus">nexus (sequential)</option>
53 <option value="nexus-int">nexus (interleaved)</option>
54 </param>
55 </xml>
56
57 <xml name="data_type">
58 <param name="data_type" type="select" label="Data type">
59 <option value="aa">Protein alignments</option>
60 <option value="dna">Nucleotide alignments</option>
61 </param>
62 </xml>
63
64 <xml name="check_align">
65 <param argument="--check-align" type="boolean" label="Check if input sequences are aligned" checked="false" truevalue="--check-align" falsevalue="" />
66 </xml>
67
68 <!-- Galaxy doesn't currently detect whether PHYLIP or NEXUS format is interleaved/sequential; if implemented update here and assoc in subcommands -->
69 <xml name="collection_outputs" token_name="alignments" token_label="alignment files">
70 <collection name="@NAME@_fasta" type="list" label="${tool.name} on ${on_string}: fasta">
71 <discover_datasets pattern="(?P&lt;name&gt;.+-out\..+)" format="fasta" />
72 <filter>out_format == "fasta"</filter>
73 </collection>
74
75 <collection name="@NAME@_phylip" type="list" label="${tool.name} on ${on_string}: phylip">
76 <discover_datasets pattern="(?P&lt;name&gt;.+-out\..+)" format="phylip" />
77 <filter>out_format == "phylip" or out_format == "phylip-int"</filter>
78 </collection>
79
80 <collection name="@NAME@_nexus" type="list" label="${tool.name} on ${on_string}: nexus">
81 <discover_datasets pattern="(?P&lt;name&gt;.+-out\..+)" format="nex" />
82 <filter>out_format == "nexus" or out_format == "nexus-int"</filter>
83 </collection>
84 </xml>
85
86 <token name="@PARTITIONS_HELP@"><![CDATA[
87 **What is a partitions file?**
88
89 The partitions file maps each gene/locus to its position in the concatenated alignment. This is essential for downstream phylogenetic analyses (e.g., RAxML, IQ-TREE) that can apply different evolutionary models to different partitions.
90
91 **Example:**
92
93 If you concatenate three genes::
94
95 gene1.fasta (500 bp)
96 gene2.fasta (700 bp)
97 gene3.fasta (400 bp)
98
99 The partitions file (unspecified format) will contain::
100
101 gene1 = 1-500
102 gene2 = 501-1200
103 gene3 = 1201-1600
104
105 **Partition formats:**
106
107 - **Unspecified**
108
109 ::
110
111 gene1 = 1-500
112 gene2 = 501-1200
113
114 - **RAxML**
115
116 ::
117
118 DNA, gene1 = 1-500
119 DNA, gene2 = 501-1200
120
121 - **NEXUS**
122
123 ::
124
125 #NEXUS
126
127 Begin sets;
128 charset gene1 = 1-500;
129 charset gene2 = 501-1200;
130 End;
131 ]]></token>
132
133 <token name="@AMAS_SHARED_HELP@"><![CDATA[
134 **Sequential vs Interleaved Phylip Format**
135
136 - **Sequential**: Each complete sequence is written in order, one after another. Easier for programmatic parsing.
137
138 ::
139
140 4 60
141 Seq1 ATGCATGCATATGCATGCATATGCATGCAT...
142 Seq2 ATGCATGCATATGCATGCATATGCATGCAT...
143 Seq3 ATGCATGCATATGCATGCATATGCATGCAT...
144 Seq4 ATGCATGCATATGCATGCATATGCATGCAT...
145
146 - **Interleaved**: Sequences are written in aligned blocks, making it easier to visually compare positions across sequences.
147
148 ::
149
150 4 60
151 Seq1 ATGCATGCATATGCATGCAT
152 Seq2 ATGCATGCATATGCATGCAT
153 Seq3 ATGCATGCATATGCATGCAT
154 Seq4 ATGCATGCATATGCATGCAT
155
156 Seq1 ATGCATGCAT...
157 Seq2 ATGCATGCAT...
158 Seq3 ATGCATGCAT...
159 Seq4 ATGCATGCAT...
160
161 **About AMAS**
162
163 AMAS (Alignment manipulation and summary statistics) is designed for modern phylogenomics workflows involving hundreds of taxa and thousands of loci.
164
165 Source code and manual: https://github.com/marekborowiec/AMAS
166 ]]></token>
167
168 <xml name="citations">
169 <citations>
170 <citation type="doi">10.7717/peerj.1660</citation>
171 </citations>
172 </xml>
173 </macros>