annotate rg_rnaStar.xml @ 22:fae0710c14c9 draft

Uploaded
author fubar
date Tue, 04 Mar 2014 23:30:56 -0500
parents a2292db4c24a
children 64d3abfb8535
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
1 <tool id="rna_star" name="RNA-STAR" version="0.23">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
2 <description>Gapped-read mapper for RNA-seq data</description>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
3 <requirements>
19
ca0e1cfec8c7 Uploaded
fubar
parents: 16
diff changeset
4 <requirement type="package" version="2.3.0e">rnastar</requirement>
ca0e1cfec8c7 Uploaded
fubar
parents: 16
diff changeset
5 <requirement type="package" version="0.1.19">samtools</requirement>
21
a2292db4c24a Uploaded
fubar
parents: 19
diff changeset
6 <requirement type="package" version="2.3.0e">starwrapper</requirement>
15
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
7 </requirements>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
8 <command>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
9 ##
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
10 ## Run STAR.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
11 ##
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
12
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
13 STAR
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
14 ## Can adjust this as appropriate for the system.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
15 --genomeLoad NoSharedMemory
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
16
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
17 --genomeDir ${refGenomeSource.index.fields.path}
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
18 --readFilesIn $input1
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
19 #if $singlePaired.sPaired == "paired"
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
20 $singlePaired.input2
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
21 #end if
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
22 --runThreadN 4
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
23 #if $params.settingsType == "full":
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
24 --chimSegmentMin $params.chim_segment_min
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
25 --chimScoreMin $params.chim_score_min
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
26 #end if
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
27
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
28 ## may or may not need to generate SAM tags and handle non-canonicals for Cufflinks tools.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
29 ${outSAMstrandField} ${outFilterIntronMotifs} ${outSAMattributes}
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
30
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
31 ;
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
32
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
33 ##
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
34 ## BAM conversion.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
35 ##
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
36
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
37 ## Convert aligned reads.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
38 samtools view -Shb Aligned.out.sam | samtools sort - Aligned.out
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
39
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
40 ## Convert chimeric reads.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
41 #if $params.settingsType == "full" and $params.chim_segment_min > 0:
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
42 ; samtools view -Shb Chimeric.out.sam | samtools sort - Chimeric.out
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
43 #end if
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
44 </command>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
45
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
46 <stdio>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
47 <regex match=".*" source="both" level="warning" description="generic stdout/err chatter"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
48 </stdio>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
49
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
50 <inputs>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
51 <param name="jobName" type="text" size="120" value="rna-star run" label="Job narrative (added to output names)"
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
52 help="Only letters, numbers and underscores (_) will be retained in this field">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
53 <sanitizer invalid_char="">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
54 <valid initial="string.letters,string.digits"><add value="_" /> </valid>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
55 </sanitizer>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
56 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
57 <!-- FASTQ input(s) and options specifically for paired-end data. -->
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
58 <conditional name="singlePaired">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
59 <param name="sPaired" type="select" label="Single ended or mate-pair ended reads in this library?">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
60 <option value="single" selected="true">Single-end</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
61 <option value="paired">Paired-end</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
62 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
63 <when value="single">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
64 <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"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
65 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
66 <when value="paired">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
67 <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" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
68 <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" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
69 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
70 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
71
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
72 <!-- Genome source. -->
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
73 <conditional name="refGenomeSource">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
74 <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">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
75 <option value="indexed">Use a built-in index</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
76 <option value="history">Use one from the history</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
77 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
78 <when value="indexed">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
79 <param name="index" type="select" label="Select a reference genome">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
80 <options from_data_table="rnastar_indexes">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
81 <filter type="sort_by" column="2"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
82 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
83 </options>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
84 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
85 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
86 <when value="history">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
87 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
88 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
89 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
90 <param name="outSAMattributes" type="select" label="Include extra sam attributes for downstream processing">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
91 <option value="--outSAMattributes Standard">Standard - eg for old Samtools downstream</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
92 <option value="--outSAMattributes All" selected="true">All modern Samtools attributes - see below</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
93 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
94 <param name="outSAMstrandField" type="select" label="Include extra sam attributes for downstream processing">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
95 <option value="--outSAMstrandField intronMotif" selected="true">Add XS for cufflinks</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
96 <option value="">No XS added to sam output</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
97 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
98 <param name="outFilterIntronMotifs" type="select" label="Canonical junction preparation for unstranded data">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
99 <option value="">No special handling - all non-canonical junctions passed through</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
100 <option value="--outFilterIntronMotifs RemoveNoncanonical" selected="true">Remove all non-canonical junctions for eg cufflinks</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
101 <option value="--outFilterIntronMotifs RemoveNoncanonicalUnannotated">Remove only unannotated non-canonical junctions for eg cufflinks</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
102 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
103 <!-- Parameter settings. -->
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
104 <conditional name="params">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
105 <param name="settingsType" type="select" label="Settings to use" help="You can use the default settings or set custom values for any STAR parameter.">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
106 <option value="preSet" selected="true">Use Defaults</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
107 <option value="full">Full parameter list</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
108 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
109 <when value="preSet" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
110 <!-- Full/advanced params. -->
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
111 <when value="full">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
112 <param name="chim_segment_min" type="integer" min="0" value="0" label="Minimum chimeric segment length" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
113 <param name="chim_score_min" type="integer" min="0" value="0" label="Minimum total (summed) score of the chimeric segments" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
114
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
115 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
116 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
117 </inputs>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
118
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
119 <outputs>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
120 <data format="txt" name="output_log" label="${on_string}_{jobName}.log" from_work_dir="Log.final.out"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
121 <data format="interval" name="chimeric_junctions" label="${on_string}_{jobName}_starchimjunc.bed" from_work_dir="Chimeric.out.junction">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
122 <filter>(params['settingsType'] == 'full' and params['chim_segment_min'] > 0)</filter>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
123 <actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
124 <conditional name="refGenomeSource.genomeSource">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
125 <when value="indexed">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
126 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
127 <option type="from_data_table" name="star_indexes" column="1" offset="0">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
128 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
129 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
130 </option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
131 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
132 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
133 <when value="history">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
134 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
135 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
136 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
137 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
138 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
139 </actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
140 </data>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
141 <data format="bam" name="chimeric_reads" label="${on_string}_${jobName}_starmappedchim.bam"
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
142 from_work_dir="Chimeric.out.bam">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
143 <filter>(params['settingsType'] == 'full' and params['chim_segment_min'] > 0)</filter>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
144 <actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
145 <conditional name="refGenomeSource.genomeSource">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
146 <when value="indexed">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
147 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
148 <option type="from_data_table" name="star_indexes" column="1" offset="0">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
149 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
150 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
151 </option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
152 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
153 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
154 <when value="history">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
155 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
156 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
157 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
158 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
159 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
160 </actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
161 </data>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
162 <data format="interval" name="splice_junctions" label="${on_string}_${jobName}_starsplicejunct.bed"
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
163 from_work_dir="SJ.out.tab">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
164 <actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
165 <conditional name="refGenomeSource.genomeSource">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
166 <when value="indexed">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
167 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
168 <option type="from_data_table" name="star_indexes" column="1" offset="0">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
169 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
170 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
171 </option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
172 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
173 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
174 <when value="history">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
175 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
176 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
177 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
178 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
179 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
180 </actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
181 </data>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
182 <data format="bam" name="mapped_reads" label="${on_string}_${jobName}_starmapped.bam"
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
183 from_work_dir="Aligned.out.bam">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
184 <actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
185 <conditional name="refGenomeSource.genomeSource">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
186 <when value="indexed">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
187 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
188 <option type="from_data_table" name="star_indexes" column="1" offset="0">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
189 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
190 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
191 </option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
192 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
193 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
194 <when value="history">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
195 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
196 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
197 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
198 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
199 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
200 </actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
201 </data>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
202 </outputs>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
203 <help>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
204
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
205 **What it does**
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
206 Runs the rna star gapped aligner. Suited to paired or single end rna-seq.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
207
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
208 8.2: SAM alignments
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
209
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
210 The number of loci Nmap a read maps to (multi-mapping) is given by NH:i: field.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
211 The mapping quality MAPQ (column 5) is 255 for uniquely mapping reads, and int(-10*log10(1-1/Nmap)) for
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
212 multi-mapping reads. This scheme is same as the one used by Tophat and is compatible with Cufflinks.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
213
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
214 For multi-mappers, all alignments except one are marked with 0x100 (secondary alignment) in the FLAG
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
215 column 2. The un-marked alignment is either the best one (i.e. highest scoring), or is randomly selected from
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
216 the alignments of equal quality.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
217
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
218 8.2.1: Standard SAM attributes
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
219 With default --outSAMattributes Standard option the following SAM attributes will be generated:
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
220
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
221 Column 12: NH: number of loci a read (pair) maps to
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
222 Column 13: IH: alignment index for all alignments of a read
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
223 Column 14: aS: alignment score
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
224 Column 15: nM: number of mismatches (does not include indels)
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
225
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
226 8.2.2: Extra SAM attrbiutes
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
227 If --outSAMattributes All option is used, the following additional attributes will be output:
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
228
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
229 Column 16: jM:B:c,M1,M2,... Intron motifs for all junctions (i.e. N in CIGAR):
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
230 0: non-canonical; 1:GT/AG, 2: CT/AC, 3: GC/AG, 4: CT/GC, 5: AT/AC, 6: GT/AT.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
231
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
232 If splice junctions database is used, and a junction is annotated, 20 is added to its motif value.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
233 Column 17: jI:B:I,Start1,End1,Start2,End2,... Start and End of introns for all junctions (1-based)
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
234
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
235 Note, that samtools 0.1.18 or later have to be used with these extra attributes.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
236
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
237
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
238 8.2.3: XS SAM strand attribute for Cufflinks/Cuffdiff
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
239
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
240 If you have un-stranded RNA-seq data, and wish to run Cufflinks/Cuffdiff on STAR alignments, you will
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
241 need to run STAR with --outSAMstrandField intronMotif option, which will generate the XS
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
242 strand attribute for all alignments that contain splice junctions. The spliced alignments that have undefined
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
243 strand (i.e. containing only non-canonical junctions) will be suppressed.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
244
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
245 If you have stranded RNA-seq data, you do not need to use any specific STAR options. Instead, you need
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
246 to run Cufflinks with the library option --library-type options. For example, cufflinks with
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
247 library-type fr-firststrand should be used for the “standard” dUTP protocol.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
248 This option has to be used only for Cufflinks runs and not for STAR runs.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
249
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
250 It is recommended to remove the non-canonical junctions for Cufflinks runs using –
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
251
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
252 --outFilterIntronMotifs RemoveNoncanonical
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
253 filter out alignments that contain non-canonical junctions
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
254
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
255 OR
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
256
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
257 --outFilterIntronMotifs RemoveNoncanonicalUnannotated
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
258 filter out alignments that contain non-canonical unannotated junctions
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
259 when using annotated splice junctions database. The annotated non-
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
260 canonical junctions will be kept.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
261
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
262
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
263 **Attributions**
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
264
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
265 Note that each component has its own license. Good luck with figuring out your obligations.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
266
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
267 rna_star - see the web site at rna_star_
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
268
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
269 For details, please see the rna_starMS_
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
270 "STAR: ultrafast universal RNA-seq aligner"
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
271 A. Dobin et al, Bioinformatics 2012; doi: 10.1093/bioinformatics/bts635
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
272
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
273 Galaxy_ (that's what you are using right now!) for gluing everything together
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
274
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
275 Most of the work for this wrapper XML is Jeremy Goecks' original STAR_ wrapper
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
276
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
277 Minor tweaks to output names to suit our downstream purposes, toolshed automated dependencies
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
278 and odds and ends of other code and documentation comprising this tool was
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
279 written by Ross Lazarus and that part is licensed_ the same way as other rgenetics artefacts
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
280
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
281 .. _STAR: https://bitbucket.org/jgoecks/jeremys-code/raw/fa1930a689b8e2f6b59cc1706e5ba0ed8ad357be/galaxy/tool-wrappers/star.xml
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
282 .. _licensed: http://creativecommons.org/licenses/by-nc-nd/3.0/
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
283 .. _rna_star: http://code.google.com/p/rna-star/
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
284 .. _rna_starMS: http://bioinformatics.oxfordjournals.org/content/29/1/15.full
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
285 .. _Galaxy: http://getgalaxy.org
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
286
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
287 </help>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
288 </tool>