annotate draw_circos.xml @ 0:b73148507037 draft default tip

Uploaded
author greg
date Wed, 15 Mar 2023 19:57:22 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b73148507037 Uploaded
greg
parents:
diff changeset
1 <tool id="draw_circos" name="PIMA: draw circos" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
b73148507037 Uploaded
greg
parents:
diff changeset
2 <description>plot of assembly v. reference alignment</description>
b73148507037 Uploaded
greg
parents:
diff changeset
3 <macros>
b73148507037 Uploaded
greg
parents:
diff changeset
4 <import>macros.xml</import>
b73148507037 Uploaded
greg
parents:
diff changeset
5 <import>macros_conffiles.xml</import>
b73148507037 Uploaded
greg
parents:
diff changeset
6 </macros>
b73148507037 Uploaded
greg
parents:
diff changeset
7 <edam_topics>
b73148507037 Uploaded
greg
parents:
diff changeset
8 <edam_topic>topic_0797</edam_topic>
b73148507037 Uploaded
greg
parents:
diff changeset
9 <edam_topic>topic_0092</edam_topic>
b73148507037 Uploaded
greg
parents:
diff changeset
10 </edam_topics>
b73148507037 Uploaded
greg
parents:
diff changeset
11 <edam_operations>
b73148507037 Uploaded
greg
parents:
diff changeset
12 <edam_operation>operation_0337</edam_operation>
b73148507037 Uploaded
greg
parents:
diff changeset
13 </edam_operations>
b73148507037 Uploaded
greg
parents:
diff changeset
14 <expand macro="requirements"/>
b73148507037 Uploaded
greg
parents:
diff changeset
15 <command detect_errors="exit_code"><![CDATA[
b73148507037 Uploaded
greg
parents:
diff changeset
16 mkdir -p circos_dir &&
b73148507037 Uploaded
greg
parents:
diff changeset
17 mkdir -p output_png_dir &&
b73148507037 Uploaded
greg
parents:
diff changeset
18
b73148507037 Uploaded
greg
parents:
diff changeset
19 cp '$circos_conf' 'circos_dir/circos.conf' &&
b73148507037 Uploaded
greg
parents:
diff changeset
20 cp '$ideogram_conf' 'circos_dir/ideogram.conf' &&
b73148507037 Uploaded
greg
parents:
diff changeset
21 cp '$tick_base_conf' 'circos_dir/tick_base.conf' &&
b73148507037 Uploaded
greg
parents:
diff changeset
22
b73148507037 Uploaded
greg
parents:
diff changeset
23 #if $reference_source.reference_source_selector == 'history':
b73148507037 Uploaded
greg
parents:
diff changeset
24 ln -f -s '$reference_source.ref_file' reference.fa &&
b73148507037 Uploaded
greg
parents:
diff changeset
25 #else:
b73148507037 Uploaded
greg
parents:
diff changeset
26 ln -f -s '$reference_source.ref_file.fields.path' reference.fa &&
b73148507037 Uploaded
greg
parents:
diff changeset
27 #end if
b73148507037 Uploaded
greg
parents:
diff changeset
28
b73148507037 Uploaded
greg
parents:
diff changeset
29 python '$__tool_directory__/draw_circos.py'
b73148507037 Uploaded
greg
parents:
diff changeset
30 --circos_conf 'circos_dir/circos.conf'
b73148507037 Uploaded
greg
parents:
diff changeset
31 --dnadiff_1coords_file '$dnadiff_1coords_file'
b73148507037 Uploaded
greg
parents:
diff changeset
32 --output_png_dir 'output_png_dir'
b73148507037 Uploaded
greg
parents:
diff changeset
33 --reference_file 'reference.fa'
b73148507037 Uploaded
greg
parents:
diff changeset
34 --reference_sequence_lengths_file '$reference_sequence_lengths_file'
b73148507037 Uploaded
greg
parents:
diff changeset
35 --tick_base_conf 'circos_dir/tick_base.conf'
b73148507037 Uploaded
greg
parents:
diff changeset
36 ]]></command>
b73148507037 Uploaded
greg
parents:
diff changeset
37 <configfiles>
b73148507037 Uploaded
greg
parents:
diff changeset
38 <expand macro="configfile_circos_conf"/>
b73148507037 Uploaded
greg
parents:
diff changeset
39 <expand macro="configfile_ideogram_conf"/>
b73148507037 Uploaded
greg
parents:
diff changeset
40 <expand macro="configfile_tick_base_conf"/>
b73148507037 Uploaded
greg
parents:
diff changeset
41 </configfiles>
b73148507037 Uploaded
greg
parents:
diff changeset
42 <inputs>
b73148507037 Uploaded
greg
parents:
diff changeset
43 <param argument="dnadiff_1coords_file" type="data" format="tabular,tsv" label="DNAdiff 1coords tabular file"/>
b73148507037 Uploaded
greg
parents:
diff changeset
44 <conditional name="reference_source">
b73148507037 Uploaded
greg
parents:
diff changeset
45 <param name="reference_source_selector" type="select" label="Select a reference genome from your history or use a cached genome index?">
b73148507037 Uploaded
greg
parents:
diff changeset
46 <option value="cached">Use a cached genome index</option>
b73148507037 Uploaded
greg
parents:
diff changeset
47 <option value="history">Select a genome from the history and build the index</option>
b73148507037 Uploaded
greg
parents:
diff changeset
48 </param>
b73148507037 Uploaded
greg
parents:
diff changeset
49 <when value="cached">
b73148507037 Uploaded
greg
parents:
diff changeset
50 <param name="ref_file" type="select" label="Using reference genome" help="Select reference genome">
b73148507037 Uploaded
greg
parents:
diff changeset
51 <options from_data_table="all_fasta">
b73148507037 Uploaded
greg
parents:
diff changeset
52 <filter type="sort_by" column="2"/>
b73148507037 Uploaded
greg
parents:
diff changeset
53 <validator type="no_options" message="No reference genomes are available"/>
b73148507037 Uploaded
greg
parents:
diff changeset
54 </options>
b73148507037 Uploaded
greg
parents:
diff changeset
55 </param>
b73148507037 Uploaded
greg
parents:
diff changeset
56 </when>
b73148507037 Uploaded
greg
parents:
diff changeset
57 <when value="history">
b73148507037 Uploaded
greg
parents:
diff changeset
58 <param name="ref_file" type="data" format="fasta,fastq" label="Select the reference sequence" help="You can upload a FASTA file and use it as reference"/>
b73148507037 Uploaded
greg
parents:
diff changeset
59 </when>
b73148507037 Uploaded
greg
parents:
diff changeset
60 </conditional>
b73148507037 Uploaded
greg
parents:
diff changeset
61 <param name="reference_sequence_lengths_file" type="data" format="tabular" label="Reference sequences lengths tabular file"/>
b73148507037 Uploaded
greg
parents:
diff changeset
62 </inputs>
b73148507037 Uploaded
greg
parents:
diff changeset
63 <outputs>
b73148507037 Uploaded
greg
parents:
diff changeset
64 <collection name="circos_png" type="list" format="png">
b73148507037 Uploaded
greg
parents:
diff changeset
65 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.(?P&lt;ext&gt;png)" directory="output_png_dir"/>
b73148507037 Uploaded
greg
parents:
diff changeset
66 </collection>
b73148507037 Uploaded
greg
parents:
diff changeset
67 </outputs>
b73148507037 Uploaded
greg
parents:
diff changeset
68 <tests>
b73148507037 Uploaded
greg
parents:
diff changeset
69 <test>
b73148507037 Uploaded
greg
parents:
diff changeset
70 <param name="dnadiff_1coords_file" value="dnadiff_1coords.tabular" ftype="tabular"/>
b73148507037 Uploaded
greg
parents:
diff changeset
71 <conditional name="reference_source">
b73148507037 Uploaded
greg
parents:
diff changeset
72 <param name="reference_source_selector" value="history"/>
b73148507037 Uploaded
greg
parents:
diff changeset
73 <param name="ref_file" value="ref_genome.fasta"/>
b73148507037 Uploaded
greg
parents:
diff changeset
74 </conditional>
b73148507037 Uploaded
greg
parents:
diff changeset
75 <param name="reference_sequence_lengths_file" value="ref_sequence_lengths.tabular" ftype="tabular"/>
b73148507037 Uploaded
greg
parents:
diff changeset
76 <output_collection name="circos_png" type="list" count="3">
b73148507037 Uploaded
greg
parents:
diff changeset
77 <element name="chromosome" ftype="png">
b73148507037 Uploaded
greg
parents:
diff changeset
78 <assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
79 <has_size value="121172" delta="1000"/>
b73148507037 Uploaded
greg
parents:
diff changeset
80 </assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
81 </element>
b73148507037 Uploaded
greg
parents:
diff changeset
82 <element name="pXO1" ftype="png">
b73148507037 Uploaded
greg
parents:
diff changeset
83 <assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
84 <has_size value="179913" delta="1000"/>
b73148507037 Uploaded
greg
parents:
diff changeset
85 </assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
86 </element>
b73148507037 Uploaded
greg
parents:
diff changeset
87 <element name="pXO2" ftype="png">
b73148507037 Uploaded
greg
parents:
diff changeset
88 <assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
89 <has_size value="169070" delta="1000"/>
b73148507037 Uploaded
greg
parents:
diff changeset
90 </assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
91 </element>
b73148507037 Uploaded
greg
parents:
diff changeset
92 </output_collection>
b73148507037 Uploaded
greg
parents:
diff changeset
93 </test>
b73148507037 Uploaded
greg
parents:
diff changeset
94 <test>
b73148507037 Uploaded
greg
parents:
diff changeset
95 <param name="dnadiff_1coords_file" value="dnadiff_1coords.tabular" ftype="tabular"/>
b73148507037 Uploaded
greg
parents:
diff changeset
96 <conditional name="reference_source">
b73148507037 Uploaded
greg
parents:
diff changeset
97 <param name="reference_source_selector" value="cached"/>
b73148507037 Uploaded
greg
parents:
diff changeset
98 <param name="ref_file" value="ref_genome"/>
b73148507037 Uploaded
greg
parents:
diff changeset
99 </conditional>
b73148507037 Uploaded
greg
parents:
diff changeset
100 <param name="reference_sequence_lengths_file" value="ref_sequence_lengths.tabular" ftype="tabular"/>
b73148507037 Uploaded
greg
parents:
diff changeset
101 <output_collection name="circos_png" type="list" count="3">
b73148507037 Uploaded
greg
parents:
diff changeset
102 <element name="chromosome" ftype="png">
b73148507037 Uploaded
greg
parents:
diff changeset
103 <assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
104 <has_size value="121172" delta="1000"/>
b73148507037 Uploaded
greg
parents:
diff changeset
105 </assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
106 </element>
b73148507037 Uploaded
greg
parents:
diff changeset
107 <element name="pXO1" ftype="png">
b73148507037 Uploaded
greg
parents:
diff changeset
108 <assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
109 <has_size value="179913" delta="1000"/>
b73148507037 Uploaded
greg
parents:
diff changeset
110 </assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
111 </element>
b73148507037 Uploaded
greg
parents:
diff changeset
112 <element name="pXO2" ftype="png">
b73148507037 Uploaded
greg
parents:
diff changeset
113 <assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
114 <has_size value="169070" delta="1000"/>
b73148507037 Uploaded
greg
parents:
diff changeset
115 </assert_contents>
b73148507037 Uploaded
greg
parents:
diff changeset
116 </element>
b73148507037 Uploaded
greg
parents:
diff changeset
117 </output_collection>
b73148507037 Uploaded
greg
parents:
diff changeset
118 </test>
b73148507037 Uploaded
greg
parents:
diff changeset
119 </tests>
b73148507037 Uploaded
greg
parents:
diff changeset
120 <help><![CDATA[
b73148507037 Uploaded
greg
parents:
diff changeset
121 Renders circos plots of the PIMA assembly versus the reference alignemnt.
b73148507037 Uploaded
greg
parents:
diff changeset
122 ]]></help>
b73148507037 Uploaded
greg
parents:
diff changeset
123 <expand macro="citations"/>
b73148507037 Uploaded
greg
parents:
diff changeset
124 </tool>