Mercurial > repos > fubar > rgrnastar_203e
comparison rg_rnaStar.xml @ 25:1903b1fe70fc draft
Uploaded
author | iuc |
---|---|
date | Wed, 18 Feb 2015 11:36:41 -0500 |
parents | a711b92d85c1 |
children | 78f015992ac6 |
comparison
equal
deleted
inserted
replaced
24:a711b92d85c1 | 25:1903b1fe70fc |
---|---|
1 <tool id="rna_star" name="RNA-STAR" version="0.23"> | 1 <tool id="rna_star" name="rnastar" version="2.4.0d"> |
2 <description>Gapped-read mapper for RNA-seq data</description> | 2 <description>Gapped-read mapper for RNA-seq data</description> |
3 <requirements> | 3 <requirements> |
4 <requirement type="package" version="2.3.1z">rnastar</requirement> | 4 <requirement type="package" version="2.4.0d">rnastar</requirement> |
5 <requirement type="package" version="0.1.19">samtools</requirement> | 5 <requirement type="package" version="0.1.19">samtools</requirement> |
6 </requirements> | 6 </requirements> |
7 <command> | 7 <command> |
8 ## | 8 ## |
9 ## Run STAR. | 9 ## Run STAR. |
10 ## | 10 ## |
11 | 11 #if str($refGenomeSource.genomeSource) == 'history': |
12 STAR | 12 mkdir -p tempstargenomedir; STAR --runMode genomeGenerate --genomeDir "tempstargenomedir" --genomeFastaFiles "$refGenomeSource.ownFile" --runThreadN 2 |
13 #if str($refGenomeSource.geneModel) != 'None': | |
14 --sjdbOverhang "100" --sjdbGTFfile "$refGenomeSource.geneModel" | |
15 #if str($refGenomeSource.geneModel.ext) == 'gff3': | |
16 --sjdbGTFtagExonParentTranscript Parent | |
17 #end if | |
18 #end if | |
19 ; | |
20 #end if | |
21 STAR | |
13 ## Can adjust this as appropriate for the system. | 22 ## Can adjust this as appropriate for the system. |
14 --genomeLoad NoSharedMemory | 23 --genomeLoad NoSharedMemory |
15 | 24 #if str($refGenomeSource.genomeSource) == 'history': |
16 --genomeDir ${refGenomeSource.index.fields.path} | 25 --genomeDir "tempstargenomedir" |
17 --readFilesIn $input1 | 26 #else |
18 #if $singlePaired.sPaired == "paired" | 27 --genomeDir $refGenomeSource.index.fields.pathls |
28 #end if | |
29 --readFilesIn $singlePaired.input1 | |
30 #if str($singlePaired.sPaired) == "paired" | |
19 $singlePaired.input2 | 31 $singlePaired.input2 |
20 #end if | 32 #end if |
21 --runThreadN 4 | 33 --runThreadN 4 |
22 #if $params.settingsType == "full": | 34 #if str($params.settingsType) == "full": |
23 --chimSegmentMin $params.chim_segment_min | 35 --chimSegmentMin $params.chim_segment_min |
24 --chimScoreMin $params.chim_score_min | 36 --chimScoreMin $params.chim_score_min |
25 #end if | 37 #end if |
26 | 38 |
27 ## may or may not need to generate SAM tags and handle non-canonicals for Cufflinks tools. | 39 ## may or may not need to generate SAM tags and handle non-canonicals for Cufflinks tools. |
28 ${outSAMstrandField} ${outFilterIntronMotifs} ${outSAMattributes} | 40 $outSAMstrandField $outFilterIntronMotifs $outSAMattributes |
29 | 41 |
30 ; | 42 ; |
31 | |
32 ## | 43 ## |
33 ## BAM conversion. | 44 ## BAM conversion. |
34 ## | 45 ## |
35 | 46 |
36 ## Convert aligned reads. | 47 ## Convert aligned reads. |
37 samtools view -Shb Aligned.out.sam | samtools sort - Aligned.out | 48 samtools view -Shb Aligned.out.sam | samtools sort - AlignedSorted 2>/dev/null |
38 | 49 |
39 ## Convert chimeric reads. | 50 ## Convert chimeric reads. |
40 #if $params.settingsType == "full" and $params.chim_segment_min > 0: | 51 #if str($params.settingsType) == "full" and $params.chim_segment_min > 0: |
41 ; samtools view -Shb Chimeric.out.sam | samtools sort - Chimeric.out | 52 ; samtools view -Shb Chimeric.out.sam | samtools sort - ChimericSorted 2>/dev/null |
42 #end if | 53 #end if |
43 </command> | 54 </command> |
44 | 55 |
45 <stdio> | 56 <stdio> |
46 <regex match=".*" source="both" level="warning" description="generic stdout/err chatter"/> | 57 <regex match=".*" source="both" level="warning" description="Some stderr/stdout text"/> |
47 </stdio> | 58 </stdio> |
48 | 59 |
49 <inputs> | 60 <inputs> |
50 <param name="jobName" type="text" size="120" value="rna-star run" label="Job narrative (added to output names)" | 61 <param name="jobName" type="text" size="120" value="rna-star run" label="Job narrative (added to output names)" |
51 help="Only letters, numbers and underscores (_) will be retained in this field"> | 62 help="Only letters, numbers and underscores (_) will be retained in this field"> |
61 </param> | 72 </param> |
62 <when value="single"> | 73 <when value="single"> |
63 <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"/> | 74 <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"/> |
64 </when> | 75 </when> |
65 <when value="paired"> | 76 <when value="paired"> |
66 <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" /> | 77 <param format="fastqsanger,fastq,fasta" name="input1" type="data" label="RNA-Seq FASTQ file, forward reads" |
67 <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" /> | 78 help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33" /> |
79 <param format="fastqsanger,fastq,fasta" name="input2" type="data" label="RNA-Seq FASTQ file, reverse reads" | |
80 help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33" /> | |
68 </when> | 81 </when> |
69 </conditional> | 82 </conditional> |
70 | 83 |
71 <!-- Genome source. --> | 84 <!-- Genome source. --> |
72 <conditional name="refGenomeSource"> | 85 <conditional name="refGenomeSource"> |
73 <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"> | 86 <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"> |
74 <option value="indexed">Use a built-in index</option> | 87 <option value="indexed" selected="True">Use a built-in index</option> |
75 <option value="history">Use one from the history</option> | 88 <option value="history">Index and use a genome fasta file from my current history</option> |
76 </param> | 89 </param> |
77 <when value="indexed"> | 90 <when value="indexed"> |
78 <param name="index" type="select" label="Select a reference genome"> | 91 <param name="index" type="select" label="Select a reference genome"> |
79 <options from_data_table="rnastar_indexes"> | 92 <options from_data_table="rnastar_index"> |
80 <filter type="sort_by" column="2"/> | 93 <filter type="sort_by" column="2"/> |
81 <validator type="no_options" message="No indexes are available for the selected input dataset"/> | 94 <validator type="no_options" message="No indexes are available for the selected input dataset"/> |
82 </options> | 95 </options> |
83 </param> | 96 </param> |
84 </when> | 97 </when> |
85 <when value="history"> | 98 <when value="history"> |
86 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" /> | 99 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" /> |
100 <param name="geneModel" type="data" format="gff3,gtf" label="Gene model (gff3,gtf) file for splice junctions. Leave blank for none" | |
101 optional="true" help="Optional. If supplied, the index file will retain exon junction information for mapping splices" /> | |
87 </when> | 102 </when> |
88 </conditional> | 103 </conditional> |
89 <param name="outSAMattributes" type="select" label="Include extra sam attributes for downstream processing"> | 104 <param name="outSAMattributes" type="select" label="Include extra sam attributes for downstream processing"> |
90 <option value="--outSAMattributes Standard">Standard - eg for old Samtools downstream</option> | 105 <option value="--outSAMattributes Standard">Standard - eg for old Samtools downstream</option> |
91 <option value="--outSAMattributes All" selected="true">All modern Samtools attributes - see below</option> | 106 <option value="--outSAMattributes All" selected="true">All modern Samtools attributes - see below</option> |
114 </when> | 129 </when> |
115 </conditional> | 130 </conditional> |
116 </inputs> | 131 </inputs> |
117 | 132 |
118 <outputs> | 133 <outputs> |
119 <data format="txt" name="output_log" label="${on_string}_{jobName}.log" from_work_dir="Log.final.out"/> | 134 <data format="txt" name="output_log" label="${jobName}.log" from_work_dir="Log.final.out"/> |
120 <data format="interval" name="chimeric_junctions" label="${on_string}_{jobName}_starchimjunc.bed" from_work_dir="Chimeric.out.junction"> | 135 <data format="interval" name="chimeric_junctions" label="${jobName}_starchimjunc.bed" from_work_dir="Chimeric.out.junction"> |
121 <filter>(params['settingsType'] == 'full' and params['chim_segment_min'] > 0)</filter> | 136 <filter>(params['settingsType'] == 'full' and params['chim_segment_min'] > 0)</filter> |
122 <actions> | 137 <actions> |
123 <conditional name="refGenomeSource.genomeSource"> | 138 <conditional name="refGenomeSource.genomeSource"> |
124 <when value="indexed"> | 139 <when value="indexed"> |
125 <action type="metadata" name="dbkey"> | 140 <action type="metadata" name="dbkey"> |
126 <option type="from_data_table" name="star_indexes" column="1" offset="0"> | 141 <option type="from_data_table" name="rnastar_index" column="1" offset="0"> |
127 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> | 142 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> |
128 <filter type="param_value" ref="refGenomeSource.index" column="0"/> | 143 <filter type="param_value" ref="refGenomeSource.index" column="0"/> |
129 </option> | 144 </option> |
130 </action> | 145 </action> |
131 </when> | 146 </when> |
135 </action> | 150 </action> |
136 </when> | 151 </when> |
137 </conditional> | 152 </conditional> |
138 </actions> | 153 </actions> |
139 </data> | 154 </data> |
140 <data format="bam" name="chimeric_reads" label="${on_string}_${jobName}_starmappedchim.bam" | 155 <data format="bam" name="chimeric_reads" label="${jobName}_starmappedchim.bam" |
141 from_work_dir="Chimeric.out.bam"> | 156 from_work_dir="ChimericSorted.bam"> |
142 <filter>(params['settingsType'] == 'full' and params['chim_segment_min'] > 0)</filter> | 157 <filter>(params['settingsType'] == 'full' and params['chim_segment_min'] > 0)</filter> |
143 <actions> | 158 <actions> |
144 <conditional name="refGenomeSource.genomeSource"> | 159 <conditional name="refGenomeSource.genomeSource"> |
145 <when value="indexed"> | 160 <when value="indexed"> |
146 <action type="metadata" name="dbkey"> | 161 <action type="metadata" name="dbkey"> |
147 <option type="from_data_table" name="star_indexes" column="1" offset="0"> | 162 <option type="from_data_table" name="rnastar_index" column="1" offset="0"> |
148 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> | 163 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> |
149 <filter type="param_value" ref="refGenomeSource.index" column="0"/> | 164 <filter type="param_value" ref="refGenomeSource.index" column="0"/> |
150 </option> | 165 </option> |
151 </action> | 166 </action> |
152 </when> | 167 </when> |
156 </action> | 171 </action> |
157 </when> | 172 </when> |
158 </conditional> | 173 </conditional> |
159 </actions> | 174 </actions> |
160 </data> | 175 </data> |
161 <data format="interval" name="splice_junctions" label="${on_string}_${jobName}_starsplicejunct.bed" | 176 <data format="interval" name="splice_junctions" label="${jobName}_starsplicejunct.bed" |
162 from_work_dir="SJ.out.tab"> | 177 from_work_dir="SJ.out.tab"> |
163 <actions> | 178 <actions> |
164 <conditional name="refGenomeSource.genomeSource"> | 179 <conditional name="refGenomeSource.genomeSource"> |
165 <when value="indexed"> | 180 <when value="indexed"> |
166 <action type="metadata" name="dbkey"> | 181 <action type="metadata" name="dbkey"> |
167 <option type="from_data_table" name="star_indexes" column="1" offset="0"> | 182 <option type="from_data_table" name="rnastar_index" column="1" offset="0"> |
168 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> | 183 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> |
169 <filter type="param_value" ref="refGenomeSource.index" column="0"/> | 184 <filter type="param_value" ref="refGenomeSource.index" column="0"/> |
170 </option> | 185 </option> |
171 </action> | 186 </action> |
172 </when> | 187 </when> |
176 </action> | 191 </action> |
177 </when> | 192 </when> |
178 </conditional> | 193 </conditional> |
179 </actions> | 194 </actions> |
180 </data> | 195 </data> |
181 <data format="bam" name="mapped_reads" label="${on_string}_${jobName}_starmapped.bam" | 196 <data format="bam" name="mapped_reads" label="${jobName}_starmapped.bam" |
182 from_work_dir="Aligned.out.bam"> | 197 from_work_dir="AlignedSorted.bam"> |
183 <actions> | 198 <actions> |
184 <conditional name="refGenomeSource.genomeSource"> | 199 <conditional name="refGenomeSource.genomeSource"> |
185 <when value="indexed"> | 200 <when value="indexed"> |
186 <action type="metadata" name="dbkey"> | 201 <action type="metadata" name="dbkey"> |
187 <option type="from_data_table" name="star_indexes" column="1" offset="0"> | 202 <option type="from_data_table" name="rnastar_index" column="1" offset="0"> |
188 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> | 203 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> |
189 <filter type="param_value" ref="refGenomeSource.index" column="0"/> | 204 <filter type="param_value" ref="refGenomeSource.index" column="0"/> |
190 </option> | 205 </option> |
191 </action> | 206 </action> |
192 </when> | 207 </when> |
197 </when> | 212 </when> |
198 </conditional> | 213 </conditional> |
199 </actions> | 214 </actions> |
200 </data> | 215 </data> |
201 </outputs> | 216 </outputs> |
217 <tests> | |
218 <test> | |
219 <param name='input1' value='tophat_in2.fastqsanger' ftype='fastqsanger' /> | |
220 <param name='jobName' value='rnastar_test' /> | |
221 <param name='genomeSource' value='history' /> | |
222 <param name='ownFile' value='tophat_test.fa' /> | |
223 <param name='sPaired' value='single' /> | |
224 <param name='outSAMattributes' value='--outSAMattributes All' /> | |
225 <param name='outSAMstrandField' value='--outSAMstrandField intronMotif' /> | |
226 <param name='outFilterIntronMotifs' value='--outFilterIntronMotifs RemoveNoncanonical' /> | |
227 <output name='output_log' file='rnastar_test.log' compare='diff' lines_diff = '10'/> | |
228 <output name='splice_junctions' file="rnastar_test_splicejunctions.bed" compare="sim_size" delta="200"/> | |
229 <output name='mapped_reads' file="rnastar_test_mapped_reads.bam" compare="sim_size" delta="200" /> | |
230 </test> | |
231 </tests> | |
202 <help> | 232 <help> |
203 | 233 |
204 **What it does** | 234 **What it does** |
205 Runs the rna star gapped aligner. Suited to paired or single end rna-seq. | 235 Runs the rna star gapped aligner. Suited to paired or single end rna-seq. |
206 | 236 |
241 strand attribute for all alignments that contain splice junctions. The spliced alignments that have undefined | 271 strand attribute for all alignments that contain splice junctions. The spliced alignments that have undefined |
242 strand (i.e. containing only non-canonical junctions) will be suppressed. | 272 strand (i.e. containing only non-canonical junctions) will be suppressed. |
243 | 273 |
244 If you have stranded RNA-seq data, you do not need to use any specific STAR options. Instead, you need | 274 If you have stranded RNA-seq data, you do not need to use any specific STAR options. Instead, you need |
245 to run Cufflinks with the library option --library-type options. For example, cufflinks with | 275 to run Cufflinks with the library option --library-type options. For example, cufflinks with |
246 library-type fr-firststrand should be used for the “standard” dUTP protocol. | 276 library-type fr-firststrand should be used for the b |
247 This option has to be used only for Cufflinks runs and not for STAR runs. | 277 |
248 | 278 It is recommended to remove the non-canonical junctions for Cufflinks runs using b |
249 It is recommended to remove the non-canonical junctions for Cufflinks runs using – | 279 |
250 | 280 |
251 --outFilterIntronMotifs RemoveNoncanonical | 281 --outFilterIntronMotifs RemoveNoncanonical |
252 filter out alignments that contain non-canonical junctions | 282 filter out alignments that contain non-canonical junctions |
253 | 283 |
254 OR | 284 OR |
282 .. _rna_star: http://code.google.com/p/rna-star/ | 312 .. _rna_star: http://code.google.com/p/rna-star/ |
283 .. _rna_starMS: http://bioinformatics.oxfordjournals.org/content/29/1/15.full | 313 .. _rna_starMS: http://bioinformatics.oxfordjournals.org/content/29/1/15.full |
284 .. _Galaxy: http://getgalaxy.org | 314 .. _Galaxy: http://getgalaxy.org |
285 | 315 |
286 </help> | 316 </help> |
317 <citations> | |
318 <citation type="doi">doi: 10.1093/bioinformatics/bts635</citation> | |
319 </citations> | |
287 </tool> | 320 </tool> |
321 |