comparison mitobim.xml @ 0:ea46115c7f1e draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitobim commit 28d5ff6fe8faf9d3716a79c88b093dabd4aa82a8"
author iuc
date Sun, 03 Jan 2021 18:21:12 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ea46115c7f1e
1 <tool id="mitobim" name="MITObim" version="@TOOL_VERSION@" profile="20.01">
2 <description>mitochondrial baiting and iterative mapping</description>
3 <macros>
4 <token name="@TOOL_VERSION@">1.9.1</token>
5 </macros>
6 <requirements>
7 <requirement type="package" version="@TOOL_VERSION@">mitobim</requirement>
8 </requirements>
9 <version_command>MITObim.pl --version</version_command>
10 <command detect_errors="exit_code"><![CDATA[
11 export LC_ALL=C &&
12 cp '$readpool' readpool.fastq &&
13 cp '$reference' reference.$reference.ext &&
14
15 MITObim.pl
16 #if str($start) != ""
17 --start $start
18 #end if
19 #if str($end) != ""
20 --end $end
21 #end if
22 --sample '$sample'
23 --ref '$ref'
24 --readpool readpool.fastq
25 #if $reference.ext == "fasta"
26 --quick
27 #else
28 --maf
29 #end if
30 reference.$reference.ext
31
32 --kbait $kbait
33 --platform $platform
34 $denovo
35 $pair
36 $split
37 $trimreads
38 $trimoverhang
39 #if str($mismatch) != ""
40 --mismatch $mismatch
41 #end if
42 #if str($min_cov) != ""
43 --min_cov $min_cov
44 #end if
45 #if str($min_len) != ""
46 --min_len $min_len
47 #end if
48 ## does not work with 3rd test --redirect_tmp \${TEMP:-\$_GALAXY_JOB_TMP_DIR}
49 --NFS_warn_only | tee log.txt &&
50
51 if grep -q "^Final assembly result will be written to file:" log.txt; then
52 cp \$(grep "^Final assembly result will be written to file:" log.txt | cut -d":" -f 2) '$assembly';
53 else
54 exit 1;
55 fi
56 ]]></command>
57 <inputs>
58 <param name="reference" type="data" format="fasta,maf" label="Reference" help="If a FASTA sequence is given it will be used as bait (using the --quick option). If a MAF alignment is given the reference is extracted from the alignment (using the --maf option)"/>
59 <param argument="--ref" type="text" value="" label="Reference ID" help="If resuming, use the same as in previous iteration/initial MIRA assembly">
60 <validator type="regex" message="&quot;, &apos;, and / are not allowed in IDs">[^'\"/]*$</validator>
61 </param>
62 <param argument="--readpool" type="data" format="fastq,fastq.gz" label="Read pool" help="Read pairs need to be interleaved for full functionality of the '-pair' option below"/>
63 <param argument="--sample" type="text" value="" label="Sample ID" help="If resuming, the sampleID needs to be identical to that of the previous iteration / MIRA assembly">
64 <validator type="regex" message="&quot;, &apos;, and / are not allowed in IDs">[^'\"/]*$</validator>
65 </param>
66 <param argument="--start" type="integer" value="" optional="true" label="Iteration to start with" help="Defaults to 0 when using '--quick' reference"/>
67 <param argument="--end" type="integer" value="" optional="true" label="Iteration to end with" help="Default=startiteration, i.e. if not specified otherwise stop after 1 iteration"/>
68 <param argument="--kbait" type="integer" value="31" min="1" max="256" label="kmer for baiting stringency" help=""/>
69 <param argument="--platform" type="select" label="Sequencing platform" help="">
70 <option value="solexa">Solexa</option>
71 <option value="iontor">ION Torrent</option>
72 <option value="454">445</option>
73 <option value="pacbio">PacBIO</option>
74 </param>
75 <param argument="--denovo" type="boolean" checked="false" truevalue="--denovo" falsevalue="" label="Run MIRA in denovo mode" help=""/>
76 <param argument="--pair" type="boolean" checked="false" truevalue="--pair" falsevalue="" label="Extend readpool to contain full read pairs, even if only one member was baited" help="Relies on /1 and /2 header convention for read pairs"/>
77 <param argument="--split" type="boolean" checked="false" truevalue="--split" falsevalue="" label="Split reference at positions with more than 5N" help=""/>
78
79 <param argument="--trimreads" type="boolean" checked="false" truevalue="--trimreads" falsevalue="" label="Trim data" help="It is recommended to trim beforehand and feed MITObim with pre trimmed data"/>
80 <param argument="--trimoverhang" type="boolean" checked="false" truevalue="--trimoverhang" falsevalue="" label="Trim overhang" help=" up- and downstream of reference. That is don't extend the bait"/>
81 <param argument="--mismatch" type="integer" value="" optional="true" label="Number of allowed mismatches in mapping" help="Only for illumina data (default: 15% of avg. read length)"/>
82 <param argument="--min_cov" type="integer" value="" optional="true" label="Minimum average coverage of contigs to be retained" help=""/>
83 <param argument="--min_len" type="integer" value="" optional="true" label="Minimum length of contig to be retained as backbone" help=""/>
84 </inputs>
85 <outputs>
86 <data format="fasta" name="assembly"/>
87 </outputs>
88 <tests>
89 <!--MITObim.pl -start 1 -end 10 -sample testpool -ref Salpinus_mt_genome -readpool reads.fastq -maf initial-mapping-testpool-to-Salpinus-mt_assembly/initial-mapping-testpool-to-Salpinus-mt_d_results/initial-mapping-testpool-to-Salpinus-mt_out.maf &> log-->
90 <test>
91 <param name="readpool" ftype="fastqsanger" value="Tthymallus-150bp-300sd50-interleaved.fastq"/>
92 <param name="sample" value="testpool"/>
93 <param name="reference" ftype="maf" value="initial-mapping-testpool-to-Salpinus-mt_out.maf"/>
94 <param name="ref" value="Salpinus_mt_genome"/>
95 <param name="start" value="1"/>
96 <param name="end" value="10"/>
97 <output name="assembly" value="ex1.fasta" ftype="fasta" compare="diff"/>
98 <assert_command>
99 <has_text text="--maf"/>
100 </assert_command>
101 </test>
102 <!---start 1 -end 30 -sample testpool -ref Salpinus_mt_genome -readpool ~/PATH/TO/testdata1/Tthymallus-150bp-300sd50-interleaved.fastq \-\-quick ~/PATH/TO/testdata1/Salpinus-mt-genome-NC_000861.fasta &> log-->
103 <test>
104 <param name="readpool" ftype="fastqsanger" value="Tthymallus-150bp-300sd50-interleaved.fastq"/>
105 <param name="sample" value="testpool"/>
106 <param name="reference" ftype="fasta" value="Salpinus-mt-genome-NC_000861.fasta"/>
107 <param name="ref" value="Salpinus_mt_genome"/>
108 <param name="start" value="1"/>
109 <param name="end" value="30"/>
110 <output name="assembly" value="ex2.fasta" ftype="fasta" compare="diff"/>
111 <assert_command>
112 <has_text text="--quick"/>
113 </assert_command>
114 </test>
115 <!--~/PATH/TO/MITObim.pl -sample testpool -ref Tthymallus-COI -readpool ~/PATH/TO/testdata1/Tthymallus-150bp-300sd50-interleaved.fastq \-\-quick ~/PATH/TO/testdata1/Tthymallus-COI-partial-HQ961018.fasta -end 50 \-\-denovo \-\-paired \-\-clean &> log-->
116 <test>
117 <param name="readpool" ftype="fastq" value="Tthymallus-150bp-300sd50-interleaved.fastq"/>
118 <param name="sample" value="testpool"/>
119 <param name="reference" ftype="fasta" value="Tthymallus-COI-partial-HQ961018.fasta"/>
120 <param name="ref" value="Tthymallus-COI"/>
121 <param name="end" value="50"/>
122 <param name="pair" value="true"/>
123 <output name="assembly" value="ex3.fasta" ftype="fasta" compare="diff"/>
124 <assert_command>
125 <has_text text="--quick"/>
126 </assert_command>
127 </test>
128 </tests>
129 <help><![CDATA[
130 The MITObim procedure (mitochondrial baiting and iterative mapping) represents a highly efficient approach to assembling novel mitochondrial genomes of non-model organisms directly from total genomic DNA derived NGS reads. Labor intensive long-range PCR steps prior to sequencing are no longer required. MITObim is capable of reconstructing mitochondrial genomes without the need of a reference genome of the targeted species by relying solely on (a) mitochondrial genome information of more distantly related taxa or (b) short mitochondrial barcoding sequences (seeds), such as the commonly used cytochrome-oxidase subunit 1 (COI), as a starting reference.
131
132 The script is performing three steps and iteratively repeating them: (i) Deriving reference sequence from previous mapping assembly, (ii) in silico baiting using the newly derived reference (iii) previously fished reads are mapped to the newly derived reference leading to an extension of the reference sequence.
133
134 For more details please refer to Hahn et al. 2013. Detailed examples are demonstrated in the TUTORIALS section here https://github.com/chrishah/MITObim
135 ]]></help>
136 <citations>
137 <citation type="doi">10.1093/nar/gkt371</citation>
138 </citations>
139 </tool>