annotate pima_report.xml @ 0:0a558f444c98 draft

Uploaded
author greg
date Fri, 03 Mar 2023 22:06:23 +0000
parents
children 67d0939b56b0
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
0a558f444c98 Uploaded
greg
parents:
diff changeset
10 #set analysis_name = re.sub('[^\s\w\-]', '_', str($illumina_fastq_file.element_identifier))
0a558f444c98 Uploaded
greg
parents:
diff changeset
11 #set assembly_name = re.sub('[^\s\w\-]', '_', str($assembly_fasta_file.element_identifier))
0a558f444c98 Uploaded
greg
parents:
diff changeset
12
0a558f444c98 Uploaded
greg
parents:
diff changeset
13 mkdir feature_bed_dir &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
14 mkdir feature_png_dir &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
15 mkdir mutation_regions_dir &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
16 touch 'pima_report.pdf' &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
17
0a558f444c98 Uploaded
greg
parents:
diff changeset
18 #for $i in $features_bed:
0a558f444c98 Uploaded
greg
parents:
diff changeset
19 #set file_name = $i.file_name
0a558f444c98 Uploaded
greg
parents:
diff changeset
20 #set identifier = re.sub('[^\s\w\-\\.]', '_', str($i.element_identifier))
0a558f444c98 Uploaded
greg
parents:
diff changeset
21 ln -s $i 'feature_bed_dir/$identifier' &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
22 #end for
0a558f444c98 Uploaded
greg
parents:
diff changeset
23 #for $i in $features_png:
0a558f444c98 Uploaded
greg
parents:
diff changeset
24 #set file_name = $i.file_name
0a558f444c98 Uploaded
greg
parents:
diff changeset
25 #set identifier = re.sub('[^\s\w\-\\.]', '_', str($i.element_identifier))
0a558f444c98 Uploaded
greg
parents:
diff changeset
26 ln -s $i 'feature_png_dir/$identifier' &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
27 #end for
0a558f444c98 Uploaded
greg
parents:
diff changeset
28 #for $i in $mutation_regions:
0a558f444c98 Uploaded
greg
parents:
diff changeset
29 #set file_name = $i.file_name
0a558f444c98 Uploaded
greg
parents:
diff changeset
30 #set identifier = re.sub('[^\s\w\-\\.]', '_', str($i.element_identifier))
0a558f444c98 Uploaded
greg
parents:
diff changeset
31 ln -s $i 'mutation_regions_dir/$identifier' &&
0a558f444c98 Uploaded
greg
parents:
diff changeset
32 #end for
0a558f444c98 Uploaded
greg
parents:
diff changeset
33
0a558f444c98 Uploaded
greg
parents:
diff changeset
34 python '${__tool_directory__}/pima_report.py'
0a558f444c98 Uploaded
greg
parents:
diff changeset
35 --analysis_name '$analysis_name'
0a558f444c98 Uploaded
greg
parents:
diff changeset
36 --assembly_fasta_file '$assembly_fasta_file'
0a558f444c98 Uploaded
greg
parents:
diff changeset
37 --assembly_name '$assembly_name'
0a558f444c98 Uploaded
greg
parents:
diff changeset
38 --contig_coverage_file '$contig_coverage_file'
0a558f444c98 Uploaded
greg
parents:
diff changeset
39 --dbkey '$aligned_sample.metadata.dbkey'
0a558f444c98 Uploaded
greg
parents:
diff changeset
40 --feature_bed_dir 'feature_bed_dir'
0a558f444c98 Uploaded
greg
parents:
diff changeset
41 --feature_png_dir 'feature_png_dir'
0a558f444c98 Uploaded
greg
parents:
diff changeset
42 #if $illumina_fastq_file.ext.endswith(".gz"):
0a558f444c98 Uploaded
greg
parents:
diff changeset
43 --gzipped
0a558f444c98 Uploaded
greg
parents:
diff changeset
44 #end if
0a558f444c98 Uploaded
greg
parents:
diff changeset
45 --illumina_fastq_file '$illumina_fastq_file'
0a558f444c98 Uploaded
greg
parents:
diff changeset
46 --mutation_regions_dir 'mutation_regions_dir'
0a558f444c98 Uploaded
greg
parents:
diff changeset
47 --mutation_regions_bed_file '$mutation_regions_bed_file'
0a558f444c98 Uploaded
greg
parents:
diff changeset
48 --pima_css '${__tool_directory__}/pima.css'
0a558f444c98 Uploaded
greg
parents:
diff changeset
49 && mv 'pima_report.pdf' '$output'
0a558f444c98 Uploaded
greg
parents:
diff changeset
50 ]]></command>
0a558f444c98 Uploaded
greg
parents:
diff changeset
51 <inputs>
0a558f444c98 Uploaded
greg
parents:
diff changeset
52 <param name="aligned_sample" type="data" format="bam" label="Aligned sample BAM file"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
53 <param name="assembly_fasta_file" type="data" format="fasta" label="Assembly FASTA file"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
54 <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
55 <param name="features_png" format="png" type="data_collection" collection_type="list" label="Collection of best feature hits PNG files"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
56 <param name="contig_coverage_file" type="data" format="tabular,tsv" label="Contig coverage tabular file"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
57 <param name="illumina_fastq_file" type="data" format="fastqsanger,fastqsanger.gz" label="Fastq sample file"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
58 <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
59 <param name="mutation_regions_bed_file" type="data" format="mutations_regions,bed" label="Mutation regions BED file"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
60 </inputs>
0a558f444c98 Uploaded
greg
parents:
diff changeset
61 <outputs>
0a558f444c98 Uploaded
greg
parents:
diff changeset
62 <data name="output" format="pdf"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
63 </outputs>
0a558f444c98 Uploaded
greg
parents:
diff changeset
64 <tests>
0a558f444c98 Uploaded
greg
parents:
diff changeset
65 <test>
0a558f444c98 Uploaded
greg
parents:
diff changeset
66 <param name="aligned_sample" value="aligned_sample.bam" ftype="bam"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
67 <param name="assembly_fasta_file" value="assembly_fasta.fasta" ftype="fasta"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
68 <param name="contig_coverage_file" value="contig_coverage.tabular" ftype="tabular"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
69 <param name="illumina_fastq_file" value="illumina_fastq.fastq" ftype="fastq"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
70 <output name="output" value="output.pdf" ftype="pdf"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
71 </test>
0a558f444c98 Uploaded
greg
parents:
diff changeset
72 </tests>
0a558f444c98 Uploaded
greg
parents:
diff changeset
73 <help>
0a558f444c98 Uploaded
greg
parents:
diff changeset
74 **What it does**
0a558f444c98 Uploaded
greg
parents:
diff changeset
75
0a558f444c98 Uploaded
greg
parents:
diff changeset
76 Generates the PIMA analysis summary report.
0a558f444c98 Uploaded
greg
parents:
diff changeset
77 </help>
0a558f444c98 Uploaded
greg
parents:
diff changeset
78 <expand macro="citations"/>
0a558f444c98 Uploaded
greg
parents:
diff changeset
79 </tool>
0a558f444c98 Uploaded
greg
parents:
diff changeset
80