annotate diagram.xml @ 0:9d18753f47b4 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:10:02 +0000
parents
children 697c61206f5f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
1 <tool id="cnvkit_diagram" name="CNVkit Diagram" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
2 <description>Draw copy number on chromosomes as a diagram</description>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
3 <macros>
9d18753f47b4 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>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
5 </macros>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
6 <expand macro="xrefs"/>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
9d18753f47b4 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[
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
9 ln -s '$input_cnr_file' ./tumor.cnr &&
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
10 #if $advanced_settings.segment
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
11 ln -s '$advanced_settings.segment' ./segment.cns &&
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
12 #end if
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
13 cnvkit.py diagram
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
14 ./tumor.cnr
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
15 --output sample-diagram.pdf
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
16 #if $advanced_settings.segment
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
17 --segment ./segment.cns
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
18 #end if
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
19 #if str($advanced_settings.threshold)
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
20 --threshold $advanced_settings.threshold
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
21 #end if
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
22 #if str($advanced_settings.min_probes)
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
23 --min-probes $advanced_settings.min_probes
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
24 #end if
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
25 $advanced_settings.male_reference
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
26 #if str($advanced_settings.Sample_sex.sex) == "yes":
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
27 #if '$advanced_settings.Sample_sex.sample_sex' == "Male"
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
28 #set $sample_sex_val = "Male"
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
29 --sample-sex '$segment_method_val'
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
30 #else
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
31 --sample-sex '$advanced_settings.Sample_sex.sample_sex'
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
32 #end if
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
33 #end if
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
34 $advanced_settings.no_shift_xy
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
35 #if $plot_aesthetics.title
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
36 --title '$plot_aesthetics.title'
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
37 #end if
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
38 #if $advanced_settings.chromosome
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
39 --chromosome '$advanced_settings.chromosome'
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
40 #end if
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
41 $plot_aesthetics.no_gene_labels
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
42 ]]></command>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
43 <inputs>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
44 <param name="input_cnr_file" type="data" format="tabular" label="cnn file" help="" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
45 <section name="advanced_settings" title="Advanced settings" expanded="false">
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
46 <expand macro="diagram_optional" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
47 <expand macro="sample_sex_condition" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
48 </section>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
49 <section name="plot_aesthetics" title="Plot aesthetics" expanded="false">
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
50 <expand macro="diagram_plot" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
51 </section>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
52 </inputs>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
53 <outputs>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
54 <data name="out_diagram_file" format="pdf" label="${tool.name} on ${on_string}: diagram pdf file" from_work_dir="sample-diagram.pdf" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
55 </outputs>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
56 <tests>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
57 <test expect_num_outputs="1">
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
58 <param name="input_cnr_file" ftype="tabular" value="tumor.cnr" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
59 <param name="segment" ftype="tabular" value="sample.cns" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
60 <param name="threshold" value="10" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
61 <param name="male_reference" value="1" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
62 <output name="out_diagram_file" file="sample-diagram.pdf" ftype="pdf" compare="sim_size" >
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
63 <assert_contents><has_size value="6000" delta="2000" /></assert_contents>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
64 </output>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
65 </test>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
66 <test expect_num_outputs="1">
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
67 <conditional name="Sample_sex">
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
68 <param name="sex" value="yes" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
69 </conditional>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
70 <param name="input_cnr_file" ftype="tabular" value="tumor.cnr" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
71 <param name="segment" ftype="tabular" value="sample.cns" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
72 <param name="threshold" value="10" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
73 <param name="male_reference" value="1" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
74 <output name="out_diagram_file" file="sample-diagram.pdf" ftype="pdf" compare="sim_size" >
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
75 <assert_contents><has_size value="6000" delta="2000" /></assert_contents>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
76 </output>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
77 </test>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
78 </tests>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
79 <help><![CDATA[
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
80 Draw copy number (log2 coverages, segments) on chromosomes as a diagram. If both the raw probes and
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
81 segments are given, show them side-by-side on each chromosome (segments on the left side, probes on the
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
82 right side).
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
83 ]]></help>
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
84 <expand macro="citations" />
9d18753f47b4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
85 </tool>