|
1
|
1 <tool id="expands" name="EXPANDS" version="1.7.2">
|
|
|
2 <description>
|
|
|
3 Expanding Ploidy and Allele Frequency on Nested Subpopulations (expands) characterizes coexisting subpopulations in a single tumor sample using copy number and allele frequencies derived from exome- or whole genome sequencing input data.
|
|
|
4 </description>
|
|
|
5
|
|
|
6 <requirements>
|
|
|
7 <requirement type="set_environment">MORINLAB_SCRIPTS</requirement>
|
|
|
8 <requirement type="package" version="14.2">morinlab_scripts</requirement>
|
|
|
9 <requirement type="set_environment">R_SCRIPT_PATH</requirement>
|
|
|
10 <requirement type="package" version="1.7.2">expands</requirement>
|
|
|
11 </requirements>
|
|
|
12
|
|
|
13 <macros>
|
|
|
14 <import>citation_macros.xml</import>
|
|
|
15 </macros>
|
|
|
16
|
|
|
17 <stdio>
|
|
|
18 <exit_code range="1:" level="warning" />
|
|
|
19 <exit_code range=":-1" level="warning" />
|
|
|
20 <regex match="Error:" />
|
|
|
21 <regex match="Exception:" />
|
|
|
22 </stdio>
|
|
|
23
|
|
|
24 <command>
|
|
|
25 Rscript \$MORINLAB_SCRIPTS/expands_wrapper/run_expands.R $segments $segments_mode $maf $sample_id .
|
|
|
26 --loh $advanced_expands_options.loh
|
|
|
27 --max_score $advanced_expands_options.max_score
|
|
|
28 --precision $advanced_expands_options.precision
|
|
|
29 --cn_style $advanced_expands_options.cn_style
|
|
|
30 --plot_custom
|
|
|
31 #if $plotting_options.genes
|
|
|
32 --genes $plotting_options.genes
|
|
|
33 #end if
|
|
|
34 #if $plotting_options.effects
|
|
|
35 --effects $plotting_options.effects
|
|
|
36 #end if
|
|
|
37 --orderBy $plotting_options.orderBy;
|
|
|
38
|
|
|
39 mv ./expands_custom_raw_*.pdf $rawplot;
|
|
|
40 mv ./expands_custom_adj_*.pdf $adjplot;
|
|
|
41 mv ./expands_mutations_*.tsv $snvs;
|
|
|
42 mv ./expands_sps_*.tsv $subpops;
|
|
|
43 </command>
|
|
|
44
|
|
|
45 <inputs>
|
|
|
46 <!-- Required inputs -->
|
|
|
47 <param type="data" name="segments" format="tabular" label="Sequenza, Titan, OncoSNP, or IGV-friendly segments file"/>
|
|
|
48 <param name="segments_mode" label="Specify the source of the segments file" type="select">
|
|
|
49 <option value="S">Sequenza</option>
|
|
|
50 <option value="T">Titan</option>
|
|
|
51 <option value="I">IGV-friendly</option>
|
|
|
52 </param>
|
|
|
53 <param type="data" name="maf" format="tabular" label="Patient MAF file"/>
|
|
|
54 <param type="text" name="sample_id" size="20" label="Sample ID"/>
|
|
|
55
|
|
|
56 <!-- Advanced options supplied to EXPANDS -->
|
|
|
57 <section name="advanced_expands_options" title="Advanced EXPANDS Options" expanded="False">
|
|
|
58 <param type="select" name="loh" optional="true" value="1" label="How should LOH events be handled?">
|
|
|
59 <option value="0">Ignore LOH events</option>
|
|
|
60 <option value="1">Include all copy-neutral LOH segments and their BAF in clustering</option>
|
|
|
61 <option value="2">Include deletion LOH only</option>
|
|
|
62 <option value="3">Include all LOH</option>
|
|
|
63 </param>
|
|
|
64 <param type="float" name="max_score" optional="true" value="2.25" label="Upper threshold for noise score of SP detection. Identified SPs with score below this value are."/>
|
|
|
65 <param type="float" name="precision" optional="true" value="0.05" label="Precision with which subpopulation size is predicted, a small value reflects a high resolution and can lead to a higher number of predicted subpopulations."/>
|
|
|
66 <param type="select" name="cn_style" optional="true" value="1" label="Style of copy number estimates">
|
|
|
67 <option value="1">Integer copy number estimates</option>
|
|
|
68 <option value="2">Rational copy number estimates</option>
|
|
|
69 </param>
|
|
|
70 </section>
|
|
|
71
|
|
|
72 <!-- Options for custom annotated plots -->
|
|
|
73 <section name="plotting_options" title="Plotting options" expanded="False">
|
|
|
74 <param type="data" name="genes" optional="true" format="text" label="Label mutations in these genes (provide a file with one gene per line)"/>
|
|
|
75 <param type="select" name="effects" optional="true" multiple="true" label="Select effect criteria to apply to mutations to label" display="checkboxes">
|
|
|
76 <option value="Splice_Site">Splice_Site</option>
|
|
|
77 <option value="Nonsense_Mutation">Nonsense_Mutation</option>
|
|
|
78 <option value="Frame_Shift_Del">Frame_Shift_Del</option>
|
|
|
79 <option value="Frame_Shift_Ins">Frame_Shift_Ins</option>
|
|
|
80 <option value="Nonstop_Mutation">Nonstop_Mutation</option>
|
|
|
81 <option value="Translation_Start_Site">Translation_Start_Site</option>
|
|
|
82 <option value="In_Frame_Ins">In_Frame_Ins</option>
|
|
|
83 <option value="In_Frame_Del">In_Frame_Del</option>
|
|
|
84 <option value="Missense_Mutation">Missense_Mutation</option>
|
|
|
85 <option value="Intron">Intron</option>
|
|
|
86 <option value="Splice_Region">Splice_Region</option>
|
|
|
87 <option value="Silent">Silent</option>
|
|
|
88 <option value="RNA">RNA</option>
|
|
|
89 <option value="5'UTR">5'UTR</option>
|
|
|
90 <option value="3'UTR">3'UTR</option>
|
|
|
91 <option value="IGR">Intergenic/regulatory region</option>
|
|
|
92 <option value="5'Flank">5'Flank</option>
|
|
|
93 <option value="3'Flank">3'Flank</option>
|
|
|
94 </param>
|
|
|
95 <param type="select" name="orderBy" optional="true" value="chr" label="How should SNVs be ordered on the x-axis?">
|
|
|
96 <option value="chr">By genomic coordinate (chromosome and start position)</option>
|
|
|
97 <option value="conf">By confidence of subpopulation assignment</option>
|
|
|
98 </param>
|
|
|
99 </section>
|
|
|
100 </inputs>
|
|
|
101
|
|
|
102 <outputs>
|
|
|
103 <data format="pdf" name="rawplot"/>
|
|
|
104 <data format="pdf" name="adjplot"/>
|
|
|
105 <data format="tabular" name="subpops"/>
|
|
|
106 <data format="tabular" name="snvs"/>
|
|
|
107 </outputs>
|
|
|
108
|
|
|
109 <tests>
|
|
|
110 </tests>
|
|
|
111
|
|
|
112 <help>
|
|
|
113 <![CDATA[
|
|
|
114
|
|
|
115 .. class:: infomark
|
|
|
116
|
|
|
117 **What this tool does**
|
|
|
118
|
|
|
119 Expanding Ploidy and Allele Frequency on Nested Subpopulations (expands) characterizes coexisting subpopulations in a single tumor sample using copy number and allele frequencies derived from exome- or whole genome sequencing input data.
|
|
|
120
|
|
|
121 .. _EXPANDS: https://cran.r-project.org/web/packages/expands/index.html
|
|
|
122
|
|
|
123 -----
|
|
|
124
|
|
|
125 .. class:: infomark
|
|
|
126
|
|
|
127 **Input**
|
|
|
128
|
|
|
129 This tool takes as its data inputs a segments file and a MAF file. The segments file can be generated by the Sequenza or Titan copy number-calling tools. Alternatively, the tool accepts a segments file formatted for IGV
|
|
|
130
|
|
|
131 A Sequenza segments file is expected to have the following tab-separated columns: chromosome, start.pos, end.pos, Bf, N.BAF, sd.BAF, depth.ratio, N.ratio, sd.ratio, CNt, A, B, LPP
|
|
|
132
|
|
|
133 A Titan segments file is expected to have the following tab-separated columns: Sample, Chromosome, Start_Position(bp), End_Position(bp), Length(bp), Median_Ratio, Median_logR, TITAN_state, TITAN_call, Copy_Number, MinorCN, MajorCN, Clonal_Cluster, Clonal_Frequency.
|
|
|
134
|
|
|
135 **Output**
|
|
|
136
|
|
|
137 This tool generates four output files:
|
|
|
138 - a TSV file describing the subpopulations predicted by EXPANDS and their details
|
|
|
139 - a TSV file describing the SNVs input to EXPANDS and their estimated copy states, allele frequency, and subpopulation assignment as inferred by EXPANDS
|
|
|
140 - two PDFs containing plots of the EXPANDS results, one with SNVs plot along with their raw allele frequency, and one with SNVs plot with their frequency adjusted for tumour purity and copy number states
|
|
|
141
|
|
|
142 For more information on the output tables, see the EXPANDS documentation on CRAN.
|
|
|
143
|
|
|
144 ]]>
|
|
|
145
|
|
|
146 </help>
|
|
|
147
|
|
|
148 <citations>
|
|
|
149 <expand macro="morinlab_citation"/>
|
|
|
150 <expand macro="galaxy_citation"/>
|
|
|
151 <expand macro="expands_citation"/>
|
|
|
152 </citations>
|
|
|
153 </tool> |