comparison helixer.xml @ 0:1b08e39cc52d draft

planemo upload for repository https://github.com/genouest/galaxy-tools/tree/master/tools/helixer commit 8f0b5d30f8f5daea0f6c03293c8593ac24d9e1b7
author genouest
date Wed, 28 Jun 2023 08:39:38 +0000
parents
children 7bc75dd0f782
comparison
equal deleted inserted replaced
-1:000000000000 0:1b08e39cc52d
1 <?xml version="1.0"?>
2 <tool id="helixer" name="Helixer" version="@TOOL_VERSION@" profile="21.05">
3 <description>gene calling</description>
4 <macros>
5 <import>macros.xml</import>
6 </macros>
7
8 <requirements>
9 <expand macro="requirements" />
10 </requirements>
11
12 <command detect_errors="exit_code"><![CDATA[
13 ## Not in $PATH in the docker image
14 ## Manage models with a data manager?
15 /usr/local/bin/fetch_helixer_models.py
16
17 &&
18
19 Helixer.py
20 --fasta-path '$input'
21 --species '$species'
22 --lineage $lineage.lineages
23 --gff-output-path '$output'
24
25 --temporary-dir ./
26
27 --subsequence-length $lineage.subsequence_length
28 #if str($lineage.option_overlap.use_overlap) == "true":
29 --overlap-offset $lineage.option_overlap.overlap_offset
30 --overlap-core-length $lineage.option_overlap.overlap_core_length
31 #else:
32 --no-overlap
33 #end if
34
35 --window-size $post_processing.window_size
36 --min-coding-length $post_processing.min_coding_length
37 --edge-threshold $post_processing.edge_threshold
38 --peak-threshold $post_processing.peak_threshold
39 ]]></command>
40
41 <inputs>
42 <param argument="--fasta-path" name="input" type="data" format="fasta,fasta.gz" label="Genomic sequence"></param>
43 <conditional name="lineage">
44 <param argument="--lineage" name="lineages" type="select" label="Available lineages" help="Choose the model to use for the annotation">
45 <option value="land_plant">land plant</option>
46 <option value="vertebrate">vertebrate</option>
47 <option value="invertebrate">invertebrate</option>
48 <option value="fungi">fungi</option>
49 </param>
50 <when value="land_plant">
51 <expand macro="subseq" length="106920" offset="53460" offsetlen="80190" />
52 </when>
53 <when value="vertebrate">
54 <expand macro="subseq" length="213840" offset="106920" offsetlen="160380" />
55 </when>
56 <when value="invertebrate">
57 <expand macro="subseq" length="213840" offset="106920" offsetlen="160380" />
58 </when>
59 <when value="fungi">
60 <expand macro="subseq" length="21384" offset="10692" offsetlen="16038" />
61 </when>
62 </conditional>
63 <param argument="--species" type="text" optional="true" label="Species name">
64 <sanitizer invalid_char="">
65 <valid initial="string.letters,string.digits">
66 <add value="_" />
67 </valid>
68 </sanitizer>
69 <validator type="regex">[0-9a-zA-Z_]+</validator>
70 </param>
71
72 <section name="post_processing" title="Post-processing">
73 <param argument="--window-size" type="integer" min="0" value="100" label="Window size" help="This determines the number of bases averaged during the sliding window approach"/>
74 <param argument="--edge-threshold" type="float" min="0" max="1" value="0.1" label="Edge threshold" help="This threshold specifies the genic score which defines the start / end boundaries of each candidate region"/>
75 <param argument="--peak-threshold" type="float" min="0" max="1" value="0.8" label="Peak threshold" help="This threshold specifies the minimum peak genic score required to accept the candidate region"/>
76 <param argument="--min-coding-length" type="integer" min="0" value="100" label="Minimum coding length"/>
77 </section>
78 </inputs>
79
80 <outputs>
81 <data name="output" format="gff3">
82 </data>
83 </outputs>
84 <tests>
85 <!-- Test for land_plant -->
86 <test expect_num_outputs="1">
87 <param name="input" value="sequence.fasta"/>
88 <conditional name="lineage">
89 <param name="lineages" value="land_plant"/>
90 </conditional>
91 <output name="output" value="output.gff3" ftype="gff3" lines_diff="2" />
92 </test>
93 <test expect_num_outputs="1">
94 <!-- Test for species -->
95 <param name="input" value="sequence.fasta"/>
96 <param name="species" value="Arabidopsis"/>
97 <conditional name="lineage">
98 <param name="lineages" value="land_plant"/>
99 </conditional>
100 <output name="output" value="ouput_species.gff3" ftype="gff3" lines_diff="2" />
101 </test>
102 </tests>
103
104
105 <help><![CDATA[
106 Helixer_: Gene calling with Deep Neural Networks.
107
108 .. _Helixer: https://github.com/weberlab-hhu/Helixer
109 ]]></help>
110 <expand macro="citation"></expand>
111 </tool>