|
1 | 1 | <?xml version="1.0"?> |
2 | | -<tool id="helixer" name="Helixer" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> |
| 2 | +<tool id="helixer" name="Helixer" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05"> |
3 | 3 | <description>gene calling</description> |
4 | 4 | <macros> |
5 | 5 | <import>macros.xml</import> |
|
12 | 12 | </requirements> |
13 | 13 |
|
14 | 14 | <command detect_errors="exit_code"><![CDATA[ |
15 | | - /usr/local/bin/fetch_helixer_models.py && |
16 | | - Helixer.py |
17 | | - --fasta-path '$input' |
18 | | - --species '$species' |
19 | | - --gff-output-path '$output' |
20 | | - --temporary-dir ./ |
21 | 15 |
|
22 | | - #set default_subsequence_length = {"fungi": 21384, "land_plant": 106920, "invertebrate": 213840, "vertebrate": 213840} |
23 | | - #set subsequence_len = default_subsequence_length.get(str($lineages)) |
24 | | - #set default_overlap_offset = {"fungi": 10692, "land_plant": 53460, "invertebrate": 106920, "vertebrate": 106920} |
25 | | - #set overlap_off = default_overlap_offset.get(str($lineages)) |
26 | | - #set default_overlap_core_length = {"fungi": 16038, "land_plant": 80190, "invertebrate": 160380, "vertebrate": 160380} |
27 | | - #set overlap_core_len = default_overlap_core_length.get(str($lineages)) |
| 16 | + /usr/local/bin/fetch_helixer_models.py && |
28 | 17 |
|
29 | | - #if str($input_model) != "" and str($input_model) != "None": |
30 | | - --model-filepath '$input_model' |
31 | | - --subsequence-length '$subsequence_length' |
| 18 | + Helixer.py |
| 19 | + --fasta-path '$input' |
| 20 | + --species '$species' |
| 21 | + --gff-output-path '$output' |
| 22 | +
|
| 23 | + #set default_subsequence_length = {"fungi": 21384, "land_plant": 106920, "invertebrate": 213840, "vertebrate": 213840} |
| 24 | + #set subsequence_len = default_subsequence_length.get(str($lineages)) |
| 25 | + #set default_overlap_offset = {"fungi": 10692, "land_plant": 53460, "invertebrate": 106920, "vertebrate": 106920} |
| 26 | + #set overlap_off = default_overlap_offset.get(str($lineages)) |
| 27 | + #set default_overlap_core_length = {"fungi": 16038, "land_plant": 80190, "invertebrate": 160380, "vertebrate": 160380} |
| 28 | + #set overlap_core_len = default_overlap_core_length.get(str($lineages)) |
32 | 29 | |
33 | | - #else: |
34 | | - --lineage '$lineages' |
35 | | - #if str($subsequence_length) == "": |
36 | | - --subsequence-length '$subsequence_len' |
37 | | - #else: |
| 30 | + #if str($input_model) != "" and str($input_model) != "None": |
| 31 | + --model-filepath '$input_model' |
38 | 32 | --subsequence-length '$subsequence_length' |
39 | | - #end if |
40 | | -
|
41 | | - #if str($option_overlap.use_overlap) == "true": |
42 | | - #if str($option_overlap.overlap_offset) == "": |
43 | | - --overlap-offset '$overlap_off' |
| 33 | + |
| 34 | + #else: |
| 35 | + --lineage '$lineages' |
| 36 | + #if str($subsequence_length) == "": |
| 37 | + --subsequence-length '$subsequence_len' |
44 | 38 | #else: |
45 | | - --overlap-offset '$overlap_offset' |
| 39 | + --subsequence-length '$subsequence_length' |
46 | 40 | #end if |
47 | | -
|
48 | | - #if str($option_overlap.overlap_core_length) == "": |
49 | | - --overlap-core-length '$overlap_core_len' |
50 | | - #else: |
51 | | - --overlap-core-length '$overlap_core_length' |
| 41 | + #if str($option_overlap.use_overlap) == "true": |
| 42 | + #if str($option_overlap.overlap_offset) == "": |
| 43 | + --overlap-offset '$overlap_off' |
| 44 | + #else: |
| 45 | + --overlap-offset '$overlap_offset' |
| 46 | + #end if |
| 47 | + #if str($option_overlap.overlap_core_length) == "": |
| 48 | + --overlap-core-length '$overlap_core_len' |
| 49 | + #else: |
| 50 | + --overlap-core-length '$overlap_core_length' |
| 51 | + #end if |
52 | 52 | #end if |
53 | 53 | #end if |
54 | | - #end if |
55 | | -
|
56 | | - --batch-size $size |
57 | | - --window-size $post_processing.window_size |
58 | | - --min-coding-length $post_processing.min_coding_length |
59 | | - --edge-threshold $post_processing.edge_threshold |
60 | | - --peak-threshold $post_processing.peak_threshold |
61 | | -
|
| 54 | + |
| 55 | + --batch-size $size |
| 56 | + --window-size $post_processing.window_size |
| 57 | + --min-coding-length $post_processing.min_coding_length |
| 58 | + --edge-threshold $post_processing.edge_threshold |
| 59 | + --peak-threshold $post_processing.peak_threshold |
| 60 | + |
| 61 | + #if $write_by: |
| 62 | + --write-by $write_by |
| 63 | + #end if |
| 64 | + |
| 65 | + #if $no_multiprocess == "true": |
| 66 | + --no-multiprocess |
| 67 | + #end if |
| 68 | + |
62 | 69 | ]]></command> |
63 | 70 |
|
64 | 71 | <inputs> |
65 | 72 | <param argument="--fasta-path" name="input" type="data" format="fasta,fasta.gz" label="Genomic sequence"></param> |
66 | 73 | <param argument="--model-filepath" optional="true" name="input_model" type="data" format="h5" label="Lineage model" help="Import your lineage model to replace the default lineage. Please enter a value for the --subsequence_length parameter."></param> |
| 74 | + |
67 | 75 | <param argument="--lineage" name="lineages" type="select" label="Available lineages" help="Choose the model to use for the annotation"> |
68 | 76 | <option value="land_plant">land plant</option> |
69 | 77 | <option value="vertebrate">vertebrate</option> |
|
100 | 108 | </when> |
101 | 109 | <when value="false"/> |
102 | 110 | </conditional> |
| 111 | + <param name="write_by" type="integer" value="20000000" optional="true" label="Number of base pairs per super-chunk" help="For lower memory consumption, consider setting a lower number. Please note that this value must be greater than or equal to « --subsequence-length »"/> |
| 112 | + <param name="no_multiprocess" type="boolean" truevalue="--no_multiprocess" falsevalue="" checked="false" label="Do you want to disable multiprocessing?" help="By disabling it, you will reduce RAM consumption. You can do this especially on small genomes."/> |
103 | 113 | </inputs> |
104 | 114 |
|
105 | 115 | <outputs> |
|
110 | 120 | <test expect_num_outputs="1"> |
111 | 121 | <!-- Test for species and land_plant--> |
112 | 122 | <param name="input" value="sequence.fasta"/> |
113 | | - <param name="lineages" value="land_plant"/> |
| 123 | + <param name="lineages" value="vertebrate"/> |
114 | 124 | <param name="species" value="Arabidopsis"/> |
115 | 125 | <param name="size" value="8"/> |
116 | 126 | <param name="subsequence_length" value=""/> |
|
125 | 135 | <param name="overlap_offset" value=""/> |
126 | 136 | <param name="overlap_core_length" value=""/> |
127 | 137 | </conditional> |
128 | | - <output name="output" value="ouput_species.gff3" ftype="gff3" compare="sim_size" delta="100"/> |
| 138 | + <output name="output" value="ouput_species.gff3" ftype="gff3" compare="sim_size" delta="10000"/> |
129 | 139 | </test> |
130 | 140 |
|
131 | 141 | <test expect_num_outputs="1"> |
|
148 | 158 | </conditional> |
149 | 159 | <output name="output" value="vertebrate.gff3" ftype="gff3" lines_diff="2"/> |
150 | 160 | </test> |
151 | | - |
152 | | - <test expect_failure="true"> |
153 | | - <!-- Test for model-filepath --> |
154 | | - <param name="input" value="sequence.fasta"/> |
155 | | - <param name="input_model" value="test.h5"/> |
156 | | - <param name="size" value="8"/> |
157 | | - <param name="size" value="8"/> |
158 | | - <param name="subsequence_length" value="1000"/> |
159 | | - <section name="post_processing"> |
160 | | - <param name="window_size" value="100"/> |
161 | | - <param name="edge_threshold" value="0.1"/> |
162 | | - <param name="peak_threshold" value="0.8"/> |
163 | | - <param name="min_coding_length" value="100"/> |
164 | | - </section> |
165 | | - <conditional name="option_overlap"> |
166 | | - <param name="use_overlap" value="true"/> |
167 | | - <param name="overlap_offset" value=""/> |
168 | | - <param name="overlap_core_length" value=""/> |
169 | | - </conditional> |
170 | | - </test> |
171 | 161 | </tests> |
172 | 162 |
|
173 | 163 | <help><![CDATA[ |
|
0 commit comments