Mercurial > repos > thanhlv > flye
comparison flye.xml @ 0:2bdeb8d42117 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/flye commit 0b1a602e21fbf8cfeba1294b6b985f1fba75afe9-dirty
| author | thanhlv |
|---|---|
| date | Thu, 04 Apr 2019 11:08:04 -0400 |
| parents | |
| children | 5e8958350b97 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:2bdeb8d42117 |
|---|---|
| 1 <tool id="flye" name="Flye assembler" version="2.4.1"> | |
| 2 <description>of long and error-prone reads</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements" /> | |
| 7 <version_command>flye --version</version_command> | |
| 8 <command detect_errors="exit_code"> | |
| 9 <![CDATA[ | |
| 10 | |
| 11 #for $counter, $input in enumerate($inputs): | |
| 12 | |
| 13 #if $input.is_of_type('fastqsanger', 'fastq'): | |
| 14 #set $ext = 'fastq' | |
| 15 #elif $input.is_of_type('fastqsanger.gz'): | |
| 16 #set $ext = 'fastq.gz' | |
| 17 #elif $input.is_of_type('fasta.gz'): | |
| 18 #set $ext = 'fasta.gz' | |
| 19 #elif $input.is_of_type('fasta'): | |
| 20 #set $ext = 'fasta' | |
| 21 #end if | |
| 22 ln -s '$input' ./input_${counter}.${ext} && | |
| 23 #end for | |
| 24 | |
| 25 flye | |
| 26 $mode | |
| 27 #for $counter, $input in enumerate($inputs): | |
| 28 ./input_${counter}.$ext | |
| 29 #end for | |
| 30 | |
| 31 -o out_dir | |
| 32 -g '$g' | |
| 33 -t \${GALAXY_SLOTS:-4} | |
| 34 -i $i | |
| 35 #if $m: | |
| 36 -m '$m' | |
| 37 #end if | |
| 38 #if $asm-coverage: | |
| 39 --asm-coverage '$asm-coverage' | |
| 40 #end if | |
| 41 #if $plasmid: | |
| 42 '$plasmid' | |
| 43 #end if | |
| 44 #if $meta: | |
| 45 '$meta' | |
| 46 #end if | |
| 47 #if $no-trestle: | |
| 48 '$no-trestle' | |
| 49 #end if | |
| 50 2>&1 | |
| 51 ]]></command> | |
| 52 <inputs> | |
| 53 <param name="inputs" type="data" format="fasta,fasta.gz,fastq,fastq.gz,fastqsanger.gz,fastqsanger" multiple="true" label="Input reads" /> | |
| 54 <param name="mode" type="select" label="Mode"> | |
| 55 <option value="--nano-raw">Nanopore raw</option> | |
| 56 <option value="--nano-corr">Nanopore corrected</option> | |
| 57 <option value="--pacbio-raw">PacBio raw</option> | |
| 58 <option value="--pacbio-corr">PacBio corrected</option> | |
| 59 <option value="--subassemblies">high-quality contig-like input</option> | |
| 60 </param> | |
| 61 <param argument="-g" type="text" label="estimated genome size (for example, 5m or 2.6g)"> | |
| 62 <validator type="regex" message="Genome size must be a float or integer, optionally followed by the a unit prefix (kmg)">^([0-9]*[.])?[0-9]+[kmg]?$</validator> | |
| 63 </param> | |
| 64 <param argument="-i" type="integer" value="1" label="number of polishing iterations" /> | |
| 65 <param argument="-m" type="integer" optional="true" label="minimum overlap between reads (default: auto)" /> | |
| 66 <param argument="--asm-coverage" type="integer" optional="true" label="reduced coverage for initial contig assembly (default: not set)" /> | |
| 67 <param argument="--plasmid" type="boolean" truevalue="--plasmid" falsevalue="" checked="False" label="rescue short unassmebled plasmids" /> | |
| 68 <param argument="--meta" type="boolean" truevalue="--meta" falsevalue="" checked="False" label="metagenome / uneven coverage mode" /> | |
| 69 <param argument="--no-trestle" type="boolean" truevalue="--no-trestle" falsevalue="" checked="False" label="skip Trestle stage" /> | |
| 70 </inputs> | |
| 71 <outputs> | |
| 72 <data name="scaffolds" format="fasta" from_work_dir="out_dir/scaffolds.fasta" label="${tool.name} on ${on_string} (scaffolds)"/> | |
| 73 <data name="assembly_info" format="tabular" from_work_dir="out_dir/assembly_info.txt" label="${tool.name} on ${on_string} (assembly_info)"/> | |
| 74 <data name="assembly_graph" format="graph_dot" from_work_dir="out_dir/assembly_graph.gv" label="${tool.name} on ${on_string} (assembly_graph)"/> | |
| 75 <data name="assembly_gfa" format="txt" from_work_dir="out_dir/assembly_graph.gfa" label="${tool.name} on ${on_string} (Graphical Fragment Assembly)"/> | |
| 76 <data name="flye_log" format="txt" from_work_dir="out_dir/flye.log" label="${tool.name} on ${on_string} (log)"/> | |
| 77 </outputs> | |
| 78 <tests> | |
| 79 <test> | |
| 80 <param name="inputs" ftype="fasta" value="nanopore.fasta"/> | |
| 81 <param name="mode" value="--pacbio-raw"/> | |
| 82 <param name="g" value="10000"/> | |
| 83 <output name="scaffolds" file="result1_scaffolds.fasta" ftype="fasta" compare="sim_size"/> | |
| 84 <output name="assembly_info" file="result1_assembly_info.txt" ftype="tabular" compare="sim_size"/> | |
| 85 <output name="assembly_graph" file="result1_assembly_graph.dot" ftype="graph_dot" compare="sim_size"/> | |
| 86 <output name="assembly_gfa" file="result1_assembly_graph.gfa" ftype="txt" compare="sim_size"/> | |
| 87 </test> | |
| 88 <test> | |
| 89 <param name="inputs" ftype="fasta" value="nanopore.fasta"/> | |
| 90 <param name="mode" value="--nano-raw"/> | |
| 91 <param name="g" value="10000"/> | |
| 92 <output name="scaffolds" file="result2_scaffolds.fasta" ftype="fasta" compare="sim_size"/> | |
| 93 <output name="assembly_info" file="result2_assembly_info.txt" ftype="tabular" compare="sim_size"/> | |
| 94 <output name="assembly_graph" file="result2_assembly_graph.dot" ftype="graph_dot" compare="sim_size"/> | |
| 95 <output name="assembly_gfa" file="result2_assembly_graph.gfa" ftype="txt" compare="sim_size"/> | |
| 96 </test> | |
| 97 <test> | |
| 98 <param name="inputs" ftype="fasta" value="nanopore.fasta"/> | |
| 99 <param name="mode" value="--pacbio-raw"/> | |
| 100 <param name="g" value="10000"/> | |
| 101 <param name="i" value="2"/> | |
| 102 <output name="scaffolds" file="result3_scaffolds.fasta" ftype="fasta" compare="sim_size"/> | |
| 103 <output name="assembly_gfa" file="result2_assembly_graph.gfa" ftype="txt" compare="sim_size"/> | |
| 104 </test> | |
| 105 </tests> | |
| 106 <help><![CDATA[ | |
| 107 | |
| 108 Input reads could be in FASTA or FASTQ format, uncompressed | |
| 109 or compressed with gz. Currenlty, raw and corrected reads | |
| 110 from PacBio and ONT are supported. The expected error rates are | |
| 111 <30% for raw and <2% for corrected reads. Additionally, | |
| 112 --subassemblies option performs a consensus assembly of multiple | |
| 113 sets of high-quality contigs. You may specify multiple | |
| 114 files with reads (separated by spaces). Mixing different read | |
| 115 types is not yet supported. | |
| 116 | |
| 117 You must provide an estimate of the genome size as input, | |
| 118 which is used for solid k-mers selection. The estimate could | |
| 119 be rough (e.g. withing 0.5x-2x range) and does not affect | |
| 120 the other assembly stages. Standard size modificators are | |
| 121 supported (e.g. 5m or 2.6g). | |
| 122 | |
| 123 ]]></help> | |
| 124 <expand macro="citations" /> | |
| 125 </tool> |
