annotate sam2rma.xml @ 1:ef0443c0eaba draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 6b0c3dbd5bdf9c272cf32f39e0004d504f953ff0
author iuc
date Sat, 27 Aug 2022 17:07:04 +0000
parents 4f0a8e401e2e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
1 <tool id="megan_sam2rma" name="MEGAN: Generate a MEGAN rma6 file" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
2 <description>from a DIAMOND or MALT sam file</description>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
3 <macros>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
4 <import>macros.xml</import>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
5 </macros>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
6 <expand macro="bio_tools"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
9 #import re
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
10
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
11 #if str($input_type_cond.input_type) in ['single', 'pair']:
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
12 #set read1 = $input_type_cond.read1
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
13 #set sam1 = $input_type_cond.sam1
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
14 #else:
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
15 ## Processing paired reads are tricky if we're
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
16 ## downstream from MALT. MALT doesn’t have a
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
17 ## paired-read mode, so it won’t attempt to analyze
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
18 ## reads in pairs. To do paired read processing,
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
19 ## set MALT to generate SAM files and then import the
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
20 ## SAM files into MEGAN, specifying paired read mode
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
21 ## there. If you have multiple SAM files for the same
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
22 ## sample, then import them all at the same time to
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
23 ## create one unified rma6 file.
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
24
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
25 #set read1 = $input_type_cond.reads_collection['forward']
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
26 #set sam1 = $input_type_cond.sam1
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
27 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
28
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
29 #if $read1.is_of_type('fasta', 'fasta.gz'):
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
30 #set read_ext = '.fasta'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
31 #else:
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
32 #set read_ext = '.fastq'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
33 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
34 #if $read1.ext.endswith('.gz'):
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
35 #set read_ext = $read_ext + '.gz'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
36 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
37
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
38 #set read1_identifier = 'read1' + $read_ext
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
39 ln -s '${read1}' '${read1_identifier}' &&
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
40
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
41 #set sam1_identifier = 'sam1.' + $sam1.ext
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
42 ln -s '${sam1}' '${sam1_identifier}' &&
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
43
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
44 #if str($input_type_cond.input_type) in ['pair', 'paired']:
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
45 #if str($input_type_cond.input_type) == 'pair':
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
46 #set read2 = $input_type_cond.read2
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
47 #set sam2 = $input_type_cond.sam2
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
48 #else if str($input_type_cond.input_type) == 'paired':
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
49 #set read2 = $input_type_cond.reads_collection['reverse']
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
50 #set sam2 = $input_type_cond.sam2
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
51 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
52 #set read2_identifier = 'read2' + $read_ext
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
53 ln -s '${read2}' '${read2_identifier}' &&
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
54 #set sam2_identifier = 'sam2.' + $sam2.ext
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
55 ln -s '${sam2}' '${sam2_identifier}' &&
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
56 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
57
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
58 ## The output must be a directory when we have multiple
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
59 ## inputs, and the outputs inherit the base name of the
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
60 ## inputs.
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
61
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
62 sam2rma
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
63 #if str($input_type_cond.input_type) == 'single':
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
64 --in '${sam1_identifier}'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
65 --reads '${read1_identifier}'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
66 --out '${output_single}'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
67 #else if str($input_type_cond.input_type) == 'pair':
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
68 --in '${sam1_identifier}' '${sam2_identifier}'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
69 --reads '${read1_identifier}' '${read2_identifier}'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
70 --paired
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
71 --pairedSuffixLength $input_type_cond.pairedSuffixLength
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
72 --out '.'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
73 #else if str($input_type_cond.input_type) == 'paired':
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
74 --in '${sam1_identifier}' '${sam2_identifier}'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
75 --reads '${read1_identifier}' '${read2_identifier}'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
76 --paired
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
77 --pairedSuffixLength $input_type_cond.pairedSuffixLength
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
78 ## Strangely, megan requires an output
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
79 ## directory when processing paired reads
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
80 ## even though it produces a single file.
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
81 ## We'll accommodate thie by prepending ./
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
82 ## to a temporary output file and then move
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
83 ## it later.
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
84 --out '.'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
85 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
86 #if $advanced_options.metaDataFile:
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
87 --metaDataFile '$advanced_options.metaDataFile'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
88 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
89 #if str($advanced_options.paired_reads_cond.paired_reads) == 'yes':
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
90 --paired
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
91 $advanced_options.paired_reads_cond.pairedSuffixLength
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
92 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
93 $advanced_options.longReads
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
94 --maxMatchesPerRead $advanced_options.maxMatchesPerRead
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
95 $advanced_options.classify
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
96 --minScore $advanced_options.minScore
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
97 --maxExpected $advanced_options.maxExpected
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
98 --topPercent $advanced_options.topPercent
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
99 --minSupportPercent $advanced_options.minSupportPercent
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
100 --minSupport $advanced_options.minSupport
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
101 --minPercentReadCover $advanced_options.minPercentReadCover
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
102 --minPercentReferenceCover $advanced_options.minPercentReferenceCover
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
103 --minReadLength $advanced_options.minReadLength
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
104 --lcaAlgorithm '$advanced_options.lcaAlgorithm'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
105 --lcaCoveragePercent $advanced_options.lcaCoveragePercent
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
106 --readAssignmentMode '$advanced_options.readAssignmentMode'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
107 #if $advanced_options.conFile:
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
108 --conFile '$advanced_options.conFile'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
109 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
110 #if $advanced_options.mapDB:
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
111 --mapDB '$advanced_options.mapDB'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
112 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
113 #if str($advanced_options.only) != '':
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
114 --only '$advanced_options.only'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
115 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
116 --useCompression 'false'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
117 --threads \${GALAXY_SLOTS:-8}
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
118 --tempStoreDir '.'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
119 #if str($input_type_cond.input_type) in ['pair', 'paired']:
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
120 && mv 'sam1.rma6' '$output_forward'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
121 && mv 'sam2.rma6' '$output_reverse'
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
122 #end if
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
123 ]]></command>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
124 <inputs>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
125 <conditional name="input_type_cond">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
126 <param name="input_type" type="select" label="Choose the category of the reads files to be analyzed">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
127 <option value="single" selected="true">Single dataset</option>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
128 <option value="pair">Dataset pair</option>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
129 <option value="paired">List of dataset pairs</option>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
130 </param>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
131 <when value="single">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
132 <param name="read1" type="data" format="fasta,fasta.gz,fastqsanger.gz,fastqsanger" label="Forward read file" help="This read file should be the one used by DIAMOND or MALT to generate the SAM file below"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
133 <param name="sam1" type="data" format="sam" label="Output file of DIAMOND or MALT on input forward read file"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
134 </when>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
135 <when value="pair">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
136 <param name="read1" type="data" format="fasta,fasta.gz,fastqsanger.gz,fastqsanger" label="Forward read file" help="This read file should be the one used by DIAMOND or MALT to generate the SAM file below"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
137 <param name="sam1" type="data" format="sam" label="Output file of DIAMOND or MALT on input forward read file"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
138 <param name="read2" type="data" format="fasta,fasta.gz,fastqsanger.gz,fastqsanger" label="Reverse read file" help="This read file should be the one used by DIAMOND or MALT to generate the SAM file below"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
139 <param name="sam2" type="data" format="sam" label="Output file of DIAMOND or MALT on input reverse read file"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
140 <param argument="--pairedSuffixLength" type="integer" value="0" label="Length of name suffix used to distinguish read names" help="Use 0 if read and mate have the same name"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
141 </when>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
142 <when value="paired">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
143 <param name="reads_collection" type="data_collection" format="fasta,fasta.gz,fastqsanger,fastqsanger.gz" collection_type="paired" label="Collection of paired read files"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
144 <param name="sam1" type="data" format="sam" label="Output file of DIAMOND or MALT on input forward read file"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
145 <param name="sam2" type="data" format="sam" label="Output file of DIAMOND or MALT on input reverse read file"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
146 <param argument="--pairedSuffixLength" type="integer" value="0" label="Length of name suffix used to distinguish read names" help="Use 0 if read and mate have the same name"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
147 </when>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
148 </conditional>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
149 <section name="advanced_options" title="Advanced options" expanded="false">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
150 <param argument="--metaDataFile" type="data" format="tabular" multiple="true" optional="true" label="Files containing metadata to be included in the output files"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
151 <conditional name="paired_reads_cond">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
152 <param name="paired_reads" type="select" label="DAA file was created using paired reads?">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
153 <option value="no" selected="true">no</option>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
154 <option value="yes">Yes</option>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
155 </param>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
156 <when value="no"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
157 <when value="yes">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
158 <param argument="--pairedSuffixLength" type="integer" value="0" label="Length of name suffix used to distinguish read names" help="Use 0 if read and mate have the same name"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
159 </when>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
160 </conditional>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
161 <expand macro="long_reads_param"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
162 <expand macro="max_matches_per_read_param"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
163 <expand macro="classify_param"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
164 <expand macro="min_score_param"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
165 <expand macro="max_expected_param"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
166 <expand macro="top_percent_param"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
167 <expand macro="min_max_params"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
168 <expand macro="lca_params"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
169 <expand macro="read_assignment_mode_param"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
170 <expand macro="con_file_param"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
171 <expand macro="mapdb_param"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
172 <expand macro="only_named_classifications_param"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
173 </section>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
174 </inputs>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
175 <outputs>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
176 <data name="output_single" format="rma6">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
177 <filter>input_type_cond['input_type'] == 'single'</filter>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
178 </data>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
179 <data name="output_forward" format="rma6" label="${tool.name} on ${on_string} (forward">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
180 <filter>input_type_cond['input_type'] != 'single'</filter>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
181 </data>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
182 <data name="output_reverse" format="rma6" label="${tool.name} on ${on_string} (reverse)">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
183 <filter>input_type_cond['input_type'] != 'single'</filter>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
184 </data>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
185 </outputs>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
186 <tests>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
187 <!-- Single dataset input -->
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
188 <test expect_num_outputs="1">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
189 <param name="sam1" ftype="sam" value="input1.sam"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
190 <param name="read1" ftype="fastqsanger.gz" value="13-1941-6_S4_L001_R1_600000.fastq.gz"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
191 <output name="output_single" ftype="rma6">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
192 <assert_contents>
1
ef0443c0eaba planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 6b0c3dbd5bdf9c272cf32f39e0004d504f953ff0
iuc
parents: 0
diff changeset
193 <has_size value="885" delta="15"/>
0
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
194 </assert_contents>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
195 </output>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
196 </test>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
197 <!-- Dataset pair input -->
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
198 <test expect_num_outputs="2">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
199 <param name="input_type" value="pair"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
200 <param name="read1" value="13-1941-6_S4_L001_R1_600000.fastq.gz" ftype="fastqsanger.gz"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
201 <param name="sam1" value="input1.sam" ftype="sam"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
202 <param name="read2" value="13-1941-6_S4_L001_R2_600000.fastq.gz" ftype="fastqsanger.gz"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
203 <param name="sam2" value="input2.sam" ftype="sam"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
204 <output name="output_forward" ftype="rma6">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
205 <assert_contents>
1
ef0443c0eaba planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 6b0c3dbd5bdf9c272cf32f39e0004d504f953ff0
iuc
parents: 0
diff changeset
206 <has_size value="805" delta="1"/>
0
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
207 </assert_contents>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
208 </output>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
209 <output name="output_reverse" ftype="rma6">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
210 <assert_contents>
1
ef0443c0eaba planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 6b0c3dbd5bdf9c272cf32f39e0004d504f953ff0
iuc
parents: 0
diff changeset
211 <has_size value="805" delta="1"/>
0
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
212 </assert_contents>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
213 </output>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
214 </test>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
215 <!-- List of dataset pairs input -->
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
216 <test expect_num_outputs="2">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
217 <param name="input_type" value="paired"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
218 <param name="reads_collection">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
219 <collection type="paired">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
220 <element name="forward" value="13-1941-6_S4_L001_R1_600000.fastq.gz"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
221 <element name="reverse" value="13-1941-6_S4_L001_R2_600000.fastq.gz"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
222 </collection>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
223 </param>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
224 <param name="sam1" value="input1.sam" ftype="sam"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
225 <param name="sam2" value="input2.sam" ftype="sam"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
226 <output name="output_forward" ftype="rma6">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
227 <assert_contents>
1
ef0443c0eaba planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 6b0c3dbd5bdf9c272cf32f39e0004d504f953ff0
iuc
parents: 0
diff changeset
228 <has_size value="805" delta="1"/>
0
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
229 </assert_contents>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
230 </output>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
231 <output name="output_reverse" ftype="rma6">
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
232 <assert_contents>
1
ef0443c0eaba planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 6b0c3dbd5bdf9c272cf32f39e0004d504f953ff0
iuc
parents: 0
diff changeset
233 <has_size value="805" delta="1"/>
0
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
234 </assert_contents>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
235 </output>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
236 </test>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
237 </tests>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
238 <help>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
239 **What it does**
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
240
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
241 Generates a MEGAN RMA (RealMedia Audio) file from a SAM file that was generated by DIAMOND or MALT. MEGAN uses an
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
242 update of the original RMA file format known as RMA6.
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
243
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
244 Inputs consist of reads in fasta or fasqsanger format (gzip compression is supported) and associated SAM files.
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
245 Each read file should have been used previously as the input to DIAMOND or MALT to produce the associated SAM file
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
246 for this tool.
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
247 </help>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
248 <expand macro="citations"/>
4f0a8e401e2e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
iuc
parents:
diff changeset
249 </tool>