Mercurial > repos > nml > bio_hansel
comparison bio_hansel.xml @ 3:29faaa849e41 draft
planemo upload for repository https://github.com/phac-nml/bio_hansel commit 4f09991d49a1701c54d5b97601a622e111c7290c
author | nml |
---|---|
date | Fri, 22 Dec 2017 10:31:41 -0500 |
parents | 09ebaa5192ab |
children | c0d08ba0c6ee |
comparison
equal
deleted
inserted
replaced
2:09ebaa5192ab | 3:29faaa849e41 |
---|---|
1 <tool id="bio_hansel" name="Salmonella Subtyping" version="0.1.3"> | 1 <tool id="bio_hansel" name="Bio Hansel" version="1.0.0"> |
2 <description>Genome assemblies and/or whole-genome sequencing readset</description> | 2 <description>SNV Subtyping with genome assemblies or reads</description> |
3 <requirements> | 3 <requirements> |
4 <requirement type="package" version="0.1.0">bio_hansel</requirement> | 4 <requirement type="package" version="1.1.0">bio_hansel</requirement> |
5 <requirement type="package" version="17.2.0">attrs</requirement> | 5 <requirement type="package" version="17.2.0">attrs</requirement> |
6 </requirements> | 6 </requirements> |
7 <command detect_errors="exit_code"><![CDATA[ | 7 <command detect_errors="exit_code"><![CDATA[ |
8 ## Preparing file input. | 8 ## Preparing file input. |
9 #if $data_type.type == "paired": | 9 #if $data_type.type == "paired": |
50 #elif $type_of_scheme.scheme_type == "custom": | 50 #elif $type_of_scheme.scheme_type == "custom": |
51 '$type_of_scheme.scheme_input.name' | 51 '$type_of_scheme.scheme_input.name' |
52 #end if | 52 #end if |
53 | 53 |
54 | 54 |
55 #if $kmer_min | 55 #if $kmer_vals.kmer_min |
56 --min-kmer-freq $kmer_min | 56 --min-kmer-freq $kmer_vals.kmer_min |
57 #end if | 57 #end if |
58 | 58 |
59 #if $kmer_max | 59 #if $kmer_vals.kmer_max |
60 --max-kmer-freq $kmer_max | 60 --max-kmer-freq $kmer_vals.kmer_max |
61 #end if | |
62 | |
63 #if $qc_vals.low_cov_depth_freq | |
64 --low-cov-depth-freq $qc_vals.low_cov_depth_freq | |
65 #end if | |
66 | |
67 #if $qc_vals.max_missing_tiles | |
68 --max-missing-tiles $qc_vals.max_missing_tiles | |
69 #end if | |
70 | |
71 #if $qc_vals.min_ambiguous_tiles | |
72 --min-ambiguous-tiles $qc_vals.min_ambiguous_tiles | |
73 #end if | |
74 | |
75 #if $qc_vals.max_intermediate_tiles | |
76 --max-intermediate-tiles $qc_vals.max_intermediate_tiles | |
61 #end if | 77 #end if |
62 | 78 |
63 ## Adding more parameters to the command. | 79 ## Adding more parameters to the command. |
64 -vvv -t "\${GALAXY_SLOTS:-1}" -o results.tab -O match_results.tab | 80 -vvv -t "\${GALAXY_SLOTS:-1}" -o results.tab -O match_results.tab -S tech_results.tab |
65 | 81 |
66 | 82 |
67 ## Entering the file inputs | 83 ## Entering the file inputs |
68 | 84 |
69 #if $data_type.type == "single": | 85 #if $data_type.type == "single": |
107 <when value="enteritidis"/> | 123 <when value="enteritidis"/> |
108 <when value="custom"> | 124 <when value="custom"> |
109 <param name="scheme_input" type="data" format="fasta" label="Scheme Input"/> | 125 <param name="scheme_input" type="data" format="fasta" label="Scheme Input"/> |
110 </when> | 126 </when> |
111 </conditional> | 127 </conditional> |
112 <param name="kmer_min" argument="--min-kmer-freq" optional="True" type="integer" min="0" label="Min k-mer freq/coverage" value="10" help="default = 10"/> | 128 <!-- K-mer frequencies. --> |
113 <param name="kmer_max" argument="--max-kmer-freq" optional="True" type="integer" min="1" label="Max k-mer freq/coverage" value="200" help="default = 200"/> | 129 <section name="kmer_vals" title="K-mer Frequency Thresholds" expanded="False"> |
130 <param name="kmer_min" argument="--min-kmer-freq" optional="True" type="integer" min="0" label="Min k-mer freq/coverage" value="8" help="default = 8"/> | |
131 <param name="kmer_max" argument="--max-kmer-freq" optional="True" type="integer" min="1" label="Max k-mer freq/coverage" value="1000" help="default = 1000"/> | |
132 </section> | |
133 <!-- Quality Checking Parameters --> | |
134 <section name="qc_vals" title="Quality Checking Thresholds" expanded="False"> | |
135 <param name="low_cov_depth_freq" argument="--low-cov-depth-freq" optional="True" type="integer" min="0" label="QC: Frequency below this coverage are considered low coverage" value="20" help="default = 20"/> | |
136 <param name="min_ambiguous_tiles" argument="--min-ambiguous-tiles" optional="True" type="integer" min="0" label="QC: Min number of tiles missing for Ambiguous Result" value="3" help="default = 3"/> | |
137 <param name="max_missing_tiles" argument="--max-missing-tiles" optional="True" type="float" min="0" max="1" label="QC: Decimal Proportion of max allowed missing tiles" value="0.05" help="default = 0.05, valid values {0.0 - 1.0}"/> | |
138 <param name="max_intermediate_tiles" argument="--max-intermediate-tiles" optional="True" type="float" min="0" max="1" label="QC: Decimal Proportion of max allowed missing tiles for an intermediate subtype" value="0.05" help="default = 0.05, valid values {0.0 - 1.0}"/> | |
139 </section> | |
114 </inputs> | 140 </inputs> |
115 <outputs> | 141 <outputs> |
116 <data format="tabular" name="results.tab" from_work_dir="results.tab" label="results.tab"/> | 142 <data format="tabular" name="results.tab" from_work_dir="results.tab" label="results.tab"/> |
117 <data format="tabular" name="match_results.tab" from_work_dir="match_results.tab" label="match_results.tab"/> | 143 <data format="tabular" name="match_results.tab" from_work_dir="match_results.tab" label="match_results.tab"/> |
144 <data format="tabular" name="tech_results.tab" from_work_dir="tech_results.tab" label="tech_results.tab"/> | |
118 </outputs> | 145 </outputs> |
119 <tests> | 146 <tests> |
120 <test> | 147 <test> |
121 <param name="type" value="single"/> | 148 <param name="type" value="single"/> |
122 <param name="type_of_scheme" value="heidelberg"/> | 149 <param name="type_of_scheme" value="heidelberg"/> |
123 <param name="fastq_input1" value="SRR1002850_SMALL.fasta"/> | 150 <param name="fastq_input1" value="SRR1002850_SMALL.fasta"/> |
124 <output name="results.tab"> | 151 <output name="results.tab"> |
125 <assert_contents> | 152 <assert_contents> |
126 <!-- Verifying that the columns are as expected. --> | 153 <has_text_matching expression="sample\s+scheme\s+scheme_version\s+subtype\s+all_subtypes\s+tiles_matching_subtype\s+are_subtypes_consistent\s+inconsistent_subtypes\s+n_tiles_matching_all\s+n_tiles_matching_all_expected\s+n_tiles_matching_positive\s+n_tiles_matching_positive_expected\s+n_tiles_matching_subtype\s+n_tiles_matching_subtype_expected\s+file_path\s+qc_status\s+qc_message"/> |
127 <has_text_matching expression="sample\s+scheme\s+subtype\s+all_subtypes\s+tiles_matching_subtype\s+are_subtypes_consistent\s+inconsistent_subtypes\s+n_tiles_matching_all\s+n_tiles_matching_all_total\s+n_tiles_matching_positive\s+n_tiles_matching_positive_total\s+n_tiles_matching_subtype\s+n_tiles_matching_subtype_total\s+file_path"/> | |
128 <!-- Verifying that the output of running the test file is expected. This is done via REGEX because the name and path of the file outputted to results.tab changes each test. --> | |
129 <has_text_matching expression="(heidelberg)\s+(2.2.2.2.1.4)\s+(2;)\s+(2.2;)\s+(2.2.2;)\s+(2.2.2.2;)\s+(2.2.2.2.1;)\s+(2.2.2.2.1.4)\s+(1037658-2.2.2.2.1.4;)\s+(2154958-2.2.2.2.1.4;)\s+(3785187-2.2.2.2.1.4)\s+(True)\s+(202)\s+(202)\s+(17)\s+(17)\s+(3)\s+(3)"/> | |
130 </assert_contents> | 154 </assert_contents> |
131 </output> | 155 </output> |
132 <output name="match_results.tab"> | 156 <output name="match_results.tab"> |
133 <assert_contents> | 157 <assert_contents> |
134 <!-- This is the last line in the file, this assertion is to make sure that we have the correct number of items. --> | 158 <has_text_matching expression="tilename\s+seq\s+is_revcomp\s+contig_id\s+match_index\s+refposition\s+subtype\s+is_pos_tile\s+sample\s+file_path\s+scheme\s+scheme_version\s+qc_status\s+qc_message"/> |
135 <has_text_matching expression="negative4738855-1.1"/> | 159 </assert_contents> |
160 </output> | |
161 <output name="tech_results.tab"> | |
162 <assert_contents> | |
163 <has_text_matching expression="sample\s+subtype\s+qc_status\s+qc_message"/> | |
136 </assert_contents> | 164 </assert_contents> |
137 </output> | 165 </output> |
138 </test> | 166 </test> |
139 <test> | 167 <test> |
140 <param name="type" value="paired"/> | 168 <param name="type" value="paired"/> |
141 <param name="type_of_scheme" value="heidelberg"/> | 169 <param name="type_of_scheme" value="heidelberg"/> |
142 <param name="fastq_input1" value="SRR5646583_SMALL_1.fastq"/> | 170 <param name="fastq_input1" value="SRR5646583_SMALL_1.fastq"/> |
143 <param name="fastq_input2" value="SRR5646583_SMALL_2.fastq"/> | 171 <param name="fastq_input2" value="SRR5646583_SMALL_2.fastq"/> |
144 <output name="results.tab"> | 172 <output name="results.tab"> |
145 <assert_contents> | 173 <assert_contents> |
146 <!-- Verifying that the columns are as expected. --> | 174 <has_text_matching expression="sample\s+scheme\s+scheme_version\s+subtype\s+all_subtypes\s+tiles_matching_subtype\s+are_subtypes_consistent\s+inconsistent_subtypes\s+n_tiles_matching_all\s+n_tiles_matching_all_expected\s+n_tiles_matching_positive\s+n_tiles_matching_positive_expected\s+n_tiles_matching_subtype\s+n_tiles_matching_subtype_expected\s+file_path\s+qc_status\s+qc_message"/> |
147 <has_text_matching expression="sample\s+scheme\s+subtype\s+all_subtypes\s+tiles_matching_subtype\s+are_subtypes_consistent\s+inconsistent_subtypes\s+n_tiles_matching_all\s+n_tiles_matching_all_total\s+n_tiles_matching_positive\s+n_tiles_matching_positive_total\s+n_tiles_matching_subtype\s+n_tiles_matching_subtype_total\s+file_path"/> | 175 </assert_contents> |
148 <!-- Verifying that the output of running the test file is expected. This is done via REGEX because the name and path of the file outputted to results.tab changes each test. --> | 176 </output> |
149 <has_text_matching expression="(heidelberg)\s+(2.2.1.1.1.1)\s+(2;)\s+(2.2;)\s+(2.2.1;)\s+(2.2.1.1;)\s+(2.2.1.1.1;)\s+(2.2.1.1.1.1)\s+(1983064-2.2.1.1.1.1;)\s+(4211912-2.2.1.1.1.1)\s+(True)\s+(202)\s+(202)\s+(20)\s+(20)\s+(2)\s+(2)"/> | 177 <output name="match_results.tab"> |
178 <assert_contents> | |
179 <has_text_matching expression="tilename\s+seq\s+freq\s+refposition\s+subtype\s+is_pos_tile\s+is_kmer_freq_okay\s+sample\s+scheme\s+scheme_version\s+qc_status\s+qc_message"/> | |
180 </assert_contents> | |
181 </output> | |
182 <output name="tech_results.tab"> | |
183 <assert_contents> | |
184 <has_text_matching expression="sample\s+subtype\s+qc_status\s+qc_message"/> | |
150 </assert_contents> | 185 </assert_contents> |
151 </output> | 186 </output> |
152 </test> | 187 </test> |
153 </tests> | 188 </tests> |
154 <help><![CDATA[ | 189 <help><![CDATA[ |