annotate pima_report.xml @ 33:f5a9f1969199 draft default tip

Uploaded
author greg
date Thu, 31 Aug 2023 20:55:23 +0000
parents 1352b8aa5979
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
1 <tool id="pima_report" name="PIMA: summary report" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
0a558f444c98 Uploaded
greg
parents:
diff changeset
2 <description></description>
0a558f444c98 Uploaded
greg
parents:
diff changeset
3 <macros>
0a558f444c98 Uploaded
greg
parents:
diff changeset
4 <import>macros.xml</import>
0a558f444c98 Uploaded
greg
parents:
diff changeset
5 </macros>
0a558f444c98 Uploaded
greg
parents:
diff changeset
6 <expand macro="requirements"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
0a558f444c98 Uploaded
greg
parents:
diff changeset
8 #import re
0a558f444c98 Uploaded
greg
parents:
diff changeset
9
26
46edd7435555 Uploaded
greg
parents: 25
diff changeset
10 #if str($read_type_cond.read_type) == 'ont':
46edd7435555 Uploaded
greg
parents: 25
diff changeset
11 #set analysis_name = re.sub('[^\s\w\-]', '_', str($read_type_cond.ont_file.element_identifier))
25
4986a7fb2145 Uploaded
greg
parents: 23
diff changeset
12 #else:
26
46edd7435555 Uploaded
greg
parents: 25
diff changeset
13 #set analysis_name = re.sub('[^\s\w\-]', '_', str($read_type_cond.illumina_forward_read.element_identifier))
25
4986a7fb2145 Uploaded
greg
parents: 23
diff changeset
14 #end if
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
15 #set assembly_name = re.sub('[^\s\w\-]', '_', str($assembly_fasta_file.element_identifier))
2
9cb62054a87a Uploaded
greg
parents: 1
diff changeset
16
12
99613333fd1f Uploaded
greg
parents: 5
diff changeset
17 #if str($bedtools_complementbed_file) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
18 #set bedtools_version = re.sub('[^\s\w\-]', '_', str($bedtools_complementbed_file.element_identifier))
99613333fd1f Uploaded
greg
parents: 5
diff changeset
19 #end if
99613333fd1f Uploaded
greg
parents: 5
diff changeset
20 #if str($blastn_features) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
21 #set blastn_version = re.sub('[^\s\w\-]', '_', str($blastn_features.element_identifier))
99613333fd1f Uploaded
greg
parents: 5
diff changeset
22 #end if
99613333fd1f Uploaded
greg
parents: 5
diff changeset
23 #if str($dnadiff_snps_file) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
24 #set dnadiff_version = re.sub('[^\s\w\-]', '_', str($dnadiff_snps_file.element_identifier))
99613333fd1f Uploaded
greg
parents: 5
diff changeset
25 #end if
26
46edd7435555 Uploaded
greg
parents: 25
diff changeset
26
46edd7435555 Uploaded
greg
parents: 25
diff changeset
27 ## All ONT samples are single-end reads, while all Illumina samples are
46edd7435555 Uploaded
greg
parents: 25
diff changeset
28 ## sets if paired reads. For ONT, we need both an assembly_fasta_file
46edd7435555 Uploaded
greg
parents: 25
diff changeset
29 ## which is produced by the medaka pipeline and and assembler_version_file
46edd7435555 Uploaded
greg
parents: 25
diff changeset
30 ## which is produced by flye. For Illumina we need only the assembly_fasta_file
46edd7435555 Uploaded
greg
parents: 25
diff changeset
31 ## which is produced by SPAdes since the version can be derived from it.
46edd7435555 Uploaded
greg
parents: 25
diff changeset
32 #if str($assembler_version_file) in ['None', '']:
46edd7435555 Uploaded
greg
parents: 25
diff changeset
33 ## We're analyzing a set of Illumina paired reads.
46edd7435555 Uploaded
greg
parents: 25
diff changeset
34 #set assembler_version = re.sub('[^\s\w\-]', '_', str($assembly_fasta_file.element_identifier))
46edd7435555 Uploaded
greg
parents: 25
diff changeset
35 #else:
46edd7435555 Uploaded
greg
parents: 25
diff changeset
36 ## We're analyzing an ONT sample.
21
667b253329c6 Uploaded
greg
parents: 18
diff changeset
37 #set assembler_version = re.sub('[^\s\w\-]', '_', str($assembler_version_file.element_identifier))
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
38 #end if
26
46edd7435555 Uploaded
greg
parents: 25
diff changeset
39
2
9cb62054a87a Uploaded
greg
parents: 1
diff changeset
40 #if str($kraken2_report_file) not in ['None', '']:
9cb62054a87a Uploaded
greg
parents: 1
diff changeset
41 #set kraken2_version = re.sub('[^\s\w\-]', '_', str($kraken2_report_file.element_identifier))
12
99613333fd1f Uploaded
greg
parents: 5
diff changeset
42 #end if
99613333fd1f Uploaded
greg
parents: 5
diff changeset
43 #if str($minimap2_bam_file) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
44 #set minimap2_version = re.sub('[^\s\w\-]', '_', str($minimap2_bam_file.element_identifier))
99613333fd1f Uploaded
greg
parents: 5
diff changeset
45 #end if
99613333fd1f Uploaded
greg
parents: 5
diff changeset
46 #if str($samtools_pileup_file) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
47 #set samtools_version = re.sub('[^\s\w\-]', '_', str($samtools_pileup_file.element_identifier))
99613333fd1f Uploaded
greg
parents: 5
diff changeset
48 #end if
99613333fd1f Uploaded
greg
parents: 5
diff changeset
49 #if str($varscan_vcf_file) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
50 #set varscan_version = re.sub('[^\s\w\-]', '_', str($varscan_vcf_file.element_identifier))
2
9cb62054a87a Uploaded
greg
parents: 1
diff changeset
51 #end if
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
52
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
53 mkdir amr_matrix_png_dir &&
13
f03c80bb22e9 Uploaded
greg
parents: 12
diff changeset
54 mkdir circos_png_dir &&
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
55 mkdir feature_bed_dir &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
56 mkdir feature_png_dir &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
57 mkdir mutation_regions_dir &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
58 touch 'pima_report.pdf' &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
59
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
60 #for $i in $amr_matrices_png:
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
61 #set file_name = $i.file_name
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
62 #set identifier = re.sub('[^\s\w\-\\.]', '_', str($i.element_identifier))
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
63 ln -s $i 'amr_matrix_png_dir/$identifier' &&
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
64 #end for
13
f03c80bb22e9 Uploaded
greg
parents: 12
diff changeset
65 #for $i in $circos_png:
f03c80bb22e9 Uploaded
greg
parents: 12
diff changeset
66 #set file_name = $i.file_name
f03c80bb22e9 Uploaded
greg
parents: 12
diff changeset
67 #set identifier = re.sub('[^\s\w\-\\.]', '_', str($i.element_identifier))
f03c80bb22e9 Uploaded
greg
parents: 12
diff changeset
68 ln -s $i 'circos_png_dir/$identifier' &&
f03c80bb22e9 Uploaded
greg
parents: 12
diff changeset
69 #end for
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
70 #for $i in $features_bed:
0a558f444c98 Uploaded
greg
parents:
diff changeset
71 #set file_name = $i.file_name
0a558f444c98 Uploaded
greg
parents:
diff changeset
72 #set identifier = re.sub('[^\s\w\-\\.]', '_', str($i.element_identifier))
0a558f444c98 Uploaded
greg
parents:
diff changeset
73 ln -s $i 'feature_bed_dir/$identifier' &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
74 #end for
0a558f444c98 Uploaded
greg
parents:
diff changeset
75 #for $i in $features_png:
0a558f444c98 Uploaded
greg
parents:
diff changeset
76 #set file_name = $i.file_name
0a558f444c98 Uploaded
greg
parents:
diff changeset
77 #set identifier = re.sub('[^\s\w\-\\.]', '_', str($i.element_identifier))
0a558f444c98 Uploaded
greg
parents:
diff changeset
78 ln -s $i 'feature_png_dir/$identifier' &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
79 #end for
0a558f444c98 Uploaded
greg
parents:
diff changeset
80 #for $i in $mutation_regions:
0a558f444c98 Uploaded
greg
parents:
diff changeset
81 #set file_name = $i.file_name
0a558f444c98 Uploaded
greg
parents:
diff changeset
82 #set identifier = re.sub('[^\s\w\-\\.]', '_', str($i.element_identifier))
0a558f444c98 Uploaded
greg
parents:
diff changeset
83 ln -s $i 'mutation_regions_dir/$identifier' &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
84 #end for
0a558f444c98 Uploaded
greg
parents:
diff changeset
85
29
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
86 #if str($lrn_risk_amr_files) != 'None':
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
87 touch 'lrn_risk_amr.tsv' &&
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
88 #for $i in $lrn_risk_amr_files:
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
89 cat $i >> 'lrn_risk_amr.tsv' &&
28
27485e70ed2b Uploaded
greg
parents: 26
diff changeset
90 #end for
27485e70ed2b Uploaded
greg
parents: 26
diff changeset
91 #end if
27485e70ed2b Uploaded
greg
parents: 26
diff changeset
92
29
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
93 #if str($lrn_risk_blacklist_files) != 'None':
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
94 touch 'lrn_risk_blacklist.tsv' &&
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
95 #for $i in $lrn_risk_blacklist_files:
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
96 cat $i >> 'lrn_risk_blacklist.tsv' &&
28
27485e70ed2b Uploaded
greg
parents: 26
diff changeset
97 #end for
27485e70ed2b Uploaded
greg
parents: 26
diff changeset
98 #end if
27485e70ed2b Uploaded
greg
parents: 26
diff changeset
99
29
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
100 #if str($lrn_risk_vf_files) != 'None':
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
101 touch 'lrn_risk_vf.tsv' &&
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
102 #for $i in $lrn_risk_vf_files:
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
103 cat $i >> 'lrn_risk_vf.tsv' &&
28
27485e70ed2b Uploaded
greg
parents: 26
diff changeset
104 #end for
27485e70ed2b Uploaded
greg
parents: 26
diff changeset
105 #end if
27485e70ed2b Uploaded
greg
parents: 26
diff changeset
106
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
107 python '${__tool_directory__}/pima_report.py'
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
108 --amr_matrix_png_dir 'amr_matrix_png_dir'
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
109 --amr_deletions_file '$amr_deletions_file'
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
110 --analysis_name '$analysis_name'
0a558f444c98 Uploaded
greg
parents:
diff changeset
111 --assembly_fasta_file '$assembly_fasta_file'
0a558f444c98 Uploaded
greg
parents:
diff changeset
112 --assembly_name '$assembly_name'
12
99613333fd1f Uploaded
greg
parents: 5
diff changeset
113 #if str($bedtools_complementbed_file) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
114 --bedtools_version '$bedtools_version'
99613333fd1f Uploaded
greg
parents: 5
diff changeset
115 #end if
99613333fd1f Uploaded
greg
parents: 5
diff changeset
116 #if str($blastn_features) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
117 --blastn_version '$blastn_version'
99613333fd1f Uploaded
greg
parents: 5
diff changeset
118 #end if
13
f03c80bb22e9 Uploaded
greg
parents: 12
diff changeset
119 --circos_png_dir 'circos_png_dir'
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
120 --compute_sequence_length_file '$compute_sequence_length_file'
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
121 --contig_coverage_file '$contig_coverage_file'
0a558f444c98 Uploaded
greg
parents:
diff changeset
122 --dbkey '$aligned_sample.metadata.dbkey'
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
123 --dnadiff_snps_file '$dnadiff_snps_file'
12
99613333fd1f Uploaded
greg
parents: 5
diff changeset
124 #if str($dnadiff_snps_file) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
125 --dnadiff_version '$dnadiff_version'
99613333fd1f Uploaded
greg
parents: 5
diff changeset
126 #end if
18
e948214a9e3c Uploaded
greg
parents: 14
diff changeset
127 --errors_file '$errors_file'
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
128 --feature_bed_dir 'feature_bed_dir'
0a558f444c98 Uploaded
greg
parents:
diff changeset
129 --feature_png_dir 'feature_png_dir'
21
667b253329c6 Uploaded
greg
parents: 18
diff changeset
130 #if str($assembler_version_file) not in ['None', '']:
667b253329c6 Uploaded
greg
parents: 18
diff changeset
131 --assembler_version '$assembler_version'
26
46edd7435555 Uploaded
greg
parents: 25
diff changeset
132 #if str($read_type_cond.read_type) == 'ont':
21
667b253329c6 Uploaded
greg
parents: 18
diff changeset
133 ## Need to pass the tabular flye assembly file.
667b253329c6 Uploaded
greg
parents: 18
diff changeset
134 --flye_assembly_info_file '$assembler_version_file'
667b253329c6 Uploaded
greg
parents: 18
diff changeset
135 #end if
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
136 #end if
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
137 --genome_insertions_file '$genome_insertions_file'
26
46edd7435555 Uploaded
greg
parents: 25
diff changeset
138 #if str($read_type_cond.read_type) == 'ont':
46edd7435555 Uploaded
greg
parents: 25
diff changeset
139 ## We're analyzing a single-edn ONT sample.
46edd7435555 Uploaded
greg
parents: 25
diff changeset
140 #if $read_type_cond.ont_file.ext.endswith(".gz"):
46edd7435555 Uploaded
greg
parents: 25
diff changeset
141 --gzipped
46edd7435555 Uploaded
greg
parents: 25
diff changeset
142 #end if
46edd7435555 Uploaded
greg
parents: 25
diff changeset
143 --ont_file '$read_type_cond.ont_file'
46edd7435555 Uploaded
greg
parents: 25
diff changeset
144 #else:
46edd7435555 Uploaded
greg
parents: 25
diff changeset
145 ## We're analyzing a set of Illumina paired reads.
46edd7435555 Uploaded
greg
parents: 25
diff changeset
146 #if $read_type_cond.illumina_forward_read.ext.endswith(".gz"):
46edd7435555 Uploaded
greg
parents: 25
diff changeset
147 --gzipped
46edd7435555 Uploaded
greg
parents: 25
diff changeset
148 #end if
46edd7435555 Uploaded
greg
parents: 25
diff changeset
149 --illumina_forward_read_file '$read_type_cond.illumina_forward_read'
46edd7435555 Uploaded
greg
parents: 25
diff changeset
150 --illumina_reverse_read_file '$read_type_cond.illumina_reverse_read'
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
151 #end if
2
9cb62054a87a Uploaded
greg
parents: 1
diff changeset
152 #if str($kraken2_report_file) not in ['None', '']:
9cb62054a87a Uploaded
greg
parents: 1
diff changeset
153 --kraken2_report_file '$kraken2_report_file'
9cb62054a87a Uploaded
greg
parents: 1
diff changeset
154 --kraken2_version '$kraken2_version'
9cb62054a87a Uploaded
greg
parents: 1
diff changeset
155 #end if
29
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
156 --lrn_risk_amr_file 'lrn_risk_amr.tsv'
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
157 --lrn_risk_blacklist_file 'lrn_risk_blacklist.tsv'
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
158 --lrn_risk_vf_file 'lrn_risk_vf.tsv'
12
99613333fd1f Uploaded
greg
parents: 5
diff changeset
159 #if str($minimap2_bam_file) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
160 --minimap2_version '$minimap2_version'
99613333fd1f Uploaded
greg
parents: 5
diff changeset
161 #end if
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
162 --mutation_regions_dir 'mutation_regions_dir'
0a558f444c98 Uploaded
greg
parents:
diff changeset
163 --mutation_regions_bed_file '$mutation_regions_bed_file'
0a558f444c98 Uploaded
greg
parents:
diff changeset
164 --pima_css '${__tool_directory__}/pima.css'
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
165 --plasmids_file '$plasmids_file'
13
f03c80bb22e9 Uploaded
greg
parents: 12
diff changeset
166 --quast_report_file '$quast_report_file'
26
46edd7435555 Uploaded
greg
parents: 25
diff changeset
167 --read_type '$read_type_cond.read_type'
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
168 --reference_insertions_file '$reference_insertions_file'
12
99613333fd1f Uploaded
greg
parents: 5
diff changeset
169 #if str($samtools_pileup_file) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
170 --samtools_version '$samtools_version'
99613333fd1f Uploaded
greg
parents: 5
diff changeset
171 #end if
99613333fd1f Uploaded
greg
parents: 5
diff changeset
172 #if str($varscan_vcf_file) not in ['None', '']:
99613333fd1f Uploaded
greg
parents: 5
diff changeset
173 --varscan_version '$varscan_version'
99613333fd1f Uploaded
greg
parents: 5
diff changeset
174 #end if
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
175 && mv 'pima_report.pdf' '$output'
0a558f444c98 Uploaded
greg
parents:
diff changeset
176 ]]></command>
0a558f444c98 Uploaded
greg
parents:
diff changeset
177 <inputs>
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
178 <param name="amr_matrices_png" format="png" type="data_collection" collection_type="list" label="Collection of AMR matrix PNG files"/>
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
179 <param name="aligned_sample" type="data" format="bam" label="Aligned sample BAM file"/>
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
180 <param name="amr_deletions_file" type="data" format="bed" label="AMR deletions BED file"/>
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
181 <param name="assembly_fasta_file" type="data" format="fasta" label="Assembly FASTA file"/>
12
99613333fd1f Uploaded
greg
parents: 5
diff changeset
182 <param name="bedtools_complementbed_file" type="data" format="bed" label="Bedtools ComplementBed BED file"/>
4
428aed51c487 Uploaded
greg
parents: 3
diff changeset
183 <param name="blastn_features" format="tabular" type="data_collection" collection_type="list" label="Collection of blastn tabular files"/>
13
f03c80bb22e9 Uploaded
greg
parents: 12
diff changeset
184 <param name="circos_png" format="png" type="data_collection" collection_type="list" label="Collection of circos PNG files"/>
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
185 <param name="compute_sequence_length_file" type="data" format="tabular,tsv" label="Compute sequence length tabular file"/>
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
186 <param name="contig_coverage_file" type="data" format="tabular,tsv" label="Contig coverage tabular file"/>
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
187 <param name="dnadiff_snps_file" type="data" format="tabular" label="DNAdiff snps tabular file"/>
18
e948214a9e3c Uploaded
greg
parents: 14
diff changeset
188 <param name="errors_file" type="data" format="txt" label="AMR mutation regions error txt file"/>
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
189 <param name="features_bed" format="bed" type="data_collection" collection_type="list" label="Collection of best feature hits BED files"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
190 <param name="features_png" format="png" type="data_collection" collection_type="list" label="Collection of best feature hits PNG files"/>
21
667b253329c6 Uploaded
greg
parents: 18
diff changeset
191 <param name="assembler_version_file" type="data" format="fasta,tabular,tsv" optional="true" label="Assembly version file" help="Optional, ignored if not selected"/>
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
192 <param name="genome_insertions_file" type="data" format="bed" label="Genome insertions BED file"/>
2
9cb62054a87a Uploaded
greg
parents: 1
diff changeset
193 <param name="kraken2_report_file" type="data" format="tabular,tsv" optional="true" label="Kraken2 report tabular file" help="Optional, ignored if not selected"/>
29
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
194 <param name="lrn_risk_amr_files" format="tsv" type="data" multiple="true" optional="true" label="LRN Risk AMR files"/>
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
195 <param name="lrn_risk_blacklist_files" format="tsv" type="data" multiple="true" optional="true" label="LRN Risk blacklist files"/>
1352b8aa5979 Uploaded
greg
parents: 28
diff changeset
196 <param name="lrn_risk_vf_files" format="tsv" type="data" multiple="true" optional="true" label="LRN Risk virulence factors files"/>
12
99613333fd1f Uploaded
greg
parents: 5
diff changeset
197 <param name="minimap2_bam_file" type="data" format="bam" label="Minimap2 BAM file"/>
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
198 <param name="mutation_regions" format="tabular,tsv" type="data_collection" collection_type="list" label="Collection of mutation regions tabular files"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
199 <param name="mutation_regions_bed_file" type="data" format="mutations_regions,bed" label="Mutation regions BED file"/>
13
f03c80bb22e9 Uploaded
greg
parents: 12
diff changeset
200 <param name="quast_report_file" type="data" format="tabular" label="Quast report tabular file"/>
26
46edd7435555 Uploaded
greg
parents: 25
diff changeset
201 <conditional name="read_type_cond">
46edd7435555 Uploaded
greg
parents: 25
diff changeset
202 <param argument="--read_type" type="select" label="Specify the read type">
46edd7435555 Uploaded
greg
parents: 25
diff changeset
203 <option value="ont" selected="true">ONT single read</option>
46edd7435555 Uploaded
greg
parents: 25
diff changeset
204 <option value="illumina">Illumina read pair</option>
46edd7435555 Uploaded
greg
parents: 25
diff changeset
205 </param>
46edd7435555 Uploaded
greg
parents: 25
diff changeset
206 <when value="ont">
46edd7435555 Uploaded
greg
parents: 25
diff changeset
207 <param name="ont_file" type="data" format="fastqsanger,fastqsanger.gz" label="ONT single read sample file"/>
46edd7435555 Uploaded
greg
parents: 25
diff changeset
208 </when>
46edd7435555 Uploaded
greg
parents: 25
diff changeset
209 <when value="illumina">
46edd7435555 Uploaded
greg
parents: 25
diff changeset
210 <param name="illumina_forward_read" format="fastqsanger,fastqsanger.gz" type="data" label="Illumina forward read sample file"/>
46edd7435555 Uploaded
greg
parents: 25
diff changeset
211 <param name="illumina_reverse_read" format="fastqsanger,fastqsanger.gz" type="data" label="Illumina reverse read sample file"/>
46edd7435555 Uploaded
greg
parents: 25
diff changeset
212 </when>
46edd7435555 Uploaded
greg
parents: 25
diff changeset
213 </conditional>
1
67d0939b56b0 Uploaded
greg
parents: 0
diff changeset
214 <param name="reference_insertions_file" type="data" format="bed" label="Reference insertions BED file"/>
23
d89b7d47a85a Uploaded
greg
parents: 21
diff changeset
215 <param name="plasmids_file" type="data" format="tsv" optional="true" label="pChunks plasmids TSV file" help="Optional, ignored if not selected"/>
12
99613333fd1f Uploaded
greg
parents: 5
diff changeset
216 <param name="samtools_pileup_file" type="data" format="pileup" label="Samtools pileup file"/>
99613333fd1f Uploaded
greg
parents: 5
diff changeset
217 <param name="varscan_vcf_file" type="data" format="vcf" label="Varscan VCF file"/>
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
218 </inputs>
0a558f444c98 Uploaded
greg
parents:
diff changeset
219 <outputs>
0a558f444c98 Uploaded
greg
parents:
diff changeset
220 <data name="output" format="pdf"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
221 </outputs>
0a558f444c98 Uploaded
greg
parents:
diff changeset
222 <tests>
0a558f444c98 Uploaded
greg
parents:
diff changeset
223 <test>
0a558f444c98 Uploaded
greg
parents:
diff changeset
224 <param name="aligned_sample" value="aligned_sample.bam" ftype="bam"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
225 <param name="assembly_fasta_file" value="assembly_fasta.fasta" ftype="fasta"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
226 <param name="contig_coverage_file" value="contig_coverage.tabular" ftype="tabular"/>
26
46edd7435555 Uploaded
greg
parents: 25
diff changeset
227 <param name="read_type" value="ont"/>
46edd7435555 Uploaded
greg
parents: 25
diff changeset
228 <param name="ont_file" value="ont_fastq.fastq" ftype="fastq"/>
0
0a558f444c98 Uploaded
greg
parents:
diff changeset
229 <output name="output" value="output.pdf" ftype="pdf"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
230 </test>
0a558f444c98 Uploaded
greg
parents:
diff changeset
231 </tests>
0a558f444c98 Uploaded
greg
parents:
diff changeset
232 <help>
0a558f444c98 Uploaded
greg
parents:
diff changeset
233 **What it does**
0a558f444c98 Uploaded
greg
parents:
diff changeset
234
0a558f444c98 Uploaded
greg
parents:
diff changeset
235 Generates the PIMA analysis summary report.
0a558f444c98 Uploaded
greg
parents:
diff changeset
236 </help>
0a558f444c98 Uploaded
greg
parents:
diff changeset
237 <expand macro="citations"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
238 </tool>
0a558f444c98 Uploaded
greg
parents:
diff changeset
239