36
|
1 <!--Sequenza - developed by Jocelyn Brayet <jocelyn.brayet@curie.fr>
|
|
2 Copyright (C) 2015 Institut Curie
|
|
3
|
|
4 This program is free software: you can redistribute it and/or modify
|
|
5 it under the terms of the GNU General Public License as published by
|
|
6 the Free Software Foundation, either version 3 of the License, or
|
|
7 (at your option) any later version.
|
|
8
|
|
9 This program is distributed in the hope that it will be useful,
|
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 GNU General Public License for more details.
|
|
13
|
|
14 You should have received a copy of the GNU General Public License
|
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>.-->
|
|
16 <tool id="sequenza_tool" name="Sequenza" version="1.2">
|
|
17 <description>allele-specific copy number and mutation profiles</description>
|
|
18 <requirements>
|
|
19 <requirement type="package" version="2.11.1">fontconfig</requirement>
|
|
20 <requirement type="package" version="2.7">python</requirement>
|
|
21 <requirement type="package" version="2.1.1">sequenza</requirement>
|
|
22 <requirement type="package" version="1.1">samtools</requirement>
|
|
23 </requirements>
|
|
24 <command interpreter="python">
|
|
25 sequenza_wrapper.py -name $sampleName -outGalaxy $HTMLFile -format $fileFormat.format -estimation $usePersonalEstimation.estimation -gcContent $gc_content_file
|
|
26 #if $fileFormat.format == "BAM":
|
|
27 #if $fileFormat.reference_source.reference_source_selector=="cached":
|
|
28 -normal $fileFormat.reference_source.normal_file
|
|
29 -tumor $fileFormat.reference_source.tumor_file
|
|
30 -ref_file $fileFormat.reference_source.ref_file.fields.path
|
|
31 -samtools_options '
|
|
32 $fileFormat.skip_anomalous_read_pairs
|
|
33 $fileFormat.disable_probabilistic_realignment
|
|
34 -d "$fileFormat.max_reads_per_bam"
|
|
35 -q "$fileFormat.minimum_mapping_quality"
|
|
36 -Q "$fileFormat.minimum_base_quality"
|
|
37 '
|
|
38 #else:
|
|
39 -normal $fileFormat.reference_source.normal_file
|
|
40 -tumor $fileFormat.reference_source.tumor_file
|
|
41 -ref_file $fileFormat.reference_source.ref_file
|
|
42 -samtools_options '
|
|
43 $fileFormat.skip_anomalous_read_pairs
|
|
44 $fileFormat.disable_probabilistic_realignment
|
|
45 -d "$fileFormat.max_reads_per_bam"
|
|
46 -q "$fileFormat.minimum_mapping_quality"
|
|
47 -Q "$fileFormat.minimum_base_quality"
|
|
48 '
|
|
49 #end if
|
|
50 #else:
|
|
51 -normal $fileFormat.normal_file
|
|
52 -tumor $fileFormat.tumor_file
|
|
53 #end if
|
|
54 #if $usePersonalEstimation.estimation == "yes":
|
|
55 -cellularity $usePersonalEstimation.cellularity
|
|
56 -ploidy $usePersonalEstimation.ploidy
|
|
57 #end if
|
|
58 </command>
|
|
59 <inputs>
|
|
60 <param name="sampleName" type="text" value="sample" size="30" label="Sample name">
|
|
61 <sanitizer invalid_char="">
|
|
62 <valid initial="string.letters,string.digits"><add value="_"/></valid>
|
|
63 </sanitizer>
|
|
64 </param>
|
|
65 <conditional name="fileFormat">
|
|
66 <param name="format" type="select" label="File format" >
|
|
67 <option value="BAM" selected="true">BAM</option>
|
|
68 <option value="pileup" >Pileup</option>
|
|
69 <option value="pileup_gz" >Pileup.gz</option>
|
|
70 </param>
|
|
71 <when value="BAM">
|
|
72 <conditional name="reference_source">
|
|
73 <param name="reference_source_selector" type="select" label="Choose the source for the reference list">
|
|
74 <option value="cached">Locally cached</option>
|
|
75 <option value="history">History</option>
|
|
76 </param>
|
|
77 <when value="cached">
|
|
78 <param name="normal_file" type="data" format="bam" label="Normal BAM file" >
|
|
79 <validator type="unspecified_build" />
|
|
80 <validator type="dataset_metadata_in_data_table" table_name="sam_fa_indexes" metadata_name="dbkey" metadata_column="value" message="Sequences are not currently available for the specified build." />
|
|
81 </param>
|
|
82 <param name="tumor_file" type="data" format="bam" label="Tumor BAM file" >
|
|
83 <validator type="unspecified_build" />
|
|
84 <validator type="dataset_metadata_in_data_table" table_name="sam_fa_indexes" metadata_name="dbkey" metadata_column="value" message="Sequences are not currently available for the specified build." />
|
|
85 </param>
|
|
86 <param name="ref_file" type="select" label="Using reference genome">
|
|
87 <options from_data_table="sam_fa_indexes">
|
|
88 </options>
|
|
89 </param>
|
|
90 </when>
|
|
91 <when value="history">
|
|
92 <param name="normal_file" type="data" format="bam" label="Normal BAM file" >
|
|
93 <validator type="metadata" check="bam_index" message="Metadata missing, click the pencil icon in the history item and use the auto-detect feature to correct this issue."/>
|
|
94 </param>
|
|
95 <param name="tumor_file" type="data" format="bam" label="Tumor BAM file" >
|
|
96 <validator type="metadata" check="bam_index" message="Metadata missing, click the pencil icon in the history item and use the auto-detect feature to correct this issue."/>
|
|
97 </param>
|
|
98 <param name="ref_file" type="data" format="fasta" label="Using reference file" />
|
|
99 </when>
|
|
100 </conditional>
|
|
101 <param name="skip_anomalous_read_pairs" type="boolean" truevalue="-A" falsevalue="" checked="False" label="Do not skip anomalous read pairs in variant calling" />
|
|
102 <param name="disable_probabilistic_realignment" type="boolean" truevalue="-B" falsevalue="" checked="False" label="Disable probabilistic realignment for the computation of base alignment quality (BAQ)" />
|
|
103 <param name="max_reads_per_bam" type="integer" value="100000" label="Max reads per BAM" />
|
|
104 <param name="minimum_mapping_quality" type="integer" value="20" label="Minimum mapping quality for an alignment to be used" />
|
|
105 <param name="minimum_base_quality" type="integer" value="13" label="Minimum base quality for a base to be considered" />
|
|
106 </when>
|
|
107 <when value="pileup">
|
|
108 <param name="normal_file" type="data" format="pileup" label="Normal pileup file" />
|
|
109 <param name="tumor_file" type="data" format="pileup" label="Tumor pileup file" />
|
|
110 </when>
|
|
111 <when value="pileup_gz">
|
|
112 <param name="normal_file" type="data" format="pileup.gz" label="Normal pileup.gz file" />
|
|
113 <param name="tumor_file" type="data" format="pileup.gz" label="Tumor pileup.gz file" />
|
|
114 </when>
|
|
115 </conditional >
|
|
116 <param name="gc_content_file" type="data" format="txt" label="GC content file" />
|
|
117 <conditional name="usePersonalEstimation">
|
|
118 <param name="estimation" type="select" label="Do you want to use personal cellularity and ploidy? Otherwise Sequenza estimates cellularity and ploidy" >
|
|
119 <option value="no" selected="true">No</option>
|
|
120 <option value="yes" >Yes</option>
|
|
121 </param>
|
|
122 <when value="no" />
|
|
123 <when value="yes">
|
|
124 <param name="cellularity" type="integer" value="30" min="0" max="100" label="Cellularity used (%)" />
|
|
125 <param name="ploidy" type="integer" value="2" label="Ploidy used" />
|
|
126 </when>
|
|
127 </conditional >
|
|
128 </inputs>
|
|
129 <outputs>
|
|
130 <data format="html" name="HTMLFile" label="HTML output - Sequenza results" />
|
|
131 </outputs>
|
|
132 <tests>
|
|
133 <test>
|
|
134 <param name="sampleName" value="test_curie"/>
|
|
135 <param name="fileFormat" value="pileup"/>
|
|
136 <param name="normal_file" value="constit_2.pileup"/>
|
|
137 <param name="tumor_file" value="tumor_2.pileup"/>
|
|
138 <param name="gc_content_file" value="hg19_chro1.gc50Base.txt"/>
|
|
139 <param name="estimation" value="yes"/>
|
|
140 <param name="cellularity" value="30"/>
|
|
141 <param name="ploidy" value="2"/>
|
|
142 <output name="HTMLFile" file="test_sequenza_1.dat" ftype="html"/>
|
|
143 </test>
|
|
144 </tests>
|
|
145 <help>
|
|
146
|
|
147 **What it does**
|
|
148
|
|
149 Tools to analyze genomic sequencing data from paired normal-tumor samples, including cellularity and ploidy estimation; mutation and copy number (allele-specific and total copy number) detection, quantification and visualization.
|
|
150
|
|
151 </help>
|
|
152 <citations>
|
|
153 <citation type="bibtex">@article{Favero01012015,
|
|
154 author = {Favero, F. and Joshi, T. and Marquard, A. M. and Birkbak, N. J. and Krzystanek, M. and Li, Q. and Szallasi, Z. and Eklund, A. C.},
|
|
155 title = {Sequenza: allele-specific copy number and mutation profiles from tumor sequencing data},
|
|
156 volume = {26},
|
|
157 number = {1},
|
|
158 pages = {64-70},
|
|
159 year = {2015},
|
|
160 doi = {10.1093/annonc/mdu479},
|
|
161 URL = {http://annonc.oxfordjournals.org/content/26/1/64.abstract},
|
|
162 eprint = {http://annonc.oxfordjournals.org/content/26/1/64.full.pdf+html},
|
|
163 journal = {Annals of Oncology}
|
|
164 }</citation>
|
|
165 </citations>
|
|
166 </tool>
|