comparison segemehl.xml @ 0:94926c35b6f3 draft

intial uploaded
author rnateam
date Thu, 17 Oct 2013 04:07:29 -0400
parents
children 468b59eae694
comparison
equal deleted inserted replaced
-1:000000000000 0:94926c35b6f3
1 <tool id="segemehl" name="segemehl" version="0.1">
2 <description>suffix arrays based short read aligner</description>
3 <requirements>
4 <requirement type="package" version="0.1.6">segemehl</requirement>
5 </requirements>
6 <command>
7 ## prepare segemehl index if no reference genome is supplied
8 temp_index = `mktemp`;
9 #if $refGenomeSource.genomeSource == "history":
10 segemehl.x -x $temp_index -d $refGenomeSource.own_reference_genome;
11 #else:
12 $temp_index = ${refGenomeSource.index.fields.index_path}
13 #end if
14
15
16 ## execute segemehl
17 segemehl.x
18
19 ## number of threads
20 -t 4
21
22 ## db file path
23 -d ${refGenomeSource.index.fields.db_path}
24
25 -i $temp_index
26
27 ## check for single/pair-end
28 #if str( $library.type ) == "single":
29 #set $query_list = list()
30 ## prepare inputs
31 #for $fastq in $library.reads:
32 $query_list.append('%s' %($fastq.input_query))
33 #end for
34 -q "#echo ' '.join( $query_list )#"
35 #else
36 ## prepare inputs
37
38 #set $mate1 = list()
39 #set $mate2 = list()
40 #for $mate_pair in $library.mate_list:
41 $mate1.append( str($mate_pair.first_strand_query) )
42 $mate2.append( str($mate_pair.second_strand_query) )
43 #end for
44
45 -q #echo ','.join($mate1)
46 -p #echo ','.join($mate2)
47
48 -I $library.maxinsertsize
49 #end if
50 -m $minsize
51 -A $accuracy
52 -H $hitstrategy
53 #if str( $prime5 ).strip():
54 -P $prime5
55 #end if
56 #if str( $prime3 ).strip():
57 -Q $prime3
58 #end if
59 $polyA
60 $autoclip
61 $hardclip
62 $order
63 -s
64 -o $segemehl_out
65 </command>
66 <stdio>
67 <regex match="Exit forced"
68 source="both"
69 level="fatal"
70 description="Execution halted." />
71 </stdio>
72 <inputs>
73
74 <conditional name="refGenomeSource">
75 <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">
76 <option value="indexed">Use a built-in index</option>
77 <option value="history">Use one from the history</option>
78 </param>
79 <when value="indexed">
80 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact your Galaxy admin">
81 <options from_data_table="segemehl_indexes">
82 <column name="value" index="0"/>
83 <column name="dbkey" index="1"/>
84 <column name="name" index="2"/>
85 <column name="db_path" index="3"/>
86 <column name="index_path" index="4"/>
87 <filter type="sort_by" column="2"/>
88 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
89 </options>
90 </param>
91 </when> <!-- build-in -->
92 <when value="history">
93 <param name="own_reference_genome" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
94 </when> <!-- history -->
95 </conditional> <!-- refGenomeSource -->
96
97
98 <conditional name="library">
99 <param name="type" type="select" label="Is this library paired-end?">
100 <option value="single">Single-end</option>
101 <option value="paired">Paired-end</option>
102 </param>
103 <when value="single">
104 <repeat name="reads" title="FASTQ/FASTA files">
105 <param name="input_query" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="Reads fasta/fastq file" />
106 </repeat>
107 </when>
108 <when value="paired">
109 <repeat name="mate_list" title="Paired End Pairs" min="1">
110 <param name="first_strand_query" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="Reads from first strand" />
111 <param name="second_strand_query" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="Reads from second strand" />
112 </repeat>
113 <param name="maxinsertsize" type="integer" value="5000" label="Maximum size of the inserts (paired end) (default:5000)" />
114 </when>
115 </conditional>
116
117
118 <param name="minsize" type="integer" value="12" size="5" label="Minimum size of queries (default:12)">
119 <validator type="in_range" min="1"/>
120 </param>
121 <param name="accuracy" type="integer" value="85" size="5" label="Min percentage of matches per read in semi-global alignment (default:85)" >
122 <validator type="in_range" min="1" max="100"/>
123 </param>
124 <param name="hitstrategy" type="integer" value="1" size="5" label="report only best scoring hits (=1) or all (=0) (default:1)" />
125 <param name="prime5" type="text" size="80" label="add 5' adapter (default:none)" />
126 <param name="prime3" type="text" size="80" label="add 3' adapter (default:none)" />
127 <param name="polyA" type="boolean" truevalue="--polyA" falsevalue="" checked="false" label="Clip polyA tail"/>
128 <param name="autoclip" type="boolean" truevalue="--autoclip" falsevalue="" checked="false" label="Autoclip unknown 3prime adapter"/>
129 <param name="hardclip" type="boolean" truevalue="--hardclip" falsevalue="" checked="false" label="Enable hard clipping"/>
130 <param name="order" type="boolean" truevalue="--order" falsevalue="" checked="false" label="Sorts the output by chromsome and position (might take a while!)"/>
131 </inputs>
132
133 <outputs>
134 <data format="sam" name="segemehl_out" label="Read alignments on ${on_string}"/>
135 </outputs>
136 <help>
137
138 .. class:: infomark
139
140 **What it does**
141
142 Segemelt is a short read mapper with gaps.
143
144 segemehl is a software to map short sequencer reads to reference genomes.
145 Unlike other methods, segemehl is able to detect not only mismatches but also insertions and deletions.
146 Furthermore, segemehl is not limited to a specific read length and is able to mapprimer- or polyadenylation contaminated reads correctly.
147 segemehl implements a matching strategy based on enhanced suffix arrays (ESA). Segemehl now supports the SAM format,
148 reads gziped queries to save both disk and memory space and allows bisulfite sequencing mapping and split read mapping.
149
150 </help>
151 </tool>