|
0
|
1 <tool id="oncocircos" name="Oncocircos" version="0.69">
|
|
|
2
|
|
|
3 <description>
|
|
|
4 creates a genome-centric visualization of SNV and CNV Data
|
|
|
5 </description>
|
|
|
6
|
|
|
7 <requirements>
|
|
|
8 <requirement type="package" version="0.69">circos_perl_environment</requirement>
|
|
|
9 <requirement type="package" version="0.69">circos</requirement>
|
|
|
10 </requirements>
|
|
|
11
|
|
|
12
|
|
|
13 <command error_checking="aggressive">
|
|
|
14
|
|
|
15 mkdir data;
|
|
|
16 mkdir circos;
|
|
|
17 mkdir circos/data;
|
|
|
18 mkdir circos/etc;
|
|
|
19
|
|
2
|
20 touch data/cnv.large.scale.txt;
|
|
|
21 cat $sig_regions >> data/cnv.large.scale.txt;
|
|
|
22 touch data/genes_to_label.txt;
|
|
|
23 #if $advancedOptions.gene_label_input_type.gene_label_input_type_selector.value == "other":
|
|
|
24 echo $advancedOptions.gene_label_input_type.gene > data/genes_to_label.txt;
|
|
|
25 #else:
|
|
|
26 cat $advancedOptions.gene_label_input_type.gene_file > data/genes_to_label.txt;
|
|
|
27 #end if
|
|
|
28
|
|
|
29 touch data/genes_to_hide.txt;
|
|
|
30 #if $advancedOptions.gene_mask_input_type.gene_mask_input_type_selector.value == "other":
|
|
|
31 echo $advancedOptions.gene_mask_input_type.gene > data/genes_to_hide.txt;
|
|
|
32 #else:
|
|
|
33 cat $advancedOptions.gene_mask_input_type.gene_file > data/genes_to_hide.txt;
|
|
|
34 #end if
|
|
|
35
|
|
0
|
36 cp $__tool_directory__/etc/* circos/etc/;
|
|
|
37
|
|
|
38 mkdir etc;
|
|
|
39
|
|
|
40 ln -s $input_maf data/snv.txt;
|
|
|
41 ln -s $input_seg data/cnv.txt;
|
|
2
|
42 ln -s $biomart data/biomart.txt;
|
|
0
|
43 cat $__tool_directory__/parse.conf
|
|
|
44
|
|
|
45 #if $advancedOptions.filter_snvs != 1:
|
|
|
46 | sed 's/^SNV_FILTER$/sv = yes/g'
|
|
|
47 | sed 's/^SNV_FILTER_NUM$/sv_num = $advancedOptions.filter_snvs/g'
|
|
|
48 #else:
|
|
2
|
49 | sed 's/^SNV_FILTER$/sv = yes/g'
|
|
|
50 | sed 's/^SNV_FILTER_NUM$/sv_num = $advancedOptions.filter_snvs/g'
|
|
0
|
51 #end if
|
|
2
|
52
|
|
0
|
53 #if $advancedOptions.chromosome != "":
|
|
|
54 | sed 's/^CHR$/chr = $advancedOptions.chromosome/g'
|
|
|
55 #else:
|
|
|
56 | sed 's/^CHR$//g'
|
|
|
57 #end if
|
|
2
|
58
|
|
0
|
59
|
|
2
|
60 | sed "s#^ROOT#root = \$(pwd)#g"
|
|
0
|
61 | sed 's#^CIRCOS#circos = circos/data#g'
|
|
|
62
|
|
|
63 > ./etc/parse.conf;
|
|
|
64
|
|
|
65 perl $__tool_directory__/bin/parse --conf ./etc/parse.conf | perl $__tool_directory__/bin/make.circos.data --conf ./etc/parse.conf;
|
|
|
66
|
|
|
67 circos --conf ./circos/etc/circos.conf;
|
|
|
68
|
|
|
69 cp circos.png $png;
|
|
|
70 cp circos.svg $svg;
|
|
|
71 cp ./etc/parse.conf $tmp;
|
|
|
72
|
|
|
73 </command>
|
|
|
74
|
|
|
75 <inputs>
|
|
|
76 <param type="data" format="maf" name="input_maf" label="Cohort Wide MAF File"/>
|
|
|
77 <param type="data" format="segs" name="input_seg" label="Cohort Wide SEGS File"/>
|
|
2
|
78 <param type="data" format="" name="biomart" label="Biomart File listing all genes (format: ENSG, chrom, start, end, Symbol"/>
|
|
|
79 <param type="data" format="bed" name="sig_regions" label="Regions of recurrent copy number gain/loss in bed format. 4th column must indicate the event type (e.g gain, hetd)" optional="true"/>
|
|
0
|
80 <section name="advancedOptions">
|
|
|
81 <param type="integer" name="filter_snvs"
|
|
|
82 min="1" value="1" max="100"
|
|
|
83 label="Filter genes with a cohort wide snv tally below this value"/>
|
|
|
84 <param type="text" name="chromosome" value=""
|
|
2
|
85 label="Restrict plot to the following chromosome"/>
|
|
|
86 <conditional name="gene_label_input_type">
|
|
|
87 <param name="gene_label_input_type_selector" type="select" label="How will you supply genes of interest to label in the plot?">
|
|
|
88 <option value="file" selected="True">Gene File</option>
|
|
|
89 <option value="other">Other</option>
|
|
|
90 </param>
|
|
|
91 <when value="file">
|
|
|
92 <param name="gene_file" type="data" format="txt" label="Gene File" help="list of genes separated by newlines" />
|
|
|
93 </when>
|
|
|
94 <when value="other">
|
|
|
95 <param name="gene" type="text" value="TP53" label="Gene" help="type the single gene" />
|
|
|
96 </when>
|
|
|
97 </conditional>
|
|
|
98 <conditional name="gene_mask_input_type">
|
|
|
99 <param name="gene_mask_input_type_selector" type="select" label="How will you supply blacklist genes to hide from plot?">
|
|
|
100 <option value="file" selected="True">Gene Blacklist File</option>
|
|
|
101 <option value="other">Other</option>
|
|
|
102 </param>
|
|
|
103 <when value="file">
|
|
|
104 <param name="gene_file" type="data" format="txt" label="Gene File" help="list of genes separated by newlines" />
|
|
|
105 </when>
|
|
|
106 <when value="other">
|
|
|
107 <param name="gene" type="text" value="TP53" label="Gene" help="type the single gene" />
|
|
|
108 </when>
|
|
|
109 </conditional>
|
|
0
|
110 </section>
|
|
|
111 </inputs>
|
|
|
112 <outputs>
|
|
|
113 <data format="png" name="png" />
|
|
|
114 <data format="svg" name="svg" />
|
|
|
115 <data format="txt" name="tmp" />
|
|
|
116 </outputs>
|
|
2
|
117 <citations>
|
|
|
118 <citation type="bibtex">
|
|
|
119 @article {Albuquerque089631,
|
|
|
120 author = {Albuquerque, Marco A and Grande, Bruno M and Ritch, Elie and Jessa, Selin and Krzywinski, Martin I and Grewal, Jasleen and Shah, Sohrab and Boutros, Paul and Morin, Ryan},
|
|
|
121 title = {Enhancing Knowledge Discovery from Cancer Genomics Data with Galaxy},
|
|
|
122 year = {2016},
|
|
|
123 doi = {10.1101/089631},
|
|
|
124 publisher = {Cold Spring Harbor Labs Journals},
|
|
|
125 URL = {http://biorxiv.org/content/early/2016/11/26/089631},
|
|
|
126 eprint = {http://biorxiv.org/content/early/2016/11/26/089631.full.pdf},
|
|
|
127 journal = {bioRxiv}
|
|
|
128 }
|
|
|
129
|
|
|
130 </citation>
|
|
|
131 <citation type="bibtex">
|
|
|
132 @misc{
|
|
|
133 goecks2010galaxy,
|
|
|
134 title={Galaxy: a comprehensive approach for supporting accessible, reproducible, and transparent computational research in the life sciences},
|
|
|
135 author={Goecks, Jeremy and Nekrutenko, Anton and Taylor, James and others},
|
|
|
136 journal={Genome Biol},
|
|
|
137 volume={11},
|
|
|
138 number={8},
|
|
|
139 pages={R86},
|
|
|
140 year={2010}
|
|
|
141 }
|
|
|
142 </citation>
|
|
|
143 <citation type="bibtex">
|
|
|
144
|
|
|
145 @ARTICLE{Krzywinski2009-hn,
|
|
|
146 title = "Circos: an information aesthetic for comparative genomics",
|
|
|
147 author = "Krzywinski, Martin and Schein, Jacqueline and Birol, Inan\c{c}
|
|
|
148 and Connors, Joseph and Gascoyne, Randy and Horsman, Doug and
|
|
|
149 Jones, Steven J and Marra, Marco A",
|
|
|
150 affiliation = "Canada's Michael Smith Genome Sciences Center, Vancouver,
|
|
|
151 British Columbia V5Z 4S6, Canada. martink@bcgsc.ca",
|
|
|
152 abstract = "We created a visualization tool called Circos to facilitate
|
|
|
153 the identification and analysis of similarities and
|
|
|
154 differences arising from comparisons of genomes. Our tool is
|
|
|
155 effective in displaying variation in genome structure and,
|
|
|
156 generally, any other kind of positional relationships between
|
|
|
157 genomic intervals. Such data are routinely produced by
|
|
|
158 sequence alignments, hybridization arrays, genome mapping, and
|
|
|
159 genotyping studies. Circos uses a circular ideogram layout to
|
|
|
160 facilitate the display of relationships between pairs of
|
|
|
161 positions by the use of ribbons, which encode the position,
|
|
|
162 size, and orientation of related genomic elements. Circos is
|
|
|
163 capable of displaying data as scatter, line, and histogram
|
|
|
164 plots, heat maps, tiles, connectors, and text. Bitmap or
|
|
|
165 vector images can be created from GFF-style data inputs and
|
|
|
166 hierarchical configuration files, which can be easily
|
|
|
167 generated by automated tools, making Circos suitable for rapid
|
|
|
168 deployment in data analysis and reporting pipelines.",
|
|
|
169 journal = "Genome Res.",
|
|
|
170 volume = 19,
|
|
|
171 number = 9,
|
|
|
172 pages = "1639--1645",
|
|
|
173 month = sep,
|
|
|
174 year = 2009,
|
|
|
175 language = "en"
|
|
|
176 }
|
|
|
177
|
|
|
178
|
|
|
179 </citation>
|
|
|
180 </citations>
|
|
|
181 </tool>
|