Mercurial > repos > iuc > presto_assemblepairs
comparison presto_assemblepairs.xml @ 0:44c980933450 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/presto commit 5d4da3eb59439ce5b1eea211b4ad1d47807d7acb
author | iuc |
---|---|
date | Wed, 30 May 2018 15:36:59 -0400 |
parents | |
children | a17c446c53b5 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:44c980933450 |
---|---|
1 <tool id="presto_assemblepairs" name="pRESTO AssemblePairs" version="@PRESTO_VERSION@"> | |
2 <description>Assembles paired-end reads into a single sequence.</description> | |
3 | |
4 <macros> | |
5 <import>presto_macros.xml</import> | |
6 <xml name="align-params"> | |
7 <param argument="--alpha" type="float" value="1e-05" label="Alpha" help="Significance threshold for de-novo assembly."/> | |
8 <param argument="--maxerror" type="float" value="0.3" label="Max Error" help="Maximum error rate for de novo assembly."/> | |
9 <param argument="--minlen" type="integer" value="8" label="Minimum Length" help="Minimum sequence length to scan for overlap."/> | |
10 <param argument="--maxlen" type="integer" value="1000" label="Maximum Length" help="Maximum sequence length to scan for overlap."/> | |
11 <param argument="--scanrev" type="boolean" value="false" truevalue="--scanrev" falsevalue="" label="Scan past the end of the tail sequence in de novo assembly to allow the head sequence to overhang the end of the tail sequence."/> | |
12 </xml> | |
13 | |
14 <xml name="reference-params"> | |
15 <param argument="-r" type="data" format="fasta" label="Reference sequence FASTA file."/> | |
16 <param argument="--minident" type="float" value="0.5" label="Minimum Identity" help="Minimum identical fraction between assembled sequence and reference."/> | |
17 <param argument="--evalue" type="float" value="1e-05" label="E-Value" help="Minimum E-value for reference alignment for both the read sequences."/> | |
18 <param argument="--maxhits" type="integer" value="100" label="Max Hits" help="Maximum number of hits in the reference sequence to examine per assembled sequence."/> | |
19 <param argument="--fill" type="boolean" value="false" truevalue="--fill" falsevalue="" label="Fill With Reference" help="For read pairs with a gap between them, fill with reference sequence instead of Ns."/> | |
20 <param argument="--aligner" type="select" value="blastn" label="Aligner" help="Aligner to use to align reads to reference."> | |
21 <option value="blastn">Blast</option> | |
22 <option value="usearch">USearch</option> | |
23 </param> | |
24 </xml> | |
25 </macros> | |
26 | |
27 <expand macro="requirements"/> | |
28 | |
29 <version_command>AssemblePairs.py --version</version_command> | |
30 <command detect_errors="exit_code"><![CDATA[ | |
31 ln -s '$r1_in' r1.fastq && | |
32 ln -s '$r2_in' r2.fastq && | |
33 #if $varExists('cc.r') | |
34 ln -s '$cc.r' reference.fasta && | |
35 #end if | |
36 AssemblePairs.py $cc.command | |
37 --nproc "\${GALAXY_SLOTS:-1}" | |
38 -1 r1.fastq | |
39 -2 r2.fastq | |
40 --coord $coord | |
41 #if $rc | |
42 --rc '$rc' | |
43 #end if | |
44 #if $r1_annotations | |
45 --1f $r1_annotations | |
46 #end if | |
47 #if $r2_annotations | |
48 --2f $r2_annotations | |
49 #end if | |
50 | |
51 #if $cc.command == "join" | |
52 --gap '$cc.gap' | |
53 #end if | |
54 | |
55 #if $cc.command == "align" or $cc.command == "sequential" | |
56 --alpha '$cc.alpha' | |
57 --maxerror '$cc.maxerror' | |
58 --minlen '$cc.minlen' | |
59 --maxlen '$cc.maxlen' | |
60 $cc.scanrev | |
61 #end if | |
62 | |
63 #if $cc.command == "reference" or $cc.command == "sequential" | |
64 -r reference.fasta | |
65 --minident '$cc.minident' | |
66 --evalue '$cc.evalue' | |
67 --maxhits '$cc.maxhits' | |
68 --aligner '$cc.aligner' | |
69 $cc.fill | |
70 #end if | |
71 | |
72 --outdir=. | |
73 --outname=tmp | |
74 #if $capture_log | |
75 --log '$log_out' | |
76 #end if | |
77 ]]></command> | |
78 <inputs> | |
79 <param argument="-1" name="r1_in" type="data" format="fastq" label="Read 1 FASTQ file"/> | |
80 <param argument="-2" name="r2_in" type="data" format="fastq" label="Read 2 FASTQ file"/> | |
81 <param argument="--rc" type="select" label="Reverse Complement" value="" help="Reverse complement neither, R1, R2 or both reads before assembly."> | |
82 <option value="">Neither</option> | |
83 <option value="head">Read 1 Only</option> | |
84 <option value="tail">Read 2 Only</option> | |
85 <option value="both">R1 and R2</option> | |
86 </param> | |
87 <param argument="--1f" name="r1_annotations" type="text" optional="true" label="R1 Fields To Copy" help="Annotation fields to copy from R1 into the output."> | |
88 <expand macro="text-regex-validator"/> | |
89 </param> | |
90 <param argument="--2f" name="r2_annotations" type="text" optional="true" label="R2 Fields To Copy" help="Annotation fields to copy from R2 into the output."> | |
91 <expand macro="text-regex-validator"/> | |
92 </param> | |
93 | |
94 <conditional name="cc"> | |
95 <param name="command" type="select" label="Command" value="sequential"> | |
96 <option value="align">Assemble pairs by aligning ends (align)</option> | |
97 <option value="join">Assemble pairs by concatenating ends (join)</option> | |
98 <option value="reference">Assemble pairs by aligning reads against a reference (reference)</option> | |
99 <option value="sequential">Attempt assembly via alignment, then reference guided assembly (sequential)</option> | |
100 </param> | |
101 <when value="align"> | |
102 <expand macro="align-params"/> | |
103 </when> | |
104 <when value="join"> | |
105 <param argument="--gap" type="integer" value="0" label="Gap Size" help="Number of N characters to place between joined Ns."/> | |
106 </when> | |
107 <when value="reference"> | |
108 <expand macro="reference-params"/> | |
109 </when> | |
110 <when value="sequential"> | |
111 <expand macro="align-params"/> | |
112 <expand macro="reference-params"/> | |
113 </when> | |
114 </conditional> | |
115 | |
116 <expand macro="presto-coord-param"/> | |
117 <expand macro="presto-log-param"/> | |
118 </inputs> | |
119 | |
120 <outputs> | |
121 <data name="fastq_out" format="fastq" from_work_dir="tmp_assemble-pass.fastq"/> | |
122 <expand macro="presto-log-output"/> | |
123 </outputs> | |
124 | |
125 <tests> | |
126 <test> | |
127 <param name="command" value="join"/> | |
128 <param name="r1_in" value="presto_assemblepairs_test_r1_in.fastq"/> | |
129 <param name="r2_in" value="presto_assemblepairs_test_r2_in.fastq"/> | |
130 <param name="coord" value="presto"/> | |
131 <param name="rc" value="tail"/> | |
132 <param name="r1_annotations" value="CONSCOUNT"/> | |
133 <param name="r2_annotations" value="PRCONS CONSCOUNT"/> | |
134 <param name="gap" value="10"/> | |
135 <output name="fastq_out" file="presto_assemblepairs_test_join_out.fastq" sort="true"/> | |
136 </test> | |
137 | |
138 <test> | |
139 <param name="command" value="align"/> | |
140 <param name="r1_in" value="presto_assemblepairs_test_r1_in.fastq"/> | |
141 <param name="r2_in" value="presto_assemblepairs_test_r2_in.fastq"/> | |
142 <param name="coord" value="presto"/> | |
143 <param name="rc" value="tail"/> | |
144 <param name="r1_annotations" value="CONSCOUNT"/> | |
145 <param name="r2_annotations" value="PRCONS CONSCOUNT"/> | |
146 <param name="scanrev" value="true"/> | |
147 <output name="fastq_out" file="presto_assemblepairs_test_align_out.fastq" sort="true"/> | |
148 </test> | |
149 | |
150 <test> | |
151 <param name="command" value="reference"/> | |
152 <param name="r1_in" value="presto_assemblepairs_test_r1_in.fastq"/> | |
153 <param name="r2_in" value="presto_assemblepairs_test_r2_in.fastq"/> | |
154 <param name="coord" value="presto"/> | |
155 <param name="rc" value="tail"/> | |
156 <param name="r1_annotations" value="CONSCOUNT"/> | |
157 <param name="r2_annotations" value="PRCONS CONSCOUNT"/> | |
158 <param name="r" value="reference_repertoire.fasta"/> | |
159 <param name="aligner" value="blastn"/> | |
160 <output name="fastq_out" file="presto_assemblepairs_test_reference_out.fastq" sort="true"/> | |
161 </test> | |
162 | |
163 <test> | |
164 <param name="command" value="sequential"/> | |
165 <param name="r1_in" value="presto_assemblepairs_test_r1_in.fastq"/> | |
166 <param name="r2_in" value="presto_assemblepairs_test_r2_in.fastq"/> | |
167 <param name="coord" value="presto"/> | |
168 <param name="rc" value="tail"/> | |
169 <param name="r1_annotations" value="CONSCOUNT"/> | |
170 <param name="r2_annotations" value="PRCONS CONSCOUNT"/> | |
171 <param name="scanrev" value="true"/> | |
172 <param name="r" value="reference_repertoire.fasta"/> | |
173 <param name="aligner" value="blastn"/> | |
174 <output name="fastq_out" file="presto_assemblepairs_test_sequential_out.fastq" sort="true"/> | |
175 </test> | |
176 </tests> | |
177 | |
178 <help><![CDATA[ | |
179 Assembles paired-end reads into a single sequence. | |
180 | |
181 See the `pRESTO online help <@PRESTO_URL_BASE@/AssemblePairs.html>`_ for more information. | |
182 | |
183 @HELP_NOTE@ | |
184 ]]></help> | |
185 <expand macro="citations" /> | |
186 </tool> |