Mercurial > repos > iuc > cnvkit_heatmap
annotate heatmap.xml @ 0:ff6b3f5a7ffb draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
author | iuc |
---|---|
date | Sun, 14 May 2023 20:11:11 +0000 |
parents | |
children | d8c45afa221c |
rev | line source |
---|---|
0
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
1 <tool id="cnvkit_heatmap" name="CNVkit Heatmap" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
2 <description>Plot copy number for multiple samples as a heatmap</description> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
3 <macros> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
5 </macros> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
6 <expand macro="xrefs"/> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
7 <expand macro="requirements"/> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
8 <command detect_errors="exit_code"><![CDATA[ |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
9 #import re |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
10 #set $names = [] |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
11 #set $x=1 |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
12 #for $x, $file in enumerate($filenames): |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
13 #set $name_base = re.sub('[^\w\-_\.]', '_', $file.element_identifier) |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
14 #set $name = $name_base + '_' + str(x) |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
15 #silent $names.append( $name ) |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
16 ln -s '$file' ${name}.cns && |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
17 #end for |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
18 cnvkit.py heatmap |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
19 #for $name in $names: |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
20 ${name}.cns |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
21 #end for |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
22 --output sample-heatmap.png |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
23 $advanced_settings.by_bin |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
24 #if $advanced_settings.chromosome |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
25 --chromosome '$advanced_settings.chromosome' |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
26 #end if |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
27 $advanced_settings.desaturate |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
28 $advanced_settings.male_reference |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
29 #if str($advanced_settings.Sample_sex.sex) == "yes": |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
30 #if '$advanced_settings.Sample_sex.sample_sex' == "Male" |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
31 #set $sample_sex_val = "Male" |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
32 --sample-sex '$segment_method_val' |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
33 #else |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
34 --sample-sex '$advanced_settings.Sample_sex.sample_sex' |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
35 #end if |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
36 #end if |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
37 $advanced_settings.no_shift_xy |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
38 $advanced_settings.vertical |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
39 $advanced_settings.delimit_samples |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
40 #if $advanced_settings.title |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
41 --title '$advanced_settings.title' |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
42 #end if |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
43 ]]></command> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
44 <inputs> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
45 <param name="filenames" multiple="true" type="data" format="cns" label="cns sample file" help="Sample coverages as raw probes cnr or segments cns)" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
46 <section name="advanced_settings" title="Advanced settings" expanded="false"> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
47 <expand macro="heatmap_optional" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
48 <expand macro="sample_sex_condition" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
49 </section> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
50 </inputs> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
51 <outputs> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
52 <data name="out_heatmap_png" format="png" label="${tool.name} on ${on_string}: Heatmap png file" from_work_dir="sample-heatmap.png" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
53 </outputs> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
54 <tests> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
55 <test expect_num_outputs="1"> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
56 <param name="filenames" ftype="tabular" value="tumor.cns,sample.cns" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
57 <param name="by_bin" value="1" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
58 <param name="desaturate" value="1" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
59 <output name="out_heatmap_png" file="sample-heatmap.png" ftype="png" compare="sim_size" > |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
60 <assert_contents><has_size value="9000" delta="5000" /></assert_contents> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
61 </output> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
62 </test> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
63 <test expect_num_outputs="1"> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
64 <conditional name="Sample_sex"> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
65 <param name="sex" value="yes" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
66 </conditional> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
67 <param name="filenames" ftype="tabular" value="tumor.cns,sample.cns" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
68 <param name="by_bin" value="1" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
69 <param name="desaturate" value="1" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
70 <output name="out_heatmap_png" file="sample-heatmap.png" ftype="png" compare="sim_size" > |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
71 <assert_contents><has_size value="9000" delta="5000" /></assert_contents> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
72 </output> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
73 </test> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
74 </tests> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
75 <help><![CDATA[ |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
76 Draw copy number (either bins (.cnn, .cnr) or segments (.cns)) for multiple samples as a heatmap |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
77 ]]></help> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
78 <expand macro="citations" /> |
ff6b3f5a7ffb
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff
changeset
|
79 </tool> |