0
|
1 <tool id="shm_csr" name="SHM & CSR pipeline" version="1.0">
|
|
2 <description></description>
|
56
|
3 <requirements>
|
69
|
4 <requirement type="package" version="2.7">python</requirement>
|
67
|
5 <requirement type="package" version="1.16.0">numpy</requirement>
|
|
6 <requirement type="package" version="1.2.0">xlrd</requirement>
|
|
7 <requirement type="package" version="3.0.0">r-ggplot2</requirement>
|
|
8 <requirement type="package" version="1.4.3">r-reshape2</requirement>
|
|
9 <requirement type="package" version="0.5.0">r-scales</requirement>
|
|
10 <requirement type="package" version="3.4_5">r-seqinr</requirement>
|
|
11 <requirement type="package" version="1.11.4">r-data.table</requirement>
|
72
|
12 <requirement type="package" version="0.4.5">changeo</requirement>
|
56
|
13 </requirements>
|
0
|
14 <command interpreter="bash">
|
49
|
15 #if str ( $filter_unique.filter_unique_select ) == "remove":
|
|
16 wrapper.sh $in_file custom $out_file $out_file.files_path "${in_file.name}" "-" $functionality $unique $naive_output_cond.naive_output $naive_output_ca $naive_output_cg $naive_output_cm $naive_output_ce $naive_output_all $filter_unique.filter_unique_select $filter_unique.filter_unique_clone_count $class_filter_cond.class_filter $empty_region_filter $fast
|
|
17 #else:
|
|
18 wrapper.sh $in_file custom $out_file $out_file.files_path "${in_file.name}" "-" $functionality $unique $naive_output_cond.naive_output $naive_output_ca $naive_output_cg $naive_output_cm $naive_output_ce $naive_output_all $filter_unique.filter_unique_select 2 $class_filter_cond.class_filter $empty_region_filter $fast
|
|
19 #end if
|
0
|
20 </command>
|
|
21 <inputs>
|
56
|
22 <param name="in_file" type="data" format="data" label="IMGT zip file to be analysed" />
|
0
|
23 <param name="empty_region_filter" type="select" label="Sequence starts at" help="" >
|
1
|
24 <option value="leader" selected="true">Leader: include FR1, CDR1, FR2, CDR2, FR3 in filters</option>
|
0
|
25 <option value="FR1" selected="true">FR1: include CDR1,FR2,CDR2,FR3 in filters</option>
|
|
26 <option value="CDR1">CDR1: include FR2,CDR2,FR3 in filters</option>
|
|
27 <option value="FR2">FR2: include CDR2,FR3 in filters</option>
|
|
28 </param>
|
|
29 <param name="functionality" type="select" label="Functionality filter" help="" >
|
1
|
30 <option value="productive" selected="true">Productive (Productive and Productive see comment)</option>
|
|
31 <option value="unproductive">Unproductive (Unproductive and Unproductive see comment)</option>
|
|
32 <option value="remove_unknown">Productive and Unproductive (Productive, Productive see comment, Unproductive, Unproductive and Unproductive see comment)</option>
|
0
|
33 </param>
|
51
|
34 <conditional name="filter_unique">
|
49
|
35 <param name="filter_unique_select" type="select" label="Filter unique sequences" help="See below for an example.">
|
|
36 <option value="remove" selected="true">Remove uniques (Based on nucleotide sequence + C)</option>
|
60
|
37 <option value="remove_vjaa">Remove uniques (Based on V+J+CDR3 (AA))</option>
|
49
|
38 <option value="keep">Keep uniques (Based on nucleotide sequence + C)</option>
|
|
39 <option value="no">No</option>
|
|
40 </param>
|
|
41 <when value="remove">
|
|
42 <param name="filter_unique_clone_count" size="4" type="integer" label="How many sequences should be in a group to keep 1 of them" value="2" min="2"/>
|
|
43 </when>
|
56
|
44 <when value="keep"></when>
|
|
45 <when value="no"></when>
|
49
|
46 </conditional>
|
0
|
47 <param name="unique" type="select" label="Remove duplicates based on" help="" >
|
14
|
48 <option value="VGene,CDR3.IMGT.AA,best_match_class">Top.V.Gene, CDR3 (AA), C region</option>
|
|
49 <option value="VGene,CDR3.IMGT.AA">Top.V.Gene, CDR3 (AA)</option>
|
|
50 <option value="CDR3.IMGT.AA,best_match_class">CDR3 (AA), C region</option>
|
|
51 <option value="CDR3.IMGT.AA">CDR3 (AA)</option>
|
0
|
52
|
29
|
53 <option value="VGene,CDR3.IMGT.seq,best_match_class">Top.V.Gene, CDR3 (nt), C region</option>
|
0
|
54 <option value="VGene,CDR3.IMGT.seq">Top.V.Gene, CDR3 (nt)</option>
|
13
|
55 <option value="CDR3.IMGT.seq,best_match_class">CDR3 (nt), C region</option>
|
0
|
56 <option value="CDR3.IMGT.seq">CDR3 (nt)</option>
|
10
|
57 <option value="Sequence.ID" selected="true">Don't remove duplicates</option>
|
0
|
58 </param>
|
18
|
59 <conditional name="class_filter_cond">
|
|
60 <param name="class_filter" type="select" label="Human Class/Subclass filter" help="" >
|
|
61 <option value="70_70" selected="true">>70% class and >70% subclass</option>
|
|
62 <option value="60_55">>60% class and >55% subclass</option>
|
|
63 <option value="70_0">>70% class</option>
|
|
64 <option value="60_0">>60% class</option>
|
53
|
65 <option value="19_0">>19% class</option>
|
18
|
66 <option value="101_101">Do not assign (sub)class</option>
|
|
67 </param>
|
56
|
68 <when value="70_70"></when>
|
|
69 <when value="60_55"></when>
|
|
70 <when value="70_0"></when>
|
|
71 <when value="60_0"></when>
|
|
72 <when value="19_0"></when>
|
|
73 <when value="101_101"></when>
|
18
|
74 </conditional>
|
0
|
75 <conditional name="naive_output_cond">
|
|
76 <param name="naive_output" type="select" label="Output new IMGT archives per class into your history?">
|
|
77 <option value="yes">Yes</option>
|
|
78 <option value="no" selected="true">No</option>
|
|
79 </param>
|
56
|
80 <when value="yes"></when>
|
|
81 <when value="no"></when>
|
0
|
82 </conditional>
|
5
|
83 <param name="fast" type="select" label="Fast" help="Skips generating the new ZIP files and Change-O/Baseline" >
|
|
84 <option value="yes">Yes</option>
|
|
85 <option value="no" selected="true">No</option>
|
|
86 </param>
|
0
|
87 </inputs>
|
|
88 <outputs>
|
|
89 <data format="html" name="out_file" label = "SHM & CSR on ${in_file.name}"/>
|
31
|
90 <data format="imgt_archive" name="naive_output_ca" label = "Filtered IMGT IGA: ${in_file.name}" >
|
0
|
91 <filter>naive_output_cond['naive_output'] == "yes"</filter>
|
18
|
92 <filter>class_filter_cond['class_filter'] != "101_101"</filter>
|
0
|
93 </data>
|
31
|
94 <data format="imgt_archive" name="naive_output_cg" label = "Filtered IMGT IGG: ${in_file.name}" >
|
0
|
95 <filter>naive_output_cond['naive_output'] == "yes"</filter>
|
18
|
96 <filter>class_filter_cond['class_filter'] != "101_101"</filter>
|
0
|
97 </data>
|
31
|
98 <data format="imgt_archive" name="naive_output_cm" label = "Filtered IMGT IGM: ${in_file.name}" >
|
0
|
99 <filter>naive_output_cond['naive_output'] == "yes"</filter>
|
18
|
100 <filter>class_filter_cond['class_filter'] != "101_101"</filter>
|
0
|
101 </data>
|
31
|
102 <data format="imgt_archive" name="naive_output_ce" label = "Filtered IMGT IGE: ${in_file.name}" >
|
6
|
103 <filter>naive_output_cond['naive_output'] == "yes"</filter>
|
18
|
104 <filter>class_filter_cond['class_filter'] != "101_101"</filter>
|
|
105 </data>
|
31
|
106 <data format="imgt_archive" name="naive_output_all" label = "Filtered IMGT all: ${in_file.name}" >
|
18
|
107 <filter>naive_output_cond['naive_output'] == "yes"</filter>
|
|
108 <filter>class_filter_cond['class_filter'] == "101_101"</filter>
|
6
|
109 </data>
|
0
|
110 </outputs>
|
56
|
111 <tests>
|
|
112 <test>
|
|
113 <param name="fast" value="yes"/>
|
|
114 <output name="out_file" file="test1.html"/>
|
|
115 </test>
|
|
116 </tests>
|
0
|
117 <help>
|
15
|
118 <![CDATA[
|
|
119 **References**
|
|
120
|
|
121 Yaari, G. and Uduman, M. and Kleinstein, S. H. (2012). Quantifying selection in high-throughput Immunoglobulin sequencing data sets. In *Nucleic Acids Research, 40 (17), pp. e134–e134.* [`doi:10.1093/nar/gks457`_]
|
|
122
|
|
123 .. _doi:10.1093/nar/gks457: http://dx.doi.org/10.1093/nar/gks457
|
|
124
|
|
125 Gupta, Namita T. and Vander Heiden, Jason A. and Uduman, Mohamed and Gadala-Maria, Daniel and Yaari, Gur and Kleinstein, Steven H. (2015). Change-O: a toolkit for analyzing large-scale B cell immunoglobulin repertoire sequencing data: Table 1. *In Bioinformatics, 31 (20), pp. 3356–3358.* [`doi:10.1093/bioinformatics/btv359`_]
|
|
126
|
|
127 .. _doi:10.1093/bioinformatics/btv359: http://dx.doi.org/10.1093/bioinformatics/btv359
|
|
128
|
|
129 -----
|
|
130
|
|
131 **Input files**
|
|
132
|
39
|
133 IMGT/HighV-QUEST .zip and .txz are accepted as input files. The file to be analysed can be selected using the dropdown menu.
|
15
|
134
|
|
135 .. class:: infomark
|
|
136
|
39
|
137 Note: Files can be uploaded by using “get data” and “upload file” and selecting “IMGT archive“ as a file type. Special characters should be prevented in the file names of the uploaded samples as these can give errors when running the immune repertoire pipeline. Underscores are allowed in the file names.
|
15
|
138
|
|
139 -----
|
|
140
|
|
141 **Sequence starts at**
|
|
142
|
|
143 Identifies the region which will be included in the analysis (analysed region)
|
|
144
|
39
|
145 - Sequences which are missing a gene region (FR1/CDR1 etc) in the analysed region are excluded.
|
|
146 - Sequences containing an ambiguous base in the analysed region or the CDR3 are excluded.
|
|
147 - All other filtering/analysis is based on the analysed region.
|
15
|
148
|
|
149 -----
|
|
150
|
|
151 **Functionality filter**
|
|
152
|
39
|
153 Allows filtering on productive rearrangements, unproductive rearrangements or both based on the assignment provided by IMGT.
|
15
|
154
|
|
155 **Filter unique sequences**
|
|
156
|
|
157 *Remove unique:*
|
|
158
|
|
159
|
30
|
160 This filter consists of two different steps.
|
|
161
|
39
|
162 Step 1: removes all sequences of which the nucleotide sequence in the “analysed region” and the CDR3 (see sequence starts at filter) occurs only once. (Sub)classes are not taken into account in this filter step.
|
15
|
163
|
39
|
164 Step 2: removes all duplicate sequences (sequences with the exact same nucleotide sequence in the analysed region, the CDR3 and the same (sub)class).
|
15
|
165
|
30
|
166 .. class:: infomark
|
15
|
167
|
39
|
168 This means that sequences with the same nucleotide sequence but a different (sub)class will be included in the results of both (sub)classes.
|
15
|
169
|
|
170 *Keep unique:*
|
|
171
|
30
|
172 Removes all duplicate sequences (sequences with the exact same nucleotide sequence in the analysed region and the same (sub)class).
|
15
|
173
|
|
174 Example of the sequences that are included using either the “remove unique filter” or the “keep unique filter”
|
|
175
|
|
176 +--------------------------+
|
|
177 | unique filter |
|
|
178 +--------+--------+--------+
|
|
179 | values | remove | keep |
|
|
180 +--------+--------+--------+
|
|
181 | A | A | A |
|
|
182 +--------+--------+--------+
|
|
183 | A | B | B |
|
|
184 +--------+--------+--------+
|
|
185 | B | D | C |
|
|
186 +--------+--------+--------+
|
|
187 | B | | D |
|
|
188 +--------+--------+--------+
|
|
189 | C | | |
|
|
190 +--------+--------+--------+
|
|
191 | D | | |
|
|
192 +--------+--------+--------+
|
|
193 | D | | |
|
|
194 +--------+--------+--------+
|
|
195
|
|
196 -----
|
|
197
|
|
198 **Remove duplicates based on**
|
|
199
|
|
200 Allows the selection of a single sequence per clone. Different definitions of a clone can be chosen.
|
|
201
|
|
202 .. class:: infomark
|
|
203
|
39
|
204 Note: The first sequence (in the data set) of each clone is always included in the analysis. When the first matched sequence is unmatched (no subclass assigned) the first matched sequence will be included. This means that altering the data order (by for instance sorting) can change the sequence which is included in the analysis and therefore slightly influences the results.
|
15
|
205
|
|
206 -----
|
|
207
|
|
208 **Human Class/Subclass filter**
|
|
209
|
|
210 .. class:: warningmark
|
|
211
|
39
|
212 Note: This filter should only be applied when analysing human IGH data in which a (sub)class specific sequence is present. Otherwise please select the do not assign (sub)class option to prevent errors when running the pipeline.
|
15
|
213
|
|
214 The class percentage is based on the ‘chunk hit percentage’ (see below). The subclass percentage is based on the ‘nt hit percentage’ (see below).
|
|
215
|
|
216 The SHM & CSR pipeline identifies human Cµ, Cα, Cγ and Cε constant genes by dividing the reference sequences for the subclasses (NG_001019) in 8 nucleotide chunks which overlap by 4 nucleotides. These overlapping chunks are then individually aligned in the right order to each input sequence. This alignment is used to calculate the chunck hit percentage and the nt hit percentage.
|
|
217
|
39
|
218 *Chunk hit percentage*: The percentage of the chunks that is aligned
|
15
|
219
|
47
|
220 *Nt hit percentage*: The percentage of chunks covering the subclass specific nucleotide match with the different subclasses. The most stringent filter for the subclass is 70% ‘nt hit percentage’ which means that 5 out of 7 subclass specific nucleotides for Cα or 6 out of 8 subclass specific nucleotides of Cγ should match with the specific subclass.
|
|
221 The option “>25% class” can be chosen when you only are interested in the class (Cα/Cγ/Cµ/Cɛ) of your sequences and the length of your sequence is not long enough to assign the subclasses.
|
15
|
222
|
|
223 -----
|
|
224
|
|
225 **Output new IMGT archives per class into your history?**
|
|
226
|
39
|
227 If yes is selected, additional output files (one for each class) will be added to the history which contain information of the sequences that passed the selected filtering criteria. These files are in the same format as the IMGT/HighV-QUEST output files and therefore are also compatible with many other analysis programs, such as the Immune repertoire pipeline.
|
|
228
|
|
229 -----
|
|
230
|
|
231 **Execute**
|
|
232
|
|
233 Upon pressing execute a new analysis is added to your history (right side of the page). Initially this analysis will be grey, after initiating the analysis colour of the analysis in the history will change to yellow. When the analysis is finished it will turn green in the history. Now the analysis can be opened by clicking on the eye icon on the analysis of interest. When an analysis turns red an error has occurred when running the analysis. If you click on the analysis title additional information can be found on the analysis. In addition a bug icon appears. Here more information on the error can be found.
|
15
|
234
|
|
235 ]]>
|
0
|
236 </help>
|
56
|
237 <citations>
|
|
238 <citation type="doi">10.1093/nar/gks457</citation>
|
|
239 <citation type="doi">10.1093/bioinformatics/btv359</citation>
|
|
240 </citations>
|
0
|
241 </tool>
|