Skip to content

Commit 04e19d1

Browse files
authored
Merge pull request #60 from rlibouba/update_helixer_036
Helixer update (version 0.3.6)
2 parents 43caacb + 5023f87 commit 04e19d1

2 files changed

Lines changed: 56 additions & 68 deletions

File tree

tools/helixer/helixer.xml

Lines changed: 52 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?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">
33
<description>gene calling</description>
44
<macros>
55
<import>macros.xml</import>
@@ -12,58 +12,66 @@
1212
</requirements>
1313

1414
<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 ./
2115
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 &&
2817
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))
3229
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'
3832
--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'
4438
#else:
45-
--overlap-offset '$overlap_offset'
39+
--subsequence-length '$subsequence_length'
4640
#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
5252
#end if
5353
#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+
6269
]]></command>
6370

6471
<inputs>
6572
<param argument="--fasta-path" name="input" type="data" format="fasta,fasta.gz" label="Genomic sequence"></param>
6673
<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+
6775
<param argument="--lineage" name="lineages" type="select" label="Available lineages" help="Choose the model to use for the annotation">
6876
<option value="land_plant">land plant</option>
6977
<option value="vertebrate">vertebrate</option>
@@ -100,6 +108,8 @@
100108
</when>
101109
<when value="false"/>
102110
</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."/>
103113
</inputs>
104114

105115
<outputs>
@@ -110,7 +120,7 @@
110120
<test expect_num_outputs="1">
111121
<!-- Test for species and land_plant-->
112122
<param name="input" value="sequence.fasta"/>
113-
<param name="lineages" value="land_plant"/>
123+
<param name="lineages" value="vertebrate"/>
114124
<param name="species" value="Arabidopsis"/>
115125
<param name="size" value="8"/>
116126
<param name="subsequence_length" value=""/>
@@ -125,7 +135,7 @@
125135
<param name="overlap_offset" value=""/>
126136
<param name="overlap_core_length" value=""/>
127137
</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"/>
129139
</test>
130140

131141
<test expect_num_outputs="1">
@@ -148,26 +158,6 @@
148158
</conditional>
149159
<output name="output" value="vertebrate.gff3" ftype="gff3" lines_diff="2"/>
150160
</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>
171161
</tests>
172162

173163
<help><![CDATA[

tools/helixer/macros.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<macros>
2-
<token name="@TOOL_VERSION@">0.3.3</token>
3-
<token name="@VERSION_SUFFIX@">1</token>
2+
<token name="@TOOL_VERSION@">0.3.6</token>
3+
<token name="@VERSION_SUFFIX@">0</token>
44

55

66
<xml name="citation">
@@ -11,8 +11,6 @@
1111
</xml>
1212

1313
<xml name="requirements">
14-
<container type="docker">gglyptodon/helixer-docker:helixer_v@TOOL_VERSION@_cuda_11.8.0-cudnn8</container>
14+
<container type="docker">gglyptodon/helixer-docker:helixer_v@TOOL_VERSION@_cuda_12.2.2-cudnn8_1</container>
1515
</xml>
16-
17-
</macros>
18-
16+
</macros>

0 commit comments

Comments
 (0)