comparison hal_halAlignmentDepth.xml @ 0:25489f7c4cff draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/haltools commit 6244b9d15a5ad97ae20191e2f8fbafe2050c3cac
author iuc
date Fri, 06 Feb 2026 10:35:39 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:25489f7c4cff
1 <tool id="hal_halalignmentdepth" name="halAlignmentDepth" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2 <description>makes a alignment depth wiggle plot for a genome</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="stdio"/>
8 <command detect_errors="aggressive"><![CDATA[
9 halAlignmentDepth
10 #if $genome.reference == 'custom':
11 $genome.noAncestors
12 #end if
13 #if $mode.export == 'sequence':
14 --refSequence '$mode.sequence'
15 #end if
16 --start $start
17 --length $length
18 ## --step $step ## Has a known bug https://github.com/ComparativeGenomicsToolkit/hal/issues/326
19 #if $filter.option == '--targetGenomes':
20 --targetGenomes '$filter.targetGenomes'
21 #else if $filter.option == '--rootGenome':
22 --rootGenome '$filter.rootGenome'
23 #end if
24 $countDupes
25 '$input_hal'
26 #if $genome.reference == 'custom':
27 '$genome.refGenome'
28 #else
29 "\"\"" ## Defaults to input HAL file's tree root
30 #end if
31 > '$out_file'
32 ]]></command>
33 <inputs>
34 <expand macro="input_hal"/>
35 <expand macro="params_conditional_refGenome"/>
36 <conditional name="mode">
37 <param name="export" type="select" label="Convert options">
38 <option value="default" selected="true">Convert full reference genome (default)</option>
39 <option value="sequence">Convert a reference sequence (--refSequence)</option>
40 </param>
41 <when value="default"/>
42 <when value="sequence">
43 <expand macro="params_sequence"/>
44 </when>
45 </conditional>
46 <expand macro="params_start"/>
47 <expand macro="params_length"/>
48 <conditional name="filter">
49 <param name="option" type="select" label="Genomes to include in the output">
50 <option value="" selected="true">All genomes (default)</option>
51 <option value="--targetGenomes">Specific target genomes (--targetGenomes)</option>
52 <option value="--rootGenome">Only genomes in the subtree to a root (--rootGenome)</option>
53 </param>
54 <when value=""/>
55 <when value="--targetGenomes">
56 <expand macro="params_targetGenomes"/>
57 </when>
58 <when value="--rootGenome">
59 <expand macro="params_rootGenome"/>
60 </when>
61 </conditional>
62 <param argument="--countDupes" type="boolean" truevalue="--countDupes" falsevalue="" checked="false" label="Count duplicates" help="Count every aligned position instead of counting unique genomes. This includes paralogous matches, so a genome can be counted multiple times. This will give the height of the MAF column created with hal2maf"/>
63 </inputs>
64 <outputs>
65 <data name="out_file" format="wig" label="${tool.name} on ${on_string}"/>
66 </outputs>
67 <tests>
68 <test expect_num_outputs="1">
69 <param name="input_hal" value="halTest.hal"/>
70 <output name="out_file" ftype="wig">
71 <assert_contents>
72 <has_line line="fixedStep chrom=Genome_0_seq start=1 step=1"/>
73 <has_line line="3"/>
74 <has_line line="0"/>
75 <has_n_lines n="1759"/>
76 </assert_contents>
77 </output>
78 </test>
79 <test expect_num_outputs="1">
80 <param name="input_hal" value="halTest.hal"/>
81 <conditional name="mode">
82 <param name="export" value="sequence"/>
83 <param name="sequence" value="Genome_0_seq"/>
84 </conditional>
85 <param name="start" value="10"/>
86 <param name="length" value="50"/>
87 <output name="out_file" ftype="wig">
88 <assert_contents>
89 <has_line line="fixedStep chrom=Genome_0_seq start=11 step=1"/>
90 <has_line line="3"/>
91 <has_n_lines n="51"/>
92 </assert_contents>
93 </output>
94 </test>
95 <test expect_num_outputs="1">
96 <param name="input_hal" value="halTest.hal"/>
97 <param name="countDupes" value="true"/>
98 <output name="out_file" ftype="wig">
99 <assert_contents>
100 <has_line line="fixedStep chrom=Genome_0_seq start=1 step=1"/>
101 <has_line line="5"/>
102 <has_line line="10"/>
103 <has_line line="0"/>
104 <has_n_lines n="1759"/>
105 </assert_contents>
106 </output>
107 </test>
108 <test expect_num_outputs="1">
109 <param name="input_hal" value="halTest.hal"/>
110 <conditional name="filter">
111 <param name="option" value="--targetGenomes"/>
112 <param name="targetGenomes" value="Genome_1,Genome_2"/>
113 </conditional>
114 <output name="out_file" ftype="wig">
115 <assert_contents>
116 <has_line line="fixedStep chrom=Genome_0_seq start=1 step=1"/>
117 <has_line line="2"/>
118 <has_line line="0"/>
119 <has_n_lines n="1759"/>
120 </assert_contents>
121 </output>
122 </test>
123 <test expect_num_outputs="1">
124 <param name="input_hal" value="halTest.hal"/>
125 <conditional name="genome">
126 <param name="reference" value="custom"/>
127 <param name="refGenome" value="Genome_1"/>
128 <param name="noAncestors" value="true"/>
129 </conditional>
130 <output name="out_file" ftype="wig">
131 <assert_contents>
132 <has_line line="fixedStep chrom=Genome_1_seq start=1 step=1"/>
133 <has_line line="2"/>
134 <has_line line="0"/>
135 <has_n_lines n="5473"/>
136 </assert_contents>
137 </output>
138 </test>
139 </tests>
140 <help><![CDATA[
141 halAlignmentDepth computes alignment depth across a reference genome from a HAL alignment.
142 The tool reports, for each base, how many genomes it aligns to.
143 By default, each genome is counted once per position, including ancestral genomes.
144 The result is written as a wiggle track.
145 ]]></help>
146 <expand macro="citation"/>
147 <expand macro="creator"/>
148 </tool>