annotate rg_rnaStar.xml @ 0:f13499e0de61 draft

Initial commit
author fubar
date Fri, 09 Aug 2013 04:31:52 -0400
parents
children 88448bbbab2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f13499e0de61 Initial commit
fubar
parents:
diff changeset
1 <tool id="rna_star" name="RNA-STAR" version="0.2">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
2 <description>Gapped-read mapper for RNA-seq data</description>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
3 <requirements>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
4 <requirement type="package">star</requirement>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
5 <requirement type="package">samtools</requirement>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
6 </requirements>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
7 <command>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
8 ##
f13499e0de61 Initial commit
fubar
parents:
diff changeset
9 ## Run STAR.
f13499e0de61 Initial commit
fubar
parents:
diff changeset
10 ##
f13499e0de61 Initial commit
fubar
parents:
diff changeset
11
f13499e0de61 Initial commit
fubar
parents:
diff changeset
12 STAR
f13499e0de61 Initial commit
fubar
parents:
diff changeset
13 ## Can adjust this as appropriate for the system.
f13499e0de61 Initial commit
fubar
parents:
diff changeset
14 --genomeLoad NoSharedMemory
f13499e0de61 Initial commit
fubar
parents:
diff changeset
15
f13499e0de61 Initial commit
fubar
parents:
diff changeset
16 --genomeDir ${refGenomeSource.index.fields.path}
f13499e0de61 Initial commit
fubar
parents:
diff changeset
17 --readFilesIn $input1
f13499e0de61 Initial commit
fubar
parents:
diff changeset
18 #if $singlePaired.sPaired == "paired"
f13499e0de61 Initial commit
fubar
parents:
diff changeset
19 $singlePaired.input2
f13499e0de61 Initial commit
fubar
parents:
diff changeset
20 #end if
f13499e0de61 Initial commit
fubar
parents:
diff changeset
21
f13499e0de61 Initial commit
fubar
parents:
diff changeset
22 --runThreadN 4
f13499e0de61 Initial commit
fubar
parents:
diff changeset
23
f13499e0de61 Initial commit
fubar
parents:
diff changeset
24 ## Parameters.
f13499e0de61 Initial commit
fubar
parents:
diff changeset
25 #if $params.settingsType == "full":
f13499e0de61 Initial commit
fubar
parents:
diff changeset
26 --chimSegmentMin $params.chim_segment_min
f13499e0de61 Initial commit
fubar
parents:
diff changeset
27 --chimScoreMin $params.chim_score_min
f13499e0de61 Initial commit
fubar
parents:
diff changeset
28 #end if
f13499e0de61 Initial commit
fubar
parents:
diff changeset
29
f13499e0de61 Initial commit
fubar
parents:
diff changeset
30 ## Needed to generate SAM tags for Cufflinks tools.
f13499e0de61 Initial commit
fubar
parents:
diff changeset
31 --outSAMstrandField intronMotif
f13499e0de61 Initial commit
fubar
parents:
diff changeset
32
f13499e0de61 Initial commit
fubar
parents:
diff changeset
33 ;
f13499e0de61 Initial commit
fubar
parents:
diff changeset
34
f13499e0de61 Initial commit
fubar
parents:
diff changeset
35 ##
f13499e0de61 Initial commit
fubar
parents:
diff changeset
36 ## BAM conversion.
f13499e0de61 Initial commit
fubar
parents:
diff changeset
37 ##
f13499e0de61 Initial commit
fubar
parents:
diff changeset
38
f13499e0de61 Initial commit
fubar
parents:
diff changeset
39 ## Convert aligned reads.
f13499e0de61 Initial commit
fubar
parents:
diff changeset
40 samtools view -Shb Aligned.out.sam | samtools sort - Aligned.out
f13499e0de61 Initial commit
fubar
parents:
diff changeset
41
f13499e0de61 Initial commit
fubar
parents:
diff changeset
42 ## Convert chimeric reads.
f13499e0de61 Initial commit
fubar
parents:
diff changeset
43 #if $params.settingsType == "full" and $params.chim_segment_min > 0:
f13499e0de61 Initial commit
fubar
parents:
diff changeset
44 ; samtools view -Shb Chimeric.out.sam | samtools sort - Chimeric.out
f13499e0de61 Initial commit
fubar
parents:
diff changeset
45 #end if
f13499e0de61 Initial commit
fubar
parents:
diff changeset
46 </command>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
47
f13499e0de61 Initial commit
fubar
parents:
diff changeset
48 <stdio>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
49 <regex match=".*" source="both" level="warning" description="generic stdout/err chatter"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
50 </stdio>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
51
f13499e0de61 Initial commit
fubar
parents:
diff changeset
52 <inputs>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
53 <param name="jobName" type="text" size="120" value="rna-star run" label="Job narrative (added to output names)"
f13499e0de61 Initial commit
fubar
parents:
diff changeset
54 help="Only letters, numbers and underscores (_) will be retained in this field>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
55 <sanitizer invalid_char="">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
56 <valid initial="string.letters,string.digits"><add value="_" /> </valid>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
57 </sanitizer>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
58 </param>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
59 <!-- FASTQ input(s) and options specifically for paired-end data. -->
f13499e0de61 Initial commit
fubar
parents:
diff changeset
60 <conditional name="singlePaired">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
61 <param name="sPaired" type="select" label="Single ended or mate-pair ended reads in this library?">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
62 <option value="single" selected="true">Single-end</option>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
63 <option value="paired">Paired-end</option>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
64 </param>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
65 <when value="single">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
66 <param format="fastqsanger,fastq,fasta" name="input1" type="data" label="RNA-Seq FASTQ file" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
67 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
68 <when value="paired">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
69 <param format="fastqsanger,fastq,fasta" name="input1" type="data" label="RNA-Seq FASTQ file, forward reads" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33" />
f13499e0de61 Initial commit
fubar
parents:
diff changeset
70 <param format="fastqsanger,fastq,fasta" name="input2" type="data" label="RNA-Seq FASTQ file, reverse reads" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33" />
f13499e0de61 Initial commit
fubar
parents:
diff changeset
71 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
72 </conditional>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
73
f13499e0de61 Initial commit
fubar
parents:
diff changeset
74 <!-- Genome source. -->
f13499e0de61 Initial commit
fubar
parents:
diff changeset
75 <conditional name="refGenomeSource">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
76 <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">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
77 <option value="indexed">Use a built-in index</option>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
78 <option value="history">Use one from the history</option>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
79 </param>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
80 <when value="indexed">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
81 <param name="index" type="select" label="Select a reference genome">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
82 <options from_data_table="rnastar_indexes">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
83 <filter type="sort_by" column="2"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
84 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
85 </options>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
86 </param>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
87 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
88 <when value="history">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
89 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
f13499e0de61 Initial commit
fubar
parents:
diff changeset
90 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
91 </conditional>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
92
f13499e0de61 Initial commit
fubar
parents:
diff changeset
93 <!-- Parameter settings. -->
f13499e0de61 Initial commit
fubar
parents:
diff changeset
94 <conditional name="params">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
95 <param name="settingsType" type="select" label="Settings to use" help="You can use the default settings or set custom values for any STAR parameter.">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
96 <option value="preSet" selected="true">Use Defaults</option>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
97 <option value="full">Full parameter list</option>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
98 </param>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
99 <when value="preSet" />
f13499e0de61 Initial commit
fubar
parents:
diff changeset
100 <!-- Full/advanced params. -->
f13499e0de61 Initial commit
fubar
parents:
diff changeset
101 <when value="full">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
102 <param name="chim_segment_min" type="integer" min="0" value="0" label="Minimum chimeric segment length" />
f13499e0de61 Initial commit
fubar
parents:
diff changeset
103 <param name="chim_score_min" type="integer" min="0" value="0" label="Minimum total (summed) score of the chimeric segments" />
f13499e0de61 Initial commit
fubar
parents:
diff changeset
104 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
105 </conditional>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
106 </inputs>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
107
f13499e0de61 Initial commit
fubar
parents:
diff changeset
108 <outputs>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
109 <data format="txt" name="output_log" label="${on_string}_{jobName}.log" from_work_dir="Log.final.out"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
110 <data format="interval" name="chimeric_junctions" label="${on_string}_{jobName}_starchimjunc.bed" from_work_dir="Chimeric.out.junction">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
111 <filter>(params['settingsType'] == 'full' and params['chim_segment_min'] > 0)</filter>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
112 <actions>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
113 <conditional name="refGenomeSource.genomeSource">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
114 <when value="indexed">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
115 <action type="metadata" name="dbkey">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
116 <option type="from_data_table" name="star_indexes" column="1" offset="0">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
117 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
118 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
119 </option>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
120 </action>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
121 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
122 <when value="history">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
123 <action type="metadata" name="dbkey">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
124 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
f13499e0de61 Initial commit
fubar
parents:
diff changeset
125 </action>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
126 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
127 </conditional>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
128 </actions>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
129 </data>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
130 <data format="bam" name="chimeric_reads" label="${on_string}_{jobName}_starmappedchim.bam"
f13499e0de61 Initial commit
fubar
parents:
diff changeset
131 from_work_dir="Chimeric.out.bam">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
132 <filter>(params['settingsType'] == 'full' and params['chim_segment_min'] > 0)</filter>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
133 <actions>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
134 <conditional name="refGenomeSource.genomeSource">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
135 <when value="indexed">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
136 <action type="metadata" name="dbkey">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
137 <option type="from_data_table" name="star_indexes" column="1" offset="0">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
138 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
139 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
140 </option>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
141 </action>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
142 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
143 <when value="history">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
144 <action type="metadata" name="dbkey">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
145 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
f13499e0de61 Initial commit
fubar
parents:
diff changeset
146 </action>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
147 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
148 </conditional>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
149 </actions>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
150 </data>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
151 <data format="interval" name="splice_junctions" label="${on_string}_{jobName}_starsplicejunct.bed"
f13499e0de61 Initial commit
fubar
parents:
diff changeset
152 from_work_dir="SJ.out.tab">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
153 <actions>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
154 <conditional name="refGenomeSource.genomeSource">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
155 <when value="indexed">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
156 <action type="metadata" name="dbkey">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
157 <option type="from_data_table" name="star_indexes" column="1" offset="0">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
158 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
159 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
160 </option>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
161 </action>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
162 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
163 <when value="history">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
164 <action type="metadata" name="dbkey">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
165 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
f13499e0de61 Initial commit
fubar
parents:
diff changeset
166 </action>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
167 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
168 </conditional>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
169 </actions>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
170 </data>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
171 <data format="bam" name="mapped_reads" label="${on_string}_{jobName}_starmapped.bam"
f13499e0de61 Initial commit
fubar
parents:
diff changeset
172 from_work_dir="Aligned.out.bam">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
173 <actions>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
174 <conditional name="refGenomeSource.genomeSource">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
175 <when value="indexed">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
176 <action type="metadata" name="dbkey">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
177 <option type="from_data_table" name="star_indexes" column="1" offset="0">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
178 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
179 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
180 </option>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
181 </action>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
182 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
183 <when value="history">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
184 <action type="metadata" name="dbkey">
f13499e0de61 Initial commit
fubar
parents:
diff changeset
185 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
f13499e0de61 Initial commit
fubar
parents:
diff changeset
186 </action>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
187 </when>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
188 </conditional>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
189 </actions>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
190 </data>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
191 </outputs>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
192 <help>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
193
f13499e0de61 Initial commit
fubar
parents:
diff changeset
194 **Attributions**
f13499e0de61 Initial commit
fubar
parents:
diff changeset
195 Note that each component has its own license. Good luck with figuring out your obligations.
f13499e0de61 Initial commit
fubar
parents:
diff changeset
196
f13499e0de61 Initial commit
fubar
parents:
diff changeset
197 rna_star - see the web site at rna_star_
f13499e0de61 Initial commit
fubar
parents:
diff changeset
198
f13499e0de61 Initial commit
fubar
parents:
diff changeset
199 For details, please see the rna_starMS_
f13499e0de61 Initial commit
fubar
parents:
diff changeset
200 "STAR: ultrafast universal RNA-seq aligner"
f13499e0de61 Initial commit
fubar
parents:
diff changeset
201 A. Dobin et al, Bioinformatics 2012; doi: 10.1093/bioinformatics/bts635
f13499e0de61 Initial commit
fubar
parents:
diff changeset
202
f13499e0de61 Initial commit
fubar
parents:
diff changeset
203 Galaxy_ (that's what you are using right now!) for gluing everything together
f13499e0de61 Initial commit
fubar
parents:
diff changeset
204
f13499e0de61 Initial commit
fubar
parents:
diff changeset
205 Most of the work for this wrapper XML is Jeremy Goecks' original STAR_ wrapper
f13499e0de61 Initial commit
fubar
parents:
diff changeset
206
f13499e0de61 Initial commit
fubar
parents:
diff changeset
207 Minor tweaks to output names to suit our downstream purposes, toolshed automated dependencies and odds and ends of other code and documentation comprising this tool was written by Ross Lazarus and
f13499e0de61 Initial commit
fubar
parents:
diff changeset
208 that part is licensed_ the same way as other rgenetics artefacts
f13499e0de61 Initial commit
fubar
parents:
diff changeset
209
f13499e0de61 Initial commit
fubar
parents:
diff changeset
210 .. _STAR: https://bitbucket.org/jgoecks/jeremys-code/raw/fa1930a689b8e2f6b59cc1706e5ba0ed8ad357be/galaxy/tool-wrappers/star.xml
f13499e0de61 Initial commit
fubar
parents:
diff changeset
211 .. _licensed: http://creativecommons.org/licenses/by-nc-nd/3.0/
f13499e0de61 Initial commit
fubar
parents:
diff changeset
212 .. _rna_star: http://code.google.com/p/rna-star/
f13499e0de61 Initial commit
fubar
parents:
diff changeset
213 .. _rna_starMS: http://bioinformatics.oxfordjournals.org/content/29/1/15.full
f13499e0de61 Initial commit
fubar
parents:
diff changeset
214 .. _Galaxy: http://getgalaxy.org
f13499e0de61 Initial commit
fubar
parents:
diff changeset
215
f13499e0de61 Initial commit
fubar
parents:
diff changeset
216 </help>
f13499e0de61 Initial commit
fubar
parents:
diff changeset
217 </tool>