annotate sr_bowtie_dataset_annotation.xml @ 0:e7e7785e41d0 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
author artbio
date Mon, 11 Sep 2017 18:27:40 -0400
parents
children faf1b3b933f5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
1 <tool id="sr_bowtie_dataset_annotation" name="Annotate smRNA dataset" version="2.0.0">
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
2 <description>by iterative alignments with sRbowtie</description>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
3 <requirements>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
4 <requirement type="package" version="1.1.2">bowtie</requirement>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
5 </requirements>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
6 <command detect_errors="exit_code"><![CDATA[
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
7 #if $refGenomeSource1.genomeSource == "history":
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
8 bowtie-build -f $refGenomeSource1.ownFile genome 1>/dev/null &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
9 ln -s -f '$refGenomeSource1.ownFile' genome.fa &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
10 #set index_path = 'genome'
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
11 #else:
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
12 #set index_path = $refGenomeSource1.index.fields.path
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
13 #end if
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
14 #if $input.extension == "fasta":
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
15 #set format = "-f"
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
16 #elif $input.extension == "fastq":
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
17 #set format = "-q"
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
18 #end if
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
19 #if $format == '-f':
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
20 input_nbr_read=\$(( \$(wc -l < $input)/2)) &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
21 #elif $format == '-q':
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
22 input_nbr_read=\$(( \$(wc -l < $input)/4)) &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
23 #end if
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
24 #set method_prefix = "-v %s -k 1 --best" % str($mismatches)
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
25 bowtie -p \${GALAXY_SLOTS:-4}
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
26 $method_prefix
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
27 --al matched.fa
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
28 --un unmatched.fa
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
29 --suppress 6,7,8
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
30 $index_path $format '$input' > tabular_bowtie_output.tab &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
31 genome_aligned=\$(wc -l < matched.fa) &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
32 genome_aligned=\$(( \$genome_aligned/2)) &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
33 echo -e "$refGenomeSource1.ownFile.name Matched\t\${genome_aligned}\n" > $output &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
34 #set counter = 0
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
35 #for $i in $AdditionalQueries:
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
36 rm genome.fa &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
37 #set $counter += 1
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
38 #if $counter != 1:
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
39 #set input = "class_unmatched.fa"
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
40 #else:
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
41 #set input = "matched.fa"
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
42 #end if
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
43 touch temp_class_matched.fa temp_class_unmatched.fa &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
44 bowtie-build -f $i.ownFile genome 1>/dev/null &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
45 ln -s -f '$i.ownFile' genome.fa &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
46 #set index_path = 'genome'
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
47 bowtie -p \${GALAXY_SLOTS:-4}
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
48 $method_prefix
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
49 --al temp_class_matched.fa
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
50 --un temp_class_unmatched.fa
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
51 --suppress 6,7,8
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
52 $index_path $format '$input' > tabular_bowtie_output.tab &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
53 class_aligned=\$(( \$(wc -l < temp_class_matched.fa)/2)) &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
54 class_unaligned=\$(( \$(wc -l < temp_class_unmatched.fa)/2)) &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
55 mv temp_class_unmatched.fa class_unmatched.fa &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
56 echo -e "$i.ownFile.name Matched\t\${class_aligned}\n" >> $output &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
57 #end for
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
58 remaining=\$(( \$(wc -l < class_unmatched.fa)/2)) &&
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
59 echo -e "Unmatched to previous indexes\t\${remaining}\n" >> $output
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
60 ]]></command>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
61 <inputs>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
62 <param name="input" type="data" format="fasta,fastq" label="Input file: reads clipped from their adapter" help="Only with clipped, raw fasta or fastq files"/>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
63 <param name="mismatches" type="select" label="Number of mismatches allowed" help="specify the number of mismatches allowed during alignments">
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
64 <option value="0">0</option>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
65 <option value="1" selected="true">1</option>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
66 <option value="2">2</option>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
67 <option value="3">3</option>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
68 </param>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
69 <!-- First bowtie index selection -->
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
70 <conditional name="refGenomeSource1">
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
71 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Bowtie Built-ins were indexed using default options">
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
72 <option value="indexed">Use a built-in index</option>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
73 <option value="history">Use one from the history</option>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
74 </param>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
75 <when value="indexed">
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
76 <param name="index" type="select" label="Select a DNA reference index" help="if your genome of interest is not listed - contact instance administrator">
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
77 <options from_data_table="bowtie_indexes"/>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
78 </param>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
79 </when>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
80 <when value="history">
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
81 <param name="ownFile" type="data" format="fasta" label="Select a fasta file, to serve as index reference" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
82 </when>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
83 </conditional>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
84 <!-- End of first bowtie index selection -->
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
85 <!-- other bowtie index selections from fasta in history (mandatory) -->
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
86 <repeat name="AdditionalQueries" title="Additional Alignment Step">
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
87 <param name="ownFile" type="data" format="fasta" label="Select a fasta file, to serve as index reference" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
88 </repeat>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
89 <!-- End of other bowtie index selections -->
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
90 </inputs>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
91 <outputs>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
92 <data format="tabular" name="output" label="Cascade Annotation Analysis">
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
93 <actions>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
94 <action name="column_names" type="metadata" default="Reference Index,Number of reads" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
95 </actions>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
96 </data>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
97 </outputs>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
98 <tests>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
99 <test>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
100 <param name="input" value ="sample1.fa" ftype="fasta" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
101 <param name="genomeSource" value="history" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
102 <param name="ownFile" value ="2L-tail.fa" ftype="fasta" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
103 <param name="AdditionalQueries_0|ownFile" value="dme_miR21_hairpin.fa" ftype="fasta" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
104 <param name="AdditionalQueries_1|ownFile" value="Ensembl_transposon_set.fa" ftype="fasta" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
105 <output name="output" ftype="tabular" file="sample1_output.tab" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
106 </test>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
107 <test>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
108 <param name="input" value ="sample.fastq" ftype="fastq" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
109 <param name="genomeSource" value="history" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
110 <param name="ownFile" value ="2L-tail.fa" ftype="fasta" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
111 <param name="AdditionalQueries_0|ownFile" value="dme_miR21_hairpin.fa" ftype="fasta" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
112 <param name="AdditionalQueries_1|ownFile" value="Ensembl_transposon_set.fa" ftype="fasta" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
113 <output name="output" ftype="tabular" file="sample_output.tab" />
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
114 </test>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
115 </tests>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
116 <help>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
117
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
118 **Introduction**
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
119
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
120 Bowtie_ is a short read aligner designed to be ultrafast and memory-efficient.
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
121 A generic "Map with Bowtie for Illumina" Galaxy tool is available in the main Galaxy distribution.
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
122
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
123 Here The sRbowtie wrapper specifically works with short reads FASTA or FASTQ inputs
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
124 (-v bowtie mode, with -k 1) which has to be clipped from adapter before alignment.
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
125
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
126 .. _Bowtie: http://bowtie-bio.sourceforge.net/index.shtml
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
127
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
128
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
129 ------
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
130
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
131 **What it does**
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
132
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
133 .. class:: infomark
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
134
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
135 This script uses the sRbowtie wrapper to iteratively match reads on a reference indexes.
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
136 Read that aligned to the first reference are realigned to the second reference.
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
137 From this point, unaligned reads are taken as input for alignment to the third reference, etc.
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
138
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
139
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
140 Reads are Matched on DNA references (both strands) as fast as possible, without taking care of mapping issues
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
141
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
142 *-v [0,1,2,3] -k 1 --best -p 12 --suppress 6,7,8*
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
143
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
144 unaligned reads at step N are used as input for sRbowtie at step N+1
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
145
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
146 -----
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
147
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
148 **Input formats**
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
149
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
150 .. class:: warningmark
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
151
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
152 *Reads must be clipped from their adapter and provided in a FASTA or FASTQ format*
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
153
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
154 -----
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
155
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
156 **OUTPUTS**
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
157
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
158 **Annotation table in a tabular format**
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
159
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
160 </help>
e7e7785e41d0 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit 80b49bd722e8ea8d7dba6dcfe538537cd710d2a2
artbio
parents:
diff changeset
161 </tool>