annotate rg_rnaStar.xml @ 24:a711b92d85c1 draft

Uploaded
author fubar
date Wed, 05 Mar 2014 19:06:51 -0500
parents 64d3abfb8535
children 1903b1fe70fc
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>
23
64d3abfb8535 Uploaded
fubar
parents: 21
diff changeset
4 <requirement type="package" version="2.3.1z">rnastar</requirement>
19
ca0e1cfec8c7 Uploaded
fubar
parents: 16
diff changeset
5 <requirement type="package" version="0.1.19">samtools</requirement>
15
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
6 </requirements>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
7 <command>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
8 ##
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
9 ## Run STAR.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
10 ##
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 STAR
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
13 ## Can adjust this as appropriate for the system.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
14 --genomeLoad NoSharedMemory
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
15
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
16 --genomeDir ${refGenomeSource.index.fields.path}
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
17 --readFilesIn $input1
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
18 #if $singlePaired.sPaired == "paired"
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
19 $singlePaired.input2
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
20 #end if
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
21 --runThreadN 4
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
22 #if $params.settingsType == "full":
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
23 --chimSegmentMin $params.chim_segment_min
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
24 --chimScoreMin $params.chim_score_min
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
25 #end if
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
26
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
27 ## 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
28 ${outSAMstrandField} ${outFilterIntronMotifs} ${outSAMattributes}
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
29
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 ## BAM conversion.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
34 ##
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 ## Convert aligned reads.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
37 samtools view -Shb Aligned.out.sam | samtools sort - Aligned.out
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
38
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
39 ## Convert chimeric reads.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
40 #if $params.settingsType == "full" and $params.chim_segment_min > 0:
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
41 ; samtools view -Shb Chimeric.out.sam | samtools sort - Chimeric.out
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
42 #end if
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
43 </command>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
44
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
45 <stdio>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
46 <regex match=".*" source="both" level="warning" description="generic stdout/err chatter"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
47 </stdio>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
48
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
49 <inputs>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
50 <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
51 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
52 <sanitizer invalid_char="">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
53 <valid initial="string.letters,string.digits"><add value="_" /> </valid>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
54 </sanitizer>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
55 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
56 <!-- FASTQ input(s) and options specifically for paired-end data. -->
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
57 <conditional name="singlePaired">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
58 <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
59 <option value="single" selected="true">Single-end</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
60 <option value="paired">Paired-end</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
61 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
62 <when value="single">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
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"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
64 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
65 <when value="paired">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
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" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
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" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
68 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
69 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
70
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
71 <!-- Genome source. -->
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
72 <conditional name="refGenomeSource">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
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">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
74 <option value="indexed">Use a built-in index</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
75 <option value="history">Use one from the history</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
76 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
77 <when value="indexed">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
78 <param name="index" type="select" label="Select a reference genome">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
79 <options from_data_table="rnastar_indexes">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
80 <filter type="sort_by" column="2"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
81 <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
82 </options>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
83 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
84 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
85 <when value="history">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
86 <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
87 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
88 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
89 <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
90 <option value="--outSAMattributes Standard">Standard - eg for old Samtools downstream</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
91 <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
92 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
93 <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
94 <option value="--outSAMstrandField intronMotif" selected="true">Add XS for cufflinks</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
95 <option value="">No XS added to sam output</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
96 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
97 <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
98 <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
99 <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
100 <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
101 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
102 <!-- Parameter settings. -->
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
103 <conditional name="params">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
104 <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
105 <option value="preSet" selected="true">Use Defaults</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
106 <option value="full">Full parameter list</option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
107 </param>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
108 <when value="preSet" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
109 <!-- Full/advanced params. -->
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
110 <when value="full">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
111 <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
112 <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
113
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
114 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
115 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
116 </inputs>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
117
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
118 <outputs>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
119 <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
120 <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
121 <filter>(params['settingsType'] == 'full' and params['chim_segment_min'] > 0)</filter>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
122 <actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
123 <conditional name="refGenomeSource.genomeSource">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
124 <when value="indexed">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
125 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
126 <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
127 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
128 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
129 </option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
130 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
131 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
132 <when value="history">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
133 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
134 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
135 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
136 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
137 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
138 </actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
139 </data>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
140 <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
141 from_work_dir="Chimeric.out.bam">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
142 <filter>(params['settingsType'] == 'full' and params['chim_segment_min'] > 0)</filter>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
143 <actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
144 <conditional name="refGenomeSource.genomeSource">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
145 <when value="indexed">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
146 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
147 <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
148 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
149 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
150 </option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
151 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
152 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
153 <when value="history">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
154 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
155 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
156 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
157 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
158 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
159 </actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
160 </data>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
161 <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
162 from_work_dir="SJ.out.tab">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
163 <actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
164 <conditional name="refGenomeSource.genomeSource">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
165 <when value="indexed">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
166 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
167 <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
168 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
169 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
170 </option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
171 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
172 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
173 <when value="history">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
174 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
175 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
176 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
177 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
178 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
179 </actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
180 </data>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
181 <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
182 from_work_dir="Aligned.out.bam">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
183 <actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
184 <conditional name="refGenomeSource.genomeSource">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
185 <when value="indexed">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
186 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
187 <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
188 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
189 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
190 </option>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
191 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
192 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
193 <when value="history">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
194 <action type="metadata" name="dbkey">
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
195 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
196 </action>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
197 </when>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
198 </conditional>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
199 </actions>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
200 </data>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
201 </outputs>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
202 <help>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
203
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
204 **What it does**
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
205 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
206
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
207 8.2: SAM alignments
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
208
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
209 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
210 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
211 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
212
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
213 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
214 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
215 the alignments of equal quality.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
216
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
217 8.2.1: Standard SAM attributes
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
218 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
219
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
220 Column 12: NH: number of loci a read (pair) maps to
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
221 Column 13: IH: alignment index for all alignments of a read
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
222 Column 14: aS: alignment score
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
223 Column 15: nM: number of mismatches (does not include indels)
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
224
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
225 8.2.2: Extra SAM attrbiutes
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
226 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
227
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
228 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
229 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
230
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
231 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
232 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
233
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
234 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
235
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 8.2.3: XS SAM strand attribute for Cufflinks/Cuffdiff
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
238
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
239 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
240 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
241 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
242 strand (i.e. containing only non-canonical junctions) will be suppressed.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
243
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
244 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
245 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
246 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
247 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
248
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
249 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
250
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
251 --outFilterIntronMotifs RemoveNoncanonical
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
252 filter out alignments that contain non-canonical junctions
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
253
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
254 OR
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
255
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
256 --outFilterIntronMotifs RemoveNoncanonicalUnannotated
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
257 filter out alignments that contain non-canonical unannotated junctions
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
258 when using annotated splice junctions database. The annotated non-
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
259 canonical junctions will be kept.
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
260
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 **Attributions**
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
263
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
264 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
265
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
266 rna_star - see the web site at rna_star_
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
267
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
268 For details, please see the rna_starMS_
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
269 "STAR: ultrafast universal RNA-seq aligner"
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
270 A. Dobin et al, Bioinformatics 2012; doi: 10.1093/bioinformatics/bts635
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
271
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
272 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
273
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
274 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
275
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
276 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
277 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
278 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
279
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
280 .. _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
281 .. _licensed: http://creativecommons.org/licenses/by-nc-nd/3.0/
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
282 .. _rna_star: http://code.google.com/p/rna-star/
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
283 .. _rna_starMS: http://bioinformatics.oxfordjournals.org/content/29/1/15.full
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
284 .. _Galaxy: http://getgalaxy.org
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
285
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
286 </help>
9d72d0221c7f Changed over to a separate STAR package dependency
fubar
parents:
diff changeset
287 </tool>