Mercurial > repos > nml > pneumocat
annotate pneumocat.xml @ 0:33de0245ed99 draft default tip
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
author | nml |
---|---|
date | Tue, 24 Mar 2020 13:27:46 -0400 |
parents | |
children |
rev | line source |
---|---|
0
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
1 <tool id="pneumocat" name="PneumoCaT" version="@VERSION@"> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
2 <description> Pneumococcal Capsular Typing of illumina reads</description> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
3 <macros> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
4 <import>macros.xml</import> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
5 </macros> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
6 <expand macro="requirements" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
7 <command detect_errors="exit_code"> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
8 <![CDATA[ |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
9 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
10 #import os |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
11 #import re |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
12 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
13 #def check_ending($name, $forward_read=True) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
14 ## Pneumocat needs to have name_1.fastq and name_2.fastq to work |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
15 ## Check for correct ending and change ending if needed |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
16 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
17 #if re.search(r'(\.|_)\S*(1|2)*$', $name) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
18 #if $forward_read |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
19 #return re.sub(r'(\.|_)\S*(1|2)*$', '_R1.fastq', $name) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
20 #else |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
21 #return re.sub(r'(\.|_)\S*(1|2)*$', '_R2.fastq', $name) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
22 #end if |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
23 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
24 #else |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
25 #if $forward_read |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
26 #return '{}_R1.fastq'.format($name) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
27 #else |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
28 #return '{}_R2.fastq'.format($name) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
29 #end if |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
30 #end if |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
31 #end def |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
32 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
33 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
34 #if $input.type == 'paired' |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
35 #set $initial = re.sub('[^\w_]', '_', os.path.splitext($input.forward.name)[0]) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
36 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
37 #set $for_input = $check_ending($initial) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
38 #set $rev_input = $check_ending($initial, forward_read=False) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
39 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
40 ln -s '$input.forward' ./$for_input && |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
41 ln -s '$input.reverse' ./$rev_input && |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
42 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
43 #elif $input.type == 'paired_collection' |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
44 #set $initial = re.sub('[^\w_]', '_', os.path.splitext($input.fastq_collection.forward.name)[0]) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
45 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
46 #set $for_input = $check_ending($initial) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
47 #set $rev_input = $check_ending($initial, forward_read=False) |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
48 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
49 ln -s '$input.fastq_collection.forward' ./$for_input && |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
50 ln -s '$input.fastq_collection.reverse' ./$rev_input && |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
51 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
52 #end if |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
53 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
54 PneumoCaT.py -1 '$for_input' -2 '$rev_input' -o outputs --threads '\${GALAXY_SLOTS:-1}' --cleanup |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
55 ]]> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
56 </command> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
57 <inputs> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
58 <conditional name="input"> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
59 <param name="type" type="select" label="Sequence Data Type"> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
60 <option value="paired">Paired-end reads (FASTQ)</option> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
61 <option value="paired_collection">Paired-end reads collection (FASTQ)</option> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
62 </param> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
63 <when value="paired"> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
64 <param name="forward" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
65 type="data" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
66 optional="false" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
67 multiple="false" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
68 label="Forward reads (FASTQ)" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
69 help="Must have ASCII encoded quality scores" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
70 /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
71 <param name="reverse" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
72 type="data" format="fastq,fastqsanger,fastq.gz,fastqsanger.gz" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
73 optional="false" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
74 label="Reverse reads (FASTQ)" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
75 help="File format must match the Forward FASTQ file" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
76 /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
77 </when> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
78 <when value="paired_collection"> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
79 <param name="fastq_collection" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
80 type="data_collection" format="fastq,fastqsanger, fastq.gz, fastqsanger.gz" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
81 collection_type="paired" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
82 optional="false" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
83 label="Paired-end reads collection (FASTQ)" |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
84 /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
85 </when> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
86 </conditional> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
87 </inputs> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
88 <outputs> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
89 <data format="txt" name="coverage_summary" from_work_dir="outputs/coverage_summary.txt" label="PneumoCaT Coverage Summary.txt"/> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
90 <data format="xml" name="results" from_work_dir="outputs/*.results.xml" label="PneumoCaT Results.xml"/> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
91 <data format="xml" name="specific_results" from_work_dir="outputs/SNP_based_serotyping/*.results.xml" label="PneumoCaT Serotype Distinction.xml"/> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
92 <data format="txt" name="variant_summary" from_work_dir="outputs/SNP_based_serotyping/variant_summary.yml" label="PneumoCaT Variant Summary.yml"/> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
93 </outputs> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
94 <tests> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
95 <test> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
96 <conditional name="input"> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
97 <param name="type" value="paired" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
98 <param name="forward" value="09N_R1.fastq" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
99 <param name="reverse" value="09N_R2.fastq" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
100 </conditional> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
101 <output name="coverage_summary" file="coverage_summary.txt" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
102 <output name="results" file="results.xml" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
103 </test> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
104 <test> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
105 <conditional name="input"> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
106 <param name="type" value="paired_collection" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
107 <param name="fastq_collection"> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
108 <collection type="paired"> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
109 <element name="forward" value="09N_R1.fastq.gz" ftype="fastq.gz" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
110 <element name="reverse" value="09N_R2.fastq.gz" ftype="fastq.gz" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
111 </collection> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
112 </param> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
113 </conditional> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
114 <output name="coverage_summary" file="coverage_summary.txt" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
115 <output name="results" file="results.xml" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
116 </test> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
117 </tests> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
118 <help> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
119 <![CDATA[ |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
120 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
121 PneumoCaT |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
122 --------- |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
123 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
124 PneumoCaT (Pneumococcal Capsular Typing) uses a two-step step approach to assign capsular type to |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
125 S.pneumoniae genomic data (Illumina). More info can be found at the `PneumoCaT github page <https://github.com/phe-bioinformatics/PneumoCaT>`_ |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
126 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
127 Program Steps |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
128 ############# |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
129 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
130 - **Step 1:** Reads from each readset are mapped to capsular locus sequences for all known capsular types using bowtie2 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
131 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
132 - This step is considered successful if the readset matches > 90% to one or more capsular locus sequences |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
133 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
134 - If only a singular capsular locus is matched, PneumoCaT terminates and reports that as the assigned capsular type |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
135 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
136 - If more than 1 loci are matched then the tool moves to step 2 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
137 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
138 - **Step 2:** Variant calling with the capsular type variant database |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
139 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
140 - Used to distinguish serotypes within a serogroup/genogroup |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
141 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
142 Please note PneumoCaT applies a quality metric requiring a mean depth of 20 reads across the mapped sequence |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
143 and a minimum depth of 5 reads for mapping. The report will retrun "Failed" if these conditions are not met. |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
144 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
145 Inputs |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
146 ###### |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
147 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
148 - **Paired-end Illumina reads** with one of the following example formats is prefered: |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
149 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
150 - <name>_1.fastq and <name>_2.fastq |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
151 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
152 - <name>_R1.fastq and <name>_R2.fastq |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
153 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
154 - <name>_R1.fastqsanger.gz and <name>_R2.fastqsanger.gz |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
155 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
156 - If the reads are not formatted as above, the wrapper will append _R1.fastq and _R2.fastq to allow function |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
157 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
158 Outputs |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
159 ####### |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
160 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
161 Please see `**PneumoCaTs interpreting results document** <https://github.com/phe-bioinformatics/PneumoCaT/blob/master/Documentation/InterpretingResults.pdf>`_ |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
162 for full up-to-date information on how to interpret PneumoCaT results. |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
163 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
164 Galaxy will output 4 results running PneumoCaT with 2 of the results only appearing if **Step 2** variant calling is done |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
165 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
166 **1. Coverage Summary.txt** -- Always output unless fails -- |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
167 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
168 **2. Results.xml** -- Always output unless fails -- |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
169 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
170 **3. Serotype distinction.xml** -- Step 2 Required -- |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
171 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
172 **4. Variant Summary.txt** -- Step 2 Required -- |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
173 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
174 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
175 **Note** - Galaxy will always output files 3 and 4 even if step 2 is not done. In these cases, the files will have no data. |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
176 |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
177 ]]> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
178 </help> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
179 <expand macro="citations" /> |
33de0245ed99
"planemo upload for repository https://github.com/phe-bioinformatics/PneumoCaT commit c1002f7ad15e676357c6489878291de07bbde841"
nml
parents:
diff
changeset
|
180 </tool> |