annotate bellerophon.xml @ 2:321347bd0494 draft default tip

planemo upload for repository https://github.com/davebx/bellerophon commit a4601aa6ae17baebc453566301a387d80bd5c3d5
author iuc
date Mon, 04 Sep 2023 07:31:57 +0000
parents 25ca5d73aedf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
1 <tool id="bellerophon" name="Filter and merge" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01">
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
2 <description>chimeric reads from Arima Genomics</description>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
3 <macros>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
4 <token name="@TOOL_VERSION@">1.0</token>
2
321347bd0494 planemo upload for repository https://github.com/davebx/bellerophon commit a4601aa6ae17baebc453566301a387d80bd5c3d5
iuc
parents: 1
diff changeset
5 <token name="@VERSION_SUFFIX@">1</token>
0
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
6 </macros>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
7 <requirements>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
8 <requirement type="package" version="@TOOL_VERSION@">bellerophon</requirement>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
9 <requirement type="package" version="1.12">samtools</requirement>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
10 </requirements>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
11 <command detect_errors="exit_code"><![CDATA[
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
12 #if $forward.is_of_type("sam"):
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
13 #set $forward_input = 'forward_input.sam'
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
14 ln -s '${forward}' '$forward_input' &&
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
15 #else:
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
16 #set $forward_input = 'forward_input.bam'
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
17 ln -s '${forward}' '$forward_input' &&
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
18 #end if
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
19 #if $reverse.is_of_type("sam"):
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
20 #set $reverse_input = 'reverse_input.sam'
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
21 ln -s '${reverse}' '$reverse_input' &&
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
22 #else:
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
23 #set $reverse_input = 'reverse_input.bam'
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
24 ln -s '${reverse}' '$reverse_input' &&
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
25 #end if
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
26 bellerophon
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
27 --forward $forward_input
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
28 --reverse $reverse_input
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
29 --quality $quality
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
30 --output 'merged_out.bam'
2
321347bd0494 planemo upload for repository https://github.com/davebx/bellerophon commit a4601aa6ae17baebc453566301a387d80bd5c3d5
iuc
parents: 1
diff changeset
31 --threads \${GALAXY_SLOTS:-1}
0
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
32 && samtools sort --no-PG -O BAM -o '$outfile' -@ \${GALAXY_SLOTS:-1} merged_out.bam
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
33 ]]>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
34 </command>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
35 <inputs>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
36 <param argument="--forward" type="data" format="qname_sorted.bam,sam" label="First set of reads"
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
37 help="This is usually the forward reads in your experiment." />
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
38 <param argument="--reverse" type="data" format="qname_sorted.bam,sam" label="Second set of reads"
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
39 help="This is usually the reverse reads in your experiment." />
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
40 <param argument="--quality" type="integer" value="20" label="Minimum mapping quality"/>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
41 </inputs>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
42 <outputs>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
43 <data name="outfile" format="bam"/>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
44 </outputs>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
45 <tests>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
46 <test expect_num_outputs="1">
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
47 <param name="forward" value="forward.bam" ftype="qname_sorted.bam" />
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
48 <param name="reverse" value="reverse.bam" ftype="qname_sorted.bam" />
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
49 <param name="quality" value="20" />
1
25ca5d73aedf "planemo upload for repository https://github.com/davebx/bellerophon commit bf1c72ac01d7b761a32d0304b7b5054228f33274"
iuc
parents: 0
diff changeset
50 <!-- since the tool expects qname_sorted.bam but the bam files are actually coordinate sorted
25ca5d73aedf "planemo upload for repository https://github.com/davebx/bellerophon commit bf1c72ac01d7b761a32d0304b7b5054228f33274"
iuc
parents: 0
diff changeset
51 galaxy sorts them automatically (https://github.com/galaxyproject/galaxy/blob/bfbc537b58e5b00d1e00c37396dbf42a3bd98c5c/lib/galaxy/datatypes/binary.py#L437)
25ca5d73aedf "planemo upload for repository https://github.com/davebx/bellerophon commit bf1c72ac01d7b761a32d0304b7b5054228f33274"
iuc
parents: 0
diff changeset
52 this adds a PG line -->
25ca5d73aedf "planemo upload for repository https://github.com/davebx/bellerophon commit bf1c72ac01d7b761a32d0304b7b5054228f33274"
iuc
parents: 0
diff changeset
53 <output name="outfile" file="merged-out.bam" ftype="bam" lines_diff="2" />
0
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
54 </test>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
55 <test expect_num_outputs="1">
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
56 <param name="forward" value="forward.sam" ftype="sam" />
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
57 <param name="reverse" value="reverse.sam" ftype="sam" />
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
58 <param name="quality" value="12" />
1
25ca5d73aedf "planemo upload for repository https://github.com/davebx/bellerophon commit bf1c72ac01d7b761a32d0304b7b5054228f33274"
iuc
parents: 0
diff changeset
59 <output name="outfile" file="merged-sam.bam" ftype="bam"/>
0
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
60 </test>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
61 </tests>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
62 <help><![CDATA[
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
63 Filter mapped reads where the mapping spans a junction, retaining the 5-prime read. This is usually needed when dealing with data from Arima Genomics.
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
64 ]]></help>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
65 <citations>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
66 <citation type="doi">10.1038/s41586-021-03451-0</citation>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
67 </citations>
eca6296a091a "planemo upload for repository https://github.com/davebx/bellerophon commit 5fe46c36adac4843cd548802073aa62b0afc61cd"
iuc
parents:
diff changeset
68 </tool>