annotate kmerfinder.xml @ 0:b868a5fd2653 draft default tip

"planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
author thanhlv
date Thu, 18 Nov 2021 18:00:28 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
1 <tool id="kmerfinder" name="Kmerfinder" version="@VERSION@+galaxy0">
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
2 <description> Species identification using kmer</description>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
3 <macros>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
4 <token name="@VERSION@">3.0.2</token>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
5 </macros>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
6 <requirements>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
7 <requirement type="package" version="@VERSION@">kmerfinder</requirement>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
8 <!-- <container type="singularity">kmerfinder.sif</container> -->
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
9 </requirements>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
10 <version_command>echo "3.0.2"</version_command>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
11 <command detect_errors="exit_code"><![CDATA[
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
12 #import re
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
13 #if $input.is_of_type('fastqsanger', 'fastq'):
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
14 #set $ext = 'fastq'
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
15 #elif $input.is_of_type('fastqsanger.gz'):
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
16 #set $ext = 'fastq.gz'
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
17 #elif $input.is_of_type('fastq'):
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
18 #set $ext = 'fastq'
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
19 #elif $input.is_of_type('fastq.gz'):
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
20 #set $ext = 'fastq.gz'
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
21 #elif $input.is_of_type('fasta.gz'):
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
22 #set $ext = 'fasta.gz'
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
23 #elif $input.is_of_type('fasta'):
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
24 #set $ext = 'fasta'
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
25 #end if
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
26 #set $safename = re.sub('[^\w\-_\.]', '_', $input.element_identifier)
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
27 ln -fs '$input' $safename.$ext &&
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
28
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
29 kmerfinder.py
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
30 -i '$safename.$ext'
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
31 -db '${kmerfinder_databases.fields.path}.ATG'
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
32 -tax '${kmerfinder_databases.fields.path}.tax'
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
33 -o output
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
34 ]]> </command>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
35 <inputs>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
36 <param name="input" type="data" format="fasta,fasta.gz,fastqsanger,fastqsanger.gz" multiple="false" label="Sequence files" help="Fasta for Fastq"/>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
37 <!-- DATABASE INPUT-->
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
38 <param label="Select a database" name="kmerfinder_databases" type="select">
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
39 <options from_data_table="kmerfinder_databases">
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
40 <validator message="No database is available" type="no_options" />
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
41 </options>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
42 </param>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
43 </inputs>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
44 <outputs>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
45 <data name="results" format="tabular" label="${tool.name} on ${on_string} Results" from_work_dir="output/results.txt"/>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
46 </outputs>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
47 <tests>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
48 <test>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
49 <param name="input" value="test.fastq.gz" ftype="fastqsanger.gz"/>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
50 <param name="kmerfinder_databases" value="pseudomonas"/>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
51 <output name="results">
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
52 <assert_contents>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
53 <has_text text="Pseudomonas aeruginosa genome assembly PAO1OR" />
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
54 <has_text text="NZ_LN871187.1" />
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
55 </assert_contents>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
56 </output>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
57 </test>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
58 </tests>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
59 <help><![CDATA[
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
60 Kmerfinder finds the best match (species identification) to the reads in one or more fastq files or one fasta file in a (kmer) database produced using the KMA program. The method outputs the best matches, along with additional taxonomic information, if that option is selected.
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
61
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
62 _`Document`: https://bitbucket.org/genomicepidemiology/kmerfinder
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
63
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
64 ]]></help>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
65 <citations>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
66 <citation type="doi">10.1128/JCM.02981-13</citation>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
67 <citation type="doi">10.1128/JCM.02452-13</citation>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
68 <citation type="doi">10.1186/s12859-018-2336-6</citation>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
69 </citations>
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
70
b868a5fd2653 "planemo upload for repository https://github.com/quadram-institute-bioscience/galaxy-tools/tree/master/tools/kmerfinder commit 07d7ccc46c4387a3d9be4d99fa4671fc230cff1e-dirty"
thanhlv
parents:
diff changeset
71 </tool>