Mercurial > repos > ufz > genomad_end_to_end
comparison genomad_end_to_end.xml @ 0:955e33326e20 draft
planemo upload for repository https://github.com/Helmholtz-UFZ/ufz-galaxy-tools/blob/main/tools/longorf/ commit 483ade5362574a59ddc87e3788334bcbff253805
author | ufz |
---|---|
date | Tue, 18 Jun 2024 14:28:44 +0000 |
parents | |
children | edb671f0661e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:955e33326e20 |
---|---|
1 <tool id="genomad_end_to_end" name="geNomad" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="23.0" license="MIT"> | |
2 <description>identify virus and plasmid genomes from nucleotide sequences</description> | |
3 <macros> | |
4 <token name="@TOOL_VERSION@">1.8.0</token> | |
5 <token name="@VERSION_SUFFIX@">0</token> | |
6 <token name="@MIN_DB_VERSION@">1.2</token> <!-- https://portal.nersc.gov/genomad/__data__/releases.txt --> | |
7 <xml name="summary_output_macro" tokens="type"> | |
8 <data name="summary_@TYPE@_fna" format="fasta" from_work_dir="output/sequence_summary/sequence_@TYPE@.fna" label="${tool.name} on ${on_string}: @TYPE@ fasta"/> | |
9 <data name="summary_@TYPE@_genes" format="tabular" from_work_dir="output/sequence_summary/sequence_@TYPE@_genes.tsv" label="${tool.name} on ${on_string}: @TYPE@ genes"> | |
10 <actions> | |
11 <action name="column_names" type="metadata" default="gene,start,end,length,strand,gc_content,genetic_code,rbs_motif,marker,evalue,bitscore,uscg,plasmid_hallmark,virus_hallmark,taxid,taxname,annotation_conjscan,annotation_amr,annotation_accessions,annotation_description"/> | |
12 </actions> | |
13 </data> | |
14 <data name="summary_@TYPE@_proteins" format="fasta" from_work_dir="output/sequence_summary/sequence_@TYPE@_proteins.faa" label="${tool.name} on ${on_string}: @TYPE@ proteins fasta"/> | |
15 <data name="summary_@TYPE@_summary" format="tabular" from_work_dir="output/sequence_summary/sequence_@TYPE@_summary.tsv" label="${tool.name} on ${on_string}: @TYPE@ summary"> | |
16 <actions> | |
17 <action name="column_names" type="metadata" default="seq_name,length,topology,coordinates,n_genes,genetic_code,virus_score,fdr,n_hallmarks,marker_enrichment,taxonomy" /> | |
18 </actions> | |
19 </data> | |
20 </xml> | |
21 </macros> | |
22 <xrefs> | |
23 <xref type="bio.tools">genomad</xref> | |
24 </xrefs> | |
25 <requirements> | |
26 <requirement type="package" version="@TOOL_VERSION@">genomad</requirement> | |
27 </requirements> | |
28 <version_command><![CDATA[genomad end-to-end --version | cut -f 3 -d " "]]></version_command> | |
29 <command detect_errors="exit_code"><![CDATA[ | |
30 ## symlink sequence (to make output directory names predictable) | |
31 ln -s '$INPUT' sequence.fa && | |
32 mkdir output/ && | |
33 genomad end-to-end | |
34 $filter_cond.filtering_preset | |
35 #if $filter_cond.filtering_preset == '' | |
36 --min-score $filter_cond.min_score | |
37 --max-fdr $filter_cond.max_fdr | |
38 --min-plasmid-marker-enrichment $filter_cond.min_plasmid_marker_enrichment | |
39 --min-virus-marker-enrichment $filter_cond.min_virus_marker_enrichment | |
40 --min-plasmid-hallmarks $filter_cond.min_plasmid_hallmarks | |
41 --min-plasmid-hallmarks-short-seqs $filter_cond.min_plasmid_hallmarks_short_seqs | |
42 --min-virus-hallmarks $filter_cond.min_virus_hallmarks | |
43 --min-virus-hallmarks-short-seqs $filter_cond.min_virus_hallmarks_short_seqs | |
44 --max-uscg $filter_cond.max_uscg | |
45 #end if | |
46 --threads \${GALAXY_SLOTS:-4} | |
47 $basic.disable_find_proviruses | |
48 $basic.disable_nn_classification | |
49 $basic.enable_score_calibration | |
50 $annotation.conservative_taxonomy | |
51 --sensitivity $annotation.sensitivity | |
52 --splits $annotation.splits | |
53 $provirus.skip_integrase_identification | |
54 $provirus.skip_trna_identification | |
55 --composition $score.composition | |
56 $score.force_auto | |
57 sequence.fa | |
58 output/ | |
59 '$DATABASE.fields.path' | |
60 ]]></command> | |
61 <inputs> | |
62 <param argument="INPUT" type="data" format="fasta" label="Input sequences" help="geNomad will work for isolate genomes, metagenomes, and metatranscriptomes"/> | |
63 <param name="DATABASE" type="select" label="Reference data" help=""> | |
64 <options from_data_table="genomad"/> | |
65 <!-- TODO needs to be activated with https://github.com/galaxyproject/galaxy/pull/18411 | |
66 <validator type="in_range" min="@MIN_DB_VERSION@"/> --> | |
67 </param> | |
68 <conditional name="filter_cond"> | |
69 <param name="filtering_preset" type="select" label="Filtering presets" help="After classification, sequences are further filtered to remove possible false positives. The --conservative preset makes those filters even more aggressive, resulting in more restricted sets of plasmid and virus, containing only sequences whose classification is strongly supported. The --relaxed preset disables all post-classification filters."> | |
70 <option value="--conservative">Conservative (--conservative)</option> | |
71 <option value="--relaxed">Relaxed (--relaxed)</option> | |
72 <option value="">Manual</option> | |
73 </param> | |
74 <when value="--conservative"/> | |
75 <when value="--relaxed"/> | |
76 <when value=""> | |
77 <param argument="--min-score" type="float" min="0" max="1" value="0.7" label="Minimum score to flag a sequence as virus or plasmid" help=""/> | |
78 <param argument="--max-fdr" type="float" min="0" max="1" value="0.1" label="Maximum false discovery rate" help="This option will be ignored if the scores were not calibrated"/> | |
79 <param argument="--min-plasmid-marker-enrichment" type="float" value="0.1" label="Minimum allowed value for the plasmid marker enrichment score" help="This enrichment score represents the total enrichment of plasmid markers in the sequence. Sequences with multiple plasmid markers will have higher values than the ones that encode few or no markers. This option will be ignored if the annotation module was not executed." /> | |
80 <param argument="--min-virus-marker-enrichment" type="float" value="0.0" label="Minimum allowed value for the virus marker enrichment score" help="This enrichment score represents the total enrichment of virus markers in the sequence. Sequences with multiple virus markers will have higher values than the ones that encode few or no markers. This option will be ignored if the annotation module was not executed." /> | |
81 <param argument="--min-plasmid-hallmarks" type="integer" min="0" value="0" label="minimum number of plasmid hallmarks in the identified plasmids" help="this option will be ignored if the annotation module was not executed." /> | |
82 <param argument="--min-plasmid-hallmarks-short-seqs" type="integer" min="0" value="1" label="minimum number of plasmid hallmarks in plasmids shorter than 2,500 bp" help="this option will be ignored if the annotation module was not executed." /> | |
83 <param argument="--min-virus-hallmarks" type="integer" min="0" value="0" label="minimum number of virus hallmarks in the identified viruses" help="this option will be ignored if the annotation module was not executed." /> | |
84 <param argument="--min-virus-hallmarks-short-seqs" type="integer" min="0" value="1" label="minimum number of virus hallmarks in viruses shorter than 2,500 bp" help="this option will be ignored if the annotation module was not executed." /> | |
85 <param argument="--max-uscg" type="integer" value="4" label="Maximum allowed number of universal single copy genes (USCGs) in a virus or a plasmid." help="Sequences with more than this number of USCGs will not be classified as viruses or plasmids, regardless of their score. This option will be ignored if the annotation module was not executed." /> | |
86 </when> | |
87 </conditional> | |
88 <section name="basic" title="basic options" expanded="true"> | |
89 <param argument="--disable-find-proviruses" type="boolean" truevalue="" falsevalue="--disable-find-proviruses" checked="true" label="Execute the find-proviruses module" help="" /> | |
90 <param argument="--disable-nn-classification" type="boolean" truevalue="" falsevalue="--disable-nn-classification" checked="true" label="Execute the find-proviruses module" help="" /> | |
91 <param argument="--enable-score-calibration" type="boolean" truevalue="--enable-score-calibration" falsevalue="" checked="false" label="Execute the score-calibration module" help="" /> | |
92 </section> | |
93 <section name="annotation" title="annotation options" expanded="true"> | |
94 <param argument="--conservative-taxonomy" type="boolean" truevalue="--conservative-taxonomy" falsevalue="" checked="false" label="More conservative virus taxonomic assignment" help="This might reduce the amount of genomes assigned to the family level, but will decrease the rate of family misassignment" /> | |
95 <param argument="--sensitivity" type="float" min="0" value="4.2" label="MMseqs2 marker search sensitivity" help="Higher values will annotate more proteins, but the search will be slower and consume more memory" /> | |
96 <param argument="--splits" type="integer" min="0" value="0" label="Split the data for the MMseqs2 search." help="Higher values will reduce memory usage, but will make the search slower. If the MMseqs2 search is failing, try to increase the number of splits. Consult you Galaxy admin if more memory may be used" /> | |
97 </section> | |
98 <section name="provirus" title="find-proviruses options" expanded="true"> | |
99 <param argument="--skip-integrase-identification" type="boolean" truevalue="--skip-integrase-identification" falsevalue="" checked="false" label="Disable provirus boundary extension using nearby integrases" /> | |
100 <param argument="--skip-trna-identification" type="boolean" truevalue="--skip-trna-identification" falsevalue="" checked="false" label="Disable provirus boundary extension using nearby tRNAs" /> | |
101 </section> | |
102 <section name="score" title="score-calibration options" expanded="true"> | |
103 <param argument="--composition" type="select" label="Method for estimating sample composition" > | |
104 <option value="auto" selected="true">auto</option> | |
105 <option value="metagenome">metagenome</option> | |
106 <option value="virom">virom</option> | |
107 </param> | |
108 <param argument="--force-auto" type="boolean" truevalue="--force-auto" falsevalue="" checked="false" label="Force automatic composition estimation" help="regardless of the sample size" /> | |
109 </section> | |
110 </inputs> | |
111 <outputs> | |
112 <expand macro="summary_output_macro" type="plasmid"/> | |
113 <expand macro="summary_output_macro" type="virus"/> | |
114 </outputs> | |
115 <tests> | |
116 <test> | |
117 <param name="INPUT" value="GCF_009025895.1_ASM902589v1_genomic.fna" ftype="fasta"/> | |
118 <param name="DATABASE" value="1.2"/> | |
119 <section name="annotation"> | |
120 <param name="splits" value="8"/><!-- needed for low mem CI--> | |
121 </section> | |
122 <output name="summary_plasmid_fna"> | |
123 <assert_contents> | |
124 <has_line_matching expression="^>.*" n="5"/> | |
125 </assert_contents> | |
126 </output> | |
127 <output name="summary_plasmid_genes"> | |
128 <assert_contents> | |
129 <has_n_lines n="336"/> | |
130 <has_n_columns n="20"/> | |
131 </assert_contents> | |
132 </output> | |
133 <output name="summary_plasmid_proteins"> | |
134 <assert_contents> | |
135 <has_line_matching expression="^>.*" n="335"/> | |
136 </assert_contents> | |
137 </output> | |
138 <output name="summary_plasmid_summary"> | |
139 <assert_contents> | |
140 <has_n_lines n="6"/> | |
141 <has_n_columns n="11"/> | |
142 </assert_contents> | |
143 </output> | |
144 <output name="summary_virus_fna"> | |
145 <assert_contents> | |
146 <has_line_matching expression="^>.*" n="1"/> | |
147 </assert_contents> | |
148 </output> | |
149 <output name="summary_virus_genes"> | |
150 <assert_contents> | |
151 <has_n_lines n="58"/> | |
152 <has_n_columns n="20"/> | |
153 </assert_contents> | |
154 </output> | |
155 <output name="summary_virus_proteins"> | |
156 <assert_contents> | |
157 <has_line_matching expression="^>.*" n="57"/> | |
158 </assert_contents> | |
159 </output> | |
160 <output name="summary_virus_summary"> | |
161 <assert_contents> | |
162 <has_n_lines n="2"/> | |
163 <has_n_columns n="11"/> | |
164 </assert_contents> | |
165 </output> | |
166 </test> | |
167 </tests> | |
168 <help><![CDATA[ | |
169 | |
170 geNomad is a tool that identifies virus and plasmid genomes from nucleotide sequences. | |
171 For details on the function refer to the citation or https://portal.nersc.gov/genomad/index.html. | |
172 | |
173 This Galaxy tool executed the ent-to-end geNomad workflow. | |
174 | |
175 Usage | |
176 ..... | |
177 | |
178 | |
179 **Input** | |
180 | |
181 Any FASTA file containing nucleotide sequences as input. geNomad will work for isolate genomes, metagenomes, and metatranscriptomes. | |
182 In addition you need to select a reference database that has to be installed by your Galaxy admin. | |
183 | |
184 | |
185 **Output** | |
186 | |
187 plasmid/virus summary with the following columns | |
188 | |
189 * seq_name: The identifier of the sequence in the input FASTA file. Proviruses will have the following name scheme: <sequence_identifier>|provirus_<start_coordinate>_<end_coordinate>. | |
190 * length: Length of the sequence (or the provirus, in the case of integrated viruses). | |
191 * topology: Topology of the viral sequence. Possible values are: No terminal repeats, DTR (direct terminal repeats), ITR (inverted terminal repeats), or Provirus (viruses integrated in host genomes). | |
192 * coordinates: 1-indexed coordinates of the provirus region within host sequences. Will be NA for viruses that were not predicted to be integrated. | |
193 * n_genes: Number of genes encoded in the sequence. | |
194 * genetic_code: Predicted genetic code. Possible values are: 11 (standard code for Bacteria and Archaea), 4 (recoded TGA stop codon), or 15 (recoded TAG stop codon). | |
195 * virus_score: A measure of how confident geNomad is that the sequence is a virus. Sequences that have scores close to 1.0 are more likely to be viruses than the ones that have lower scores. | |
196 * fdr: The estimated false discovery rate (FDR) of the classification (that is, the expected proportion of false positives among the sequences up to this row). To estimate FDRs geNomad requires score calibration, which is turned off by default. Therefore, this column will only contain NA values in this example. | |
197 * n_hallmarks: Number of genes that matched a hallmark geNomad marker. Hallmarks are genes that were previously associated with viral function and their presence is a strong indicative that the sequence is indeed a virus. | |
198 * marker_enrichment: A score that represents the total enrichment of viral markers in the sequence. The value goes as the number of virus markers in the sequence increases, so sequences with multiple markers will have higher score. Chromosome and plasmid markers will reduce the score. | |
199 * taxonomy: Taxonomic assignment of the virus genome. Lineages follow the taxonomy contained in ICTV's VMR number 19. Viruses can be taxonomically assigned up to the family level, but not to specific genera or species within that family. The taxonomy is presented with a fixed number of fields (corresponding to taxonomic ranks) separated by semicolons, with empty fields left blank. | |
200 | |
201 The virus specific summary misses the coordinates and taxonomy columns and there are wto additional columns: | |
202 | |
203 * conjugation_genes genes that might be involved in conjugation. It's important to note that the presence of such genes is not sufficient to tell whether a given plasmid is conjugative or mobilizible. If you are interested in identifying conjugative plasmids, we recommend you to analyze the plasmids you identified using geNomad with CONJscan. | |
204 * amr_genes genes annotated with antimicrobial resistance function. You can check the specific functions associated with each accession in AMRFinderPlus website. | |
205 | |
206 | |
207 plasmid/virus genes: During its execution, geNomad annotates the genes encoded by the input sequences using a database of chromosome, plasmid, and virus-specific markers. The <prefix>_virus_genes.tsv file summarizes the annotation of the genes encoded by the identified viruses. | |
208 | |
209 * gene: Identifier of the gene (<sequence_name>_<gene_number>). Usually, gene numbers start with 1 (first gene in the sequence). However, genes encoded by prophages integrated in the middle of the host chromosome may start with a different number, depending on it's position within the chromosome. | |
210 * start: 1-indexed start coordinate of the gene. | |
211 * end: 1-indexed end coordinate of the gene. | |
212 * length: Length of the gene locus (in base pairs). | |
213 * strand: Strand that encodes the gene. Can be 1 (direct strand) or -1 (reverse strand). | |
214 * gc_content: GC content of the gene locus. | |
215 * genetic_code: Predicted genetic code (see details in the explanation of the summary file). | |
216 * rbs_motif: Detected motif of the ribosome-binding site. | |
217 * marker: Best matching geNomad marker. If this gene doesn't match any markers, the value will be NA. | |
218 * evalue: E-value of the alignment between the protein encoded by the gene and the best matching geNomad marker. | |
219 * bitscore: Bitscore of the alignment between the protein encoded by the gene and the best matching geNomad marker. | |
220 * uscg: Whether the marker assigned to this gene corresponds to a universal single-copy gene (UCSG, as defined in BUSCO v5). These genes are expected to be found in chromosomes and are rare in plasmids and viruses. Can be 1 (gene is USCG) or 0 (gene is not USCG). | |
221 * plasmid_hallmark: Whether the marker assigned to this gene represents a plasmid hallmark. | |
222 * virus_hallmark: Whether the marker assigned to this gene represents a virus hallmark. | |
223 * taxid: Taxonomic identifier of the marker assigned to this gene (you can ignore this as it is meant to be used internally by geNomad). | |
224 * taxname: Name of the taxon associated with the assigned geNomad marker. In this example, we can see that the annotated proteins are all characteristic of Caudoviricetes (which is why the provirus was assigned to this class). | |
225 * annotation_conjscan: If the marker that matched the gene is a conjugation-related gene (as defined in CONJscan) this field will show which CONJscan acession was assigned to the marker. | |
226 * annotation_amr: If the marker that matched the gene was annotated with an antimicrobial resistance (AMR) function (as defined in NCBIfam-AMRFinder), this field will show which NCBIfam acession was assigned to the marker. | |
227 * annotation_accessions: Some of the geNomad markers are functionally annotated. This column tells you which entries in Pfam, TIGRFAM, COG, and KEGG were assigned to the marker. | |
228 * annotation_description: A text describing the function assigned to the marker. | |
229 | |
230 | |
231 plasmid/virus genes/proteins: gives the nucleotide and aminoaced sequences of the annotated genes | |
232 | |
233 ]]></help> | |
234 <citations> | |
235 <citation type="doi">10.1038/s41587-023-01953-y</citation> | |
236 </citations> | |
237 </tool> |