Mercurial > repos > rnateam > segemehl
annotate segemehl.xml @ 3:039547ad8fb8 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
author | rnateam |
---|---|
date | Fri, 16 Dec 2016 07:37:24 -0500 |
parents | 0da425524259 |
children | db367d012fa3 |
rev | line source |
---|---|
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
1 <tool id="segemehl" name="segemehl" version="0.2.0"> |
0 | 2 <description>based short read aligner</description> |
3 <requirements> | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
4 <requirement type="package" version="0.2.0">segemehl</requirement> |
0 | 5 </requirements> |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
6 <stdio> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
7 <regex match="Exit forced" |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
8 source="both" |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
9 level="fatal" |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
10 description="Execution halted." /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
11 </stdio> |
0 | 12 <command> |
1 | 13 <![CDATA[ |
0 | 14 ## prepare segemehl index if no reference genome is supplied |
15 #if $refGenomeSource.genomeSource == "history": | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
16 mkdir ./temp_index/ && |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
17 #set $temp_index = './temp_index/temp.idx' |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
18 segemehl.x -x $temp_index -d $refGenomeSource.own_reference_genome && |
0 | 19 #else: |
2 | 20 #set $temp_index = $refGenomeSource.index.fields.index_path |
0 | 21 #end if |
22 | |
23 | |
24 ## execute segemehl | |
25 segemehl.x | |
1 | 26 |
0 | 27 ## number of threads |
28 -t "\${GALAXY_SLOTS:-12}" | |
29 | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
30 #if $refGenomeSource.genomeSource == "history": |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
31 -d $refGenomeSource.own_reference_genome |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
32 #else: |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
33 -d ${refGenomeSource.index.fields.db_path} |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
34 #end if |
0 | 35 |
36 -i $temp_index | |
37 | |
38 ## check for single/pair-end | |
39 #if str( $library.type ) == "single": | |
40 #set $query_list = list() | |
41 ## prepare inputs | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
42 #for $fastq in $library.input_query: |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
43 $query_list.append('%s' % $fastq ) |
0 | 44 #end for |
45 -q "#echo ' '.join( $query_list )#" | |
46 #else | |
47 ## prepare inputs | |
1 | 48 |
0 | 49 #set $mate1 = list() |
50 #set $mate2 = list() | |
51 #for $mate_pair in $library.mate_list: | |
52 $mate1.append( str($mate_pair.first_strand_query) ) | |
53 $mate2.append( str($mate_pair.second_strand_query) ) | |
54 #end for | |
55 | |
56 -q #echo ','.join($mate1) | |
57 -p #echo ','.join($mate2) | |
58 | |
59 -I $library.maxinsertsize | |
60 #end if | |
61 -m $minsize | |
62 -A $accuracy | |
63 -H $hitstrategy | |
64 #if str( $prime5 ).strip(): | |
2 | 65 -P "$prime5" |
0 | 66 #end if |
67 #if str( $prime3 ).strip(): | |
2 | 68 -Q "$prime3" |
0 | 69 #end if |
70 $polyA | |
71 $autoclip | |
72 $hardclip | |
73 $order | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
74 $splits |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
75 #if $maxout: |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
76 --maxout $maxout |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
77 #end if |
0 | 78 -s |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
79 |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
80 --minsplicecover $minsplicecover |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
81 --minfragscore $minfragscore |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
82 --minfraglen $minfraglen |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
83 --splicescorescale $splicescorescale |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
84 |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
85 -o '$segemehl_out' |
1 | 86 ]]> |
0 | 87 </command> |
88 <inputs> | |
89 <conditional name="refGenomeSource"> | |
90 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options"> | |
91 <option value="indexed">Use a built-in index</option> | |
92 <option value="history">Use one from the history</option> | |
93 </param> | |
94 <when value="indexed"> | |
95 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact your Galaxy admin"> | |
96 <options from_data_table="segemehl_indexes"> | |
97 <column name="value" index="0"/> | |
98 <column name="dbkey" index="1"/> | |
99 <column name="name" index="2"/> | |
100 <column name="db_path" index="3"/> | |
101 <column name="index_path" index="4"/> | |
102 <filter type="sort_by" column="2"/> | |
103 <validator type="no_options" message="No indexes are available for the selected input dataset"/> | |
104 </options> | |
105 </param> | |
106 </when> <!-- build-in --> | |
107 <when value="history"> | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
108 <param name="own_reference_genome" type="data" format="fasta" label="Select the reference genome" /> |
0 | 109 </when> <!-- history --> |
110 </conditional> <!-- refGenomeSource --> | |
111 | |
112 <conditional name="library"> | |
113 <param name="type" type="select" label="Is this library paired-end?"> | |
114 <option value="single">Single-end</option> | |
115 <option value="paired">Paired-end</option> | |
116 </param> | |
117 <when value="single"> | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
118 <param name="input_query" type="data" multiple="True" format="fastqsanger,fastqillumina,fastq,fasta" label="Reads in FASTQ/FASTA files" /> |
0 | 119 </when> |
120 <when value="paired"> | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
121 <!-- ToDo paired coolections --> |
0 | 122 <repeat name="mate_list" title="Paired End Pairs" min="1"> |
123 <param name="first_strand_query" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="Reads from first strand" /> | |
124 <param name="second_strand_query" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="Reads from second strand" /> | |
125 </repeat> | |
126 <param name="maxinsertsize" type="integer" value="5000" label="Maximum size of the inserts (paired end)" help="default: 5000 (-I)" /> | |
127 </when> | |
128 </conditional> | |
129 | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
130 <param name="minsplicecover" type="integer" value="80" label="Min coverage for spliced transcripts" help="(--minsplicecover)" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
131 <param name="minfragscore" type="integer" value="18" label="Min coverage for spliced transcripts" help="(--minfragscore)" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
132 <param name="minfraglen" type="integer" value="20" label="Min length of a spliced fragment" help="(--minfraglen)" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
133 <param name="splicescorescale" type="float" value="1.0" label="Report spliced alignment with score greater than this scale times the score" |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
134 help="Report only if this value x score is larger than next best spliced alignment (--splicescorescale)" /> |
0 | 135 |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
136 <param name="minsize" type="integer" value="12" min="1" label="Minimum size of queries" help="(-m)" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
137 |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
138 <param name="maxout" type="integer" min="0" value="0" optional="True" |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
139 label="Maximum number of alignments that will be reported" help="(--maxout)" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
140 <param name="accuracy" type="integer" value="85" min="1" max="100" label="Min percentage of matches per read in semi-global alignment" help="(-A)" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
141 |
0 | 142 <param name="hitstrategy" type="select" label="Hits to report?" help="(-H)"> |
143 <option value="1">report only best scoring hits</option> | |
144 <option value="0">report all scoring hits</option> | |
145 </param> | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
146 <param name="prime5" type="text" label="add 5' adapter" help="default: none (-Q)" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
147 <param name="prime3" type="text" label="add 3' adapter" help="default: none (-P)"/> |
0 | 148 <param name="polyA" type="boolean" truevalue="--polyA" falsevalue="" checked="false" label="Clip polyA tail" help="(-T)"/> |
149 <param name="autoclip" type="boolean" truevalue="--autoclip" falsevalue="" checked="false" label="Autoclip unknown 3prime adapter" help="(-Y)"/> | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
150 <param name="hardclip" type="boolean" truevalue="--hardclip" falsevalue="" checked="false" label="Enable hard clipping" help="(-C)"/> |
0 | 151 <param name="order" type="boolean" truevalue="--order" falsevalue="" checked="false" label="Sorts the output by chromsome and position" help="(-O)"/> |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
152 <param name="splits" type="boolean" truevalue="--splits" falsevalue="" checked="false" label="Detect split/spliced reads" help="(--splits)"/> |
0 | 153 </inputs> |
154 <outputs> | |
155 <data format="sam" name="segemehl_out" label="Read alignments on ${on_string}"/> | |
156 </outputs> | |
3
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
157 <tests> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
158 <test> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
159 <param name="genomeSource" value="history" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
160 <param name="own_reference_genome" value="chr1.fa" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
161 <param name="library" value="single" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
162 <param name="input_query" value="test.fastq" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
163 <param name="splits" value="true" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
164 <output name="segemehl_out" file="testmap.sam" lines_diff="2" /> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
165 </test> |
039547ad8fb8
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/segemehl commit 21aaee40723b5341b4236edeb0e72995c2054053
rnateam
parents:
2
diff
changeset
|
166 </tests> |
0 | 167 <help> |
1 | 168 <![CDATA[ |
0 | 169 |
170 .. class:: infomark | |
171 | |
1 | 172 **What it does** |
0 | 173 |
174 Segemehl_ is a short read mapper with gaps. | |
175 | |
1 | 176 Segemehl_ is a software to map short sequencer reads to reference genomes. |
177 Unlike other methods, segemehl is able to detect not only mismatches but also insertions and deletions. | |
178 Furthermore, segemehl is not limited to a specific read length and is able to mapprimer- or polyadenylation contaminated reads correctly. | |
0 | 179 segemehl implements a matching strategy based on enhanced suffix arrays (ESA). Segemehl_ allows bisulfite sequencing mapping and split read mapping. |
180 | |
181 .. _Segemehl: http://www.bioinf.uni-leipzig.de/Software/segemehl/ | |
182 | |
183 | |
1 | 184 ]]> |
0 | 185 </help> |
1 | 186 <citations> |
187 <citation type="doi">10.1371/journal.pcbi.1000502</citation> | |
188 </citations> | |
0 | 189 </tool> |