5
|
1 <tool id="extract" name="Extract" force_history_refresh="True">
|
|
2 <description>copy number or allele B fraction signal</description>
|
|
3 <requirement type="package" version="1.1.2">mpagenomics</requirement>
|
|
4 <command interpreter="python">
|
|
5 extractCN.py
|
|
6 --chrom '$chrom'
|
|
7 --input '$input'
|
|
8 --output '$output'
|
|
9 --new_file_path '$__new_file_path__'
|
|
10 #if $settings.settingsType == "file":
|
|
11 --settings_type '$settings.inputs'
|
|
12 #end if
|
|
13 #if $settings.settingsType == "dataset":
|
|
14 --settings_type 'dataset'
|
|
15 #end if
|
|
16 #if $settingsSNP.signal == "fracB":
|
|
17 --settings_snp 'TRUE'
|
|
18
|
|
19 #if $settingsSNP.sym.symmetrize=="TRUE"
|
|
20 --settings_tumor '$tumorcsvFracBsym'
|
|
21 #elif $settingsSNP.sym.symmetrize=="FALSE"
|
|
22 #if $settingsSNP.sym.settingsTumorFracB.settingsTypeTumorFracB == "standard":
|
|
23 --settings_tumor 'None'
|
|
24 #elif $settingsSNP.sym.settingsTumorFracB.settingsTypeTumorFracB == "tumor":
|
|
25 --settings_tumor '$tumorcsvFracB'
|
|
26 #end if
|
|
27 #end if
|
|
28 --symmetrize '$settingsSNP.sym.symmetrize'
|
|
29 #else
|
|
30 --settings_snp '$settingsSNP.snp'
|
|
31 #if $settingsSNP.settingsTumor.settingsTypeTumor == "standard":
|
|
32 --settings_tumor 'None'
|
|
33 #elif $settingsSNP.settingsTumor.settingsTypeTumor == "tumor":
|
|
34 --settings_tumor '$tumorcsvCN'
|
|
35 #end if
|
|
36 #end if
|
|
37 --outputlog '$outputlog'
|
|
38 --log '$log'
|
|
39 --settings_signal '$settingsSNP.signal'
|
|
40 --userid '$__user_id__'
|
|
41 </command>
|
|
42 <inputs>
|
|
43 <param name="input" type="data" format="dsf" label="Dataset summary file" help="Summary text file generated by the Data normalization tool"/>
|
|
44 <conditional name="settings">
|
|
45 <param name="settingsType" type="select" label="Files selection Mode" help="Select the whole cel files dataset or pick-up only few files from the dataset">
|
|
46 <option value="dataset">Select whole dataset</option>
|
|
47 <option value="file">Select file individually</option>
|
|
48 </param>
|
|
49 <when value="dataset"/>
|
|
50 <when value="file">
|
|
51 <param name="inputs" type="select" format="cel" multiple="true" label="Cel files">
|
|
52 <options from_dataset="input">
|
|
53 <column name="name" index="0"/>
|
|
54 <column name="value" index="0"/>
|
|
55 </options>
|
|
56 </param>
|
|
57 </when>
|
|
58 </conditional>
|
|
59
|
|
60 <conditional name="settingsSNP">
|
|
61 <param name="signal" type="select" multiple="false" label="Signal you want to work on">
|
|
62 <option value="CN">CN</option>
|
|
63 <option value="fracB">fracB</option>
|
|
64 </param>
|
|
65 <when value="fracB">
|
|
66 <conditional name="sym">
|
|
67 <param name="symmetrize" type="select" label="Symmetrize allele B signal">
|
|
68 <option value="TRUE">Yes</option>
|
|
69 <option value="FALSE">No</option>
|
|
70 </param>
|
|
71 <when value="TRUE">
|
|
72 <param name="tumorcsvFracBsym" type="data" format="csv" label="Normal-tumor csv file" help="Normal-tumor csv file. See below for more information."/>
|
|
73 </when>
|
|
74 <when value="FALSE">
|
|
75 <conditional name="settingsTumorFracB">
|
|
76 <param name="settingsTypeTumorFracB" type="select" label="Reference">
|
|
77 <option value="standard">Study without reference</option>
|
|
78 <option value="tumor">Normal-tumor study</option>
|
|
79 </param>
|
|
80 <when value="standard"/>
|
|
81 <when value="tumor">
|
|
82 <param name="tumorcsvFracB" type="data" format="csv" label="Tumor boost csv file" help="Normal-tumor csv file. See below for more information."/>
|
|
83 </when>
|
|
84 </conditional>
|
|
85 </when>
|
|
86 </conditional>
|
|
87 </when>
|
|
88 <when value="CN">
|
|
89 <conditional name="settingsTumor">
|
|
90 <param name="settingsTypeTumor" type="select" label="Reference">
|
|
91 <option value="standard">Study without reference</option>
|
|
92 <option value="tumor">Normal-tumor study</option>
|
|
93 </param>
|
|
94 <when value="standard"/>
|
|
95 <when value="tumor">
|
|
96 <param name="tumorcsvCN" type="data" format="csv" label="Normal tumor csv file" help="Normal-tumor csv file. See below for more information."/>
|
|
97 </when>
|
|
98 </conditional>
|
|
99 <param name="snp" type="select" label="Select Probes">
|
|
100 <option value="FALSE">CN and SNP probes</option>
|
|
101 <option value="TRUE">Only SNP probes</option>
|
|
102 </param>
|
|
103 </when>
|
|
104 </conditional>
|
|
105
|
|
106 <!--param name="chrom" type="text" value="All" label="Chromosomes" help="Chromosomes to segment. Use comma to choose multiple chromosomes: e.g. 1, 3, 8. Use 'All' for a segmentation on all chromosomes" /-->
|
|
107
|
|
108 <param name="chrom" type="select" size="6" multiple="true" label="Chromosomes" help="You can select several chromosomeleave blank for all chromosomes">
|
|
109 <option value="All">All</option>
|
|
110 <option value="1">chr 1</option>
|
|
111 <option value="2">chr 2</option>
|
|
112 <option value="3">chr 3</option>
|
|
113 <option value="4">chr 4</option>
|
|
114 <option value="5">chr 5</option>
|
|
115 <option value="6">chr 6</option>
|
|
116 <option value="7">chr 7</option>
|
|
117 <option value="8">chr 8</option>
|
|
118 <option value="9">chr 9</option>
|
|
119 <option value="10">chr 10</option>
|
|
120 <option value="11">chr 11</option>
|
|
121 <option value="12">chr 12</option>
|
|
122 <option value="13">chr 13</option>
|
|
123 <option value="14">chr 14</option>
|
|
124 <option value="15">chr 15</option>
|
|
125 <option value="16">chr 16</option>
|
|
126 <option value="17">chr 17</option>
|
|
127 <option value="18">chr 18</option>
|
|
128 <option value="19">chr 19</option>
|
|
129 <option value="20">chr 20</option>
|
|
130 <option value="21">chr 21</option>
|
|
131 <option value="22">chr 22</option>
|
|
132 <option value="23">chr 23</option>
|
|
133 <option value="24">chr 24</option>
|
|
134 <option value="25">chr 25</option>
|
|
135
|
|
136 </param>
|
|
137
|
|
138 <param name="outputlog" type="select" label="Output log">
|
|
139 <option value="TRUE">Yes</option>
|
|
140 <option value="FALSE">No</option>
|
|
141 </param>
|
|
142 </inputs>
|
|
143 <outputs>
|
|
144 <data format="sef" name="output" label="signal extraction of ${input.name}" />
|
|
145 <data format="log" name="log" label="log of signal extraction of ${input.name}">
|
|
146 <filter>outputlog == "TRUE"</filter>
|
|
147 </data>
|
|
148 </outputs>
|
|
149 <stdio>
|
|
150 <exit_code range="1:" level="fatal" description="See logs for more details" />
|
|
151 </stdio>
|
|
152 <help>
|
|
153 .. class:: warningmark
|
|
154
|
|
155 Data normalization must be run (with the data normalization tool) prior to signal extraction.
|
|
156
|
|
157 -----
|
|
158
|
|
159 **What it does**
|
|
160 This tool extracts the copy number profile from the normalized data.
|
|
161
|
|
162 Outputs:
|
|
163
|
|
164 *A tabular text file containing 3 fixed columns and 1 column per sample:*
|
|
165
|
|
166 - chr: Chromosome.
|
|
167 - position: Genomic position (in bp).
|
|
168 - probeNames: Name of the probes of the microarray.
|
|
169 - One column per sample which contains the copy number profile for each sample.
|
|
170
|
|
171 -----
|
|
172
|
|
173 **Normal-tumor study**
|
|
174
|
|
175 In cases where normal (control) samples match to tumor samples, normalization can be improved using TumorBoost. In this case, a normal-tumor csv file must be provided :
|
|
176
|
|
177 - The first column contains the names of the files corresponding to normal samples of the dataset.
|
|
178
|
|
179 - The second column contains the names of the tumor samples files.
|
|
180
|
|
181 - Column names of these two columns are respectively normal and tumor.
|
|
182
|
|
183 - Columns are separated by a comma.
|
|
184
|
|
185 - *Extensions of the files (.CEL for example) should be removed*
|
|
186
|
|
187
|
|
188
|
|
189 **Example**
|
|
190
|
|
191 Let 6 .cel files in the studied dataset (3 patients, each of them being represented by a couple of normal and tumor cel files.) ::
|
|
192
|
|
193 patient1_normal.cel
|
|
194 patient1_tumor.cel
|
|
195 patient2_normal.cel
|
|
196 patient2_tumor.cel
|
|
197 patient3_normal.cel
|
|
198 patient3_tumor.cel
|
|
199
|
|
200
|
|
201 The csv file should look like this ::
|
|
202
|
|
203 normal,tumor
|
|
204 patient1_normal,patient1_tumor
|
|
205 patient2_normal,patient2_tumor
|
|
206 patient3_normal,patient3_tumor
|
|
207
|
|
208 -----
|
|
209
|
|
210
|
|
211 **Citation**
|
|
212
|
|
213 If you use this tool please cite :
|
|
214
|
|
215 `Q. Grimonprez, A. Celisse, M. Cheok, M. Figeac, and G. Marot. Mpagenomics : An r package for multi-patients analysis of genomic markers, 2014. Preprint <http://fr.arxiv.org/abs/1401.5035>`_
|
|
216
|
|
217
|
|
218 </help>
|
|
219 </tool>
|