0
|
1 <tool id="lrn_risk" name="PIMA: LRNRisk" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
|
|
2 <description>isolate classification</description>
|
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements"/>
|
|
7 <command detect_errors="exit_code"><![CDATA[
|
1
|
8 #import re
|
|
9
|
|
10 #for $i in $blast_features_collection:
|
|
11 #set file_name = $i.file_name
|
|
12 #set identifier = re.sub('[^\s\w\-\\.]', '_', str($i.element_identifier))
|
|
13 #if $identifier.lower().startswith('features_amr'):
|
|
14 #set amr_determinants_input = $identifier
|
|
15 #else if $identifier.lower().startswith('features_vfdb'):
|
|
16 #set virulence_factors_input = $identifier
|
|
17 #end if
|
|
18 ln -s '$file_name' '$identifier' &&
|
|
19 #end for
|
|
20
|
0
|
21 python '$__tool_directory__/lrn_risk.py'
|
|
22 --gtdb_file '$gtdb_file'
|
1
|
23 --virulence_factors_file '$virulence_factors_input'
|
|
24 --amr_determinants_file '$amr_determinants_input'
|
0
|
25 --blacklist_file '$blacklist_file'
|
|
26 --vf_distribution_file '$vf_distribution_file'
|
|
27 --amr_distribution_file '$amr_distribution_file'
|
|
28 --blacklist_output_file '$blacklist_output_file'
|
|
29 --vfdb_output_file '$vfdb_output_file'
|
|
30 --amr_output_file '$amr_output_file'
|
|
31 ]]></command>
|
|
32 <inputs>
|
|
33 <param name="gtdb_file" type="data" format="tabular,tsv" label="GTDB-Tk Classify genomes file"/>
|
1
|
34 <param name="blast_features_collection" format="tabular,tsv" type="data_collection" collection_type="list" label="Collection BLAST features databases"/>
|
0
|
35 <param name="blacklist_file" type="data" format="tabular,tsv" label="File containing blacklisted high-risk virulence factors"/>
|
|
36 <param name="vf_distribution_file" type="data" format="tabular,tsv" label="File containing virulence factor distribution"/>
|
|
37 <param name="amr_distribution_file" type="data" format="tabular,tsv" label="File containing AMR determinant distribution"/>
|
|
38 </inputs>
|
|
39 <outputs>
|
|
40 <data name="blacklist_output_file" format="tsv" label="${tool.name} on ${on_string} (blacklist)"/>
|
|
41 <data name="vfdb_output_file" format="tsv" label="${tool.name} on ${on_string} (VFDB)"/>
|
|
42 <data name="amr_output_file" format="tsv" label="${tool.name} on ${on_string} (AMR)"/>
|
|
43 </outputs>
|
|
44 <tests>
|
|
45 <test>
|
|
46 <param name="gtdb_file" value="gtdb.tsv" ftype="tsv"/>
|
1
|
47 <param name="blast_features_collection">
|
|
48 <collection type="list">
|
|
49 <element name="FEATURES_AMR_database_2023_02_02.fasta" value="FEATURES_AMR_database_2023_02_02.tsv"/>
|
|
50 <element name="FEATURES_incompatibility_groups_database_2023_01_01.fasta" value="FEATURES_incompatibility_groups_database_2023_01_01.tsv"/>
|
|
51 <element name="FEATURES_vfdb_core_database_2023_03_30.fasta" value="FEATURES_vfdb_core_database_2023_03_30.tsv"/>
|
|
52 </collection>
|
|
53 </param>
|
0
|
54 <param name="blacklist_file" value="blacklist.tsv" ftype="tsv"/>
|
|
55 <param name="vf_distribution_file" value="vf_distribution.tsv" ftype="tsv"/>
|
|
56 <param name="amr_distribution_file" value="amr_distribution.tsv" ftype="tsv"/>
|
1
|
57 <output name="blacklist_output_file" value="blacklist_output.tsv" ftype="tsv"/>
|
0
|
58 <output name="vfdb_output_file" value="vfdb_output.tsv" ftype="tsv"/>
|
|
59 <output name="amr_output_file" value="amr_output.tsv" ftype="tsv"/>
|
|
60 </test>
|
|
61 </tests>
|
|
62 <help>
|
|
63 **What it does**
|
|
64
|
|
65 Classifies isolates into "high risk" and "unlikely high risk" and provides information about prevalence of a given virulence
|
|
66 gene among all publicly available genome of a given species and prevalence of a given antimicrobial resistance gene among all
|
|
67 publicly available genomes of a given species.
|
|
68 </help>
|
|
69 <expand macro="citations"/>
|
|
70 </tool>
|
|
71
|