comparison fargene.xml @ 0:6f743c615c41 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fargene commit 867e4a6fad4c2622ad69517e2d4d9ba185109b72"
author iuc
date Thu, 28 Nov 2019 14:39:41 -0500
parents
children 239ce9f24386
comparison
equal deleted inserted replaced
-1:000000000000 0:6f743c615c41
1 <tool id="fargene" name="fargene" version="@VERSION@">
2 <description>Fragmented antibiotic resistance gene identifier </description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <version_command>fargene --version</version_command>
8 <command detect_errors="exit_code"><![CDATA[
9 #import re
10 #if $inputs.input_type == 'paired':
11 #set $safename_R1 = re.sub('[^\w\-_\.]', '_', $inputs.R1.element_identifier)
12 #set $safename_R2 = re.sub('[^\w\-_\.]', '_', $inputs.R2.element_identifier)
13 ln -fs '$inputs.R1' ${safename_R1}.fastq &&
14 ln -fs '$inputs.R2' ${safename_R2}.fastq &&
15 #elif $inputs.input_type == 'collection':
16 #for $i, $input in enumerate($inputs.input_collection)
17 #set $safename_fwd = re.sub('[^\w\-_\.]', '_', $input.element_identifier)
18 ln -fs '${input.forward}' ${safename_fwd}_1.fastq &&
19 #set $safename_rvs = re.sub('[^\w\-_\.]', '_', $input.element_identifier)
20 ln -fs '${input.reverse}' ${safename_rvs}_2.fastq &&
21 #end for
22 #elif $inputs.input_type == 'sequence':
23 #for $input in $inputs.input_sequence
24 #set $safename_seq = re.sub('[^\w\-_\.]', '_', $input.element_identifier)
25 ln -fs '$input' ${safename_seq}.fasta &&
26 #end for
27 #end if
28
29 fargene
30 --infiles
31 #if $inputs.input_type in ('paired', 'collection'):
32 *.fastq
33 --meta
34 #elif $inputs.input_type == 'sequence':
35 *.fasta
36 #end if
37 --hmm-model $models
38 --output fargene_output
39 --tmp-dir tmp
40 -p \${GALAXY_SLOTS:-4}
41 #if $meta_score != 0.0:
42 --meta-score '$meta_score'
43 #end if
44 #if $score != 0.0:
45 --score '$score'
46 #end if
47 #if $protein:
48 '$protein'
49 #end if
50 #if $min_orf_length != 90:
51 --min-orf-length '$min_orf_length'
52 #end if
53 #if $retrieve_whole:
54 '$retrieve_whole'
55 #end if
56 #if $no_orf_predict:
57 '$no_orf_predict'
58 #end if
59 #if $no_quality_filtering:
60 '$no_quality_filtering'
61 #end if
62 #if $no_assembly:
63 '$no_assembly'
64 #end if
65 #if $orf_finder:
66 '$orf_finder'
67 #end if
68 #if $store_peptides:
69 '$store_peptides'
70 #end if
71 &&
72 #if $inputs.input_type in ('paired', 'collection'):
73 tar czf retrievedFragments.tar.gz fargene_output/retrievedFragments
74 #end if
75 2>&1
76 ]]> </command>
77 <inputs>
78 <conditional name="inputs">
79 <param name="input_type" type="select" label="Input type" help="Select 'paired end' reads or 'sequence' for genomes/contigs">
80 <option value="paired" selected="true">Paired</option>
81 <option value="collection">Paired Collection</option>
82 <option value="sequence">Contigs/Genomes</option>
83 </param>
84 <when value="paired">
85 <param name="R1" type="data" format="fastqsanger,fastqsanger.gz" label="Forward reads (R1)" help="The file of forward reads in FASTQ format"/>
86 <param name="R2" type="data" format="fastqsanger,fastqsanger.gz" label="Reverse reads (R2)" help="The file of reverse reads in FASTQ format"/>
87 </when>
88 <when value="collection">
89 <param name="input_collection" format="fastqsanger" type="data_collection" collection_type="list:paired" label="Paired collection"/>
90 </when>
91 <when value="sequence">
92 <param name="input_sequence" type="data" format="fasta" multiple="true" label="Input contigs/genomes" />
93 </when>
94 </conditional>
95
96 <param name="models" type="select" label="Resistance Genes">
97 <option value="class_a">Class A beta-lactamases</option>
98 <option value="class_b_1_2">Subclass B1 and B2 beta-lactamases</option>
99 <option value="class_b_3">Subclass B3 beta-lactamases</option>
100 <option value="class_c">Class C beta-lactamases</option>
101 <option value="class_d_1">Class D beta-lactamases-1</option>
102 <option value="class_d_2">Class D beta-lactamases-2</option>
103 <option value="qnr">QNR</option>
104 </param>
105 <param name="score" argument="--score" type="float" value="0.0" label="The threshold score for a sequence to be classified as
106 a (almost) complete gene" />
107 <param name="meta_score" argument="--meta-score" type="float" value="0.0" label="The threshold score for a fragment to be classified as
108 a positive. Expressed as score per amino acid" />
109 <param name="protein" argument="--protein" type="boolean" truevalue="--protein" falsevalue="" checked="False" label="Rescue short unassmebled plasmids" />
110 <param name="min_orf_length" argument="--min-orf-length" type="integer" min="1" value="90" label="The minimal length for a retrieved predicted ORF (nt)" />
111 <param name="retrieve_whole" argument="--retrieve-whole" type="boolean" truevalue="--retrieve-whole " falsevalue="" checked="False" label="Use this flag if the whole sequence where a hit is
112 detected should be retrieved" />
113 <param name="no_orf_predict" argument="--no-orf-predict" type="boolean" truevalue="--no-orf-predict" falsevalue="" checked="False" label="Do not perform ORF prediction" />
114 <param name="no_quality_filtering" argument="--no-quality-filtering" type="boolean" truevalue="--no-quality-filtering" falsevalue="" checked="False" label="Use if no quality control should be performed on the
115 metagenomic data" />
116 <param name="no_assembly" argument="--no-assembly" type="boolean" truevalue="--no-assembly" falsevalue="" checked="False" label="Use if you want to skip the assembly and retrieval of
117 contigs for metagenomic data" />
118 <param name="orf_finder" argument="--orf-finder" type="boolean" truevalue="--orf-finder" falsevalue="" checked="False" label="Use NCBI ORFfinder instead of prodigal for ORF
119 prediction of genomes/contigs" />
120 <param name="store_peptides" argument="--store-peptides" type="boolean" truevalue="--store-peptides" falsevalue="" checked="False" label="Store the translated sequences. Useful if you plan to
121 redo the analysis using a different model and want to
122 skip the preprocessing steps" />
123
124 </inputs>
125 <outputs>
126 <data name="summary" format="txt" from_work_dir="fargene_output/results_summary.txt" label="${tool.name} on ${on_string} (Summary)">
127 </data>
128 <data name="retrievedFragments" format="tar.gz" from_work_dir="retrievedFragments.tar.gz" label="${tool.name} on ${on_string} (Retrieved Fragments)">
129 <filter>inputs["input_type"] in ['paired' , 'collection']</filter>
130 </data>
131 <data name="fargene_log" format="txt" from_work_dir="fargene_analysis.log" label="${tool.name} on ${on_string} (log)">
132 </data>
133 <collection name="hmmsearchresults" type="list" label="HMM Search Result">
134 <discover_datasets pattern="__name__" directory="fargene_output/hmmsearchresults" format="txt" ext="out" visible="false" />
135 </collection>
136 <collection name="predictedGenes" type="list" label="Predicted Genes">
137 <discover_datasets pattern="__name__" directory="fargene_output/predictedGenes" ext="fasta" format="fasta" visible="false" />
138 </collection>
139 </outputs>
140 <tests>
141 <test expect_num_outputs="5">
142 <conditional name="inputs">
143 <param name="input_type" value="paired"/>
144 <param name="R1" value="reads_1.fastq"/>
145 <param name="R2" value="reads_2.fastq"/>
146 </conditional>
147 <output name="summary" file="paired/results_summary.txt" compare="sim_size"/>
148 </test>
149 <test expect_num_outputs="5">
150 <conditional name="inputs">
151 <param name="input_type" value="collection"/>
152 <param name="input_collection">
153 <collection type="list:paired">
154 <element name="Pair1">
155 <collection type="paired">
156 <element name="forward" value="reads_1.fastq" ftype="fastqsanger"/>
157 <element name="reverse" value="reads_2.fastq" ftype="fastqsanger"/>
158 </collection>
159 </element>
160 </collection>
161 </param>
162 </conditional>
163 <output name="summary" file="paired/results_summary.txt" compare="sim_size"/>
164 </test>
165 <test expect_num_outputs="4">
166 <conditional name="inputs">
167 <param name="input_type" value="sequence"/>
168 <param name="input_sequence" value="klebsiella_plasmid.fasta"/>
169 <param name="models" value="class_b_1_2" />
170 </conditional>
171 <output name="summary" file="contigs/results_summary.txt" compare="sim_size"/>
172 </test>
173 </tests>
174 <help><![CDATA[
175
176 fARGene (Fragmented Antibiotic Resistance Gene iENntifiEr ) is a tool that takes either fragmented metagenomic data or longer sequences as input and predicts and delivers full-length antiobiotic resistance genes as output. The tool includes developed and optimized models for a number or resistance gene types, and the functionality to create and optimize models of your own choice of resistance genes.
177
178 The current version of the tool includes developed and optimized models for identification of the following resistance genes
179
180 - Class A beta-lactamases
181 - Subclass B1 and B2 beta-lactamases
182 - Subclass B3 beta-lactamases
183 - Class C beta-lactamases
184 - Class D beta-lactamases
185 - qnr
186 ]]>
187 </help>
188 <expand macro="citations" />
189 </tool>