annotate polypolish.xml @ 3:5f21f2cf1ede draft default tip

"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit c28f9849db4c6c3e666447d28f61cf98329898ec-dirty"
author thanhlv
date Fri, 23 Sep 2022 23:37:59 +0000
parents 96580cd76488
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
1 <tool id="polypolish" name="polypolish" version="@VERSION@">
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
2 <description> Polishing genome assemblies with short reads</description>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
3 <macros>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
4 <token name="@VERSION@">0.5.0</token>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
5 </macros>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
6 <requirements>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
7 <requirement type="package" version="@VERSION@">polypolish</requirement>
1
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
8 <!--<requirement type="package" version="1.15.1">samtools</requirement> -->
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
9 <requirement type="package" version="0.7.17">bwa</requirement>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
10 </requirements>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
11 <version_command>polypolish --version</version_command>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
12 <command detect_errors="exit_code"><![CDATA[
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
13 #if $short_reads.sr_type == 'paired'
1
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
14 ln -s '$short_reads.R1' reads_1.fastq.gz &&
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
15 ln -s '$short_reads.R2' reads_2.fastq.gz &&
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
16 #else if str($short_reads.sr_type) == "collection"
1
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
17 ln -s '$short_reads.input1.forward' reads_1.fastq.gz &&
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
18 ln -s '$short_reads.input1.reverse' reads_2.fastq.gz &&
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
19 #end if
1
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
20
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
21 ln -s '${assembly}' draft.fa &&
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
22 bwa index draft.fa &&
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
23 bwa mem -t \${GALAXY_SLOTS:-4} -a draft.fa reads_1.fastq.gz > alignments_1.sam &&
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
24 bwa mem -t \${GALAXY_SLOTS:-4} -a draft.fa reads_2.fastq.gz > alignments_2.sam &&
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
25 polypolish_insert_filter.py --in1 alignments_1.sam --in2 alignments_2.sam --out1 filtered_1.sam --out2 filtered_2.sam &&
1
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
26 polypolish
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
27 #if $debug
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
28 $debug debug.tsv
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
29 #end if
1
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
30 -d ${min_depth}
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
31 -i ${fraction_invalid}
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
32 -m ${max_errors}
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
33 -v ${fraction_valid}
1
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
34 draft.fasta filtered_1.sam filtered_2.sam
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
35 > polished.fasta
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
36 ]]> </command>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
37
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
38 <inputs>
1
a38f6a0ebbf9 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit f361210f97bf2dfa63c2267193eca3163e17f78a-dirty"
thanhlv
parents: 0
diff changeset
39 <param name="assembly" type="data" format="fastq,fastq.gz,fasta,fasta.gz" label="Assembly"/>
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
40 <conditional name="short_reads">
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
41 <param name="sr_type" type="select" label="Input reads type or collection" help="Select 'paired end' for a single library or 'collection' for a paired end collection">
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
42 <option value="paired" selected="true">Paired End</option>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
43 <option value="collection">Paired Collection</option>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
44 </param>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
45 <when value="paired">
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
46 <param name="R1" type="data" format="fastqsanger,fastqsanger.gz,fastqsanger.bz2" label="Forward reads (R1)" help="The file of forward reads in FASTQ format"/>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
47 <param name="R2" type="data" format="fastqsanger,fastqsanger.gz,fastqsanger.bz2" label="Reverse reads (R2)" help="The file of reverse reads in FASTQ format"/>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
48 </when>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
49 <when value="collection">
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
50 <param name="input1" format="fastqsanger,fastqsanger.gz,fastqsanger.bz2" type="data_collection" collection_type="paired" label="Paired collection" help="See help section for an explanation of dataset collections"/>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
51 </when>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
52 </conditional>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
53 <param argument="min_depth" type="integer" value="5" min="1" label="Minimum depth" />
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
54 <param argument="fraction_invalid" type="float" value="0.2" min="0.0" max="1.0" label="Fraction value of the read depth to be considered invalid" />
3
5f21f2cf1ede "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit c28f9849db4c6c3e666447d28f61cf98329898ec-dirty"
thanhlv
parents: 2
diff changeset
55 <param argument="fraction_valid" type="float" value="0.5" min="0.0" max="1.0" label="Ignore alignments with more than this many mismatches and indels" />
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
56 <param argument="max_errors" type="integer" value="10" min="1" label="Fraction value of the read depth to be considered invalid" />
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
57 <param argument="debug" type="boolean" truevalue="--debug" falsevalue="" checked="false" label="Debug output" />
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
58 </inputs>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
59 <outputs>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
60 <data name="polished" format="fasta" from_work_dir="polished.fasta" label="${tool.name} on ${on_string} Polished assembly" />
3
5f21f2cf1ede "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit c28f9849db4c6c3e666447d28f61cf98329898ec-dirty"
thanhlv
parents: 2
diff changeset
61 <data name="debug_tsv" format="tabular" from_work_dir="debug.tsv" label="${tool.name} on ${on_string} Polypolish debug" >
0
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
62 <filter>debug is True</filter>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
63 </data>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
64 </outputs>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
65 <help><![CDATA[
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
66 ]]> </help>
3c7cbfb8f43d "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/polypolish commit e855ff93b8b8493f8f061895d111885b938655e8-dirty"
thanhlv
parents:
diff changeset
67 </tool>