annotate mitokmer.xml @ 2:a0852bb4b09b draft

planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
author cstrittmatter
date Thu, 25 Apr 2019 07:59:05 -0400
parents 1434bc7b4786
children c9d98f5bc240
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
1 <tool id="mitokmer_v1" name="mitokmer 1" version="1.0">
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
2 <description>Eukaryotic abundance prediction by mitochondrial content</description>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
3 <requirements>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
4 <requirement type="package" version="2.7">python</requirement>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
5 </requirements>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
6 <command detect_errors="exit_code"><![CDATA[
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
7
2
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
8 rm $__tool_directory__/R*.fastq;
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
9 #if $reads.reads_select == "paired"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
10 #set $name = $reads.forward.name.split('.')[0].replace(' ','_')
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
11 #set $forward = $reads.forward
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
12 #set $reverse = $reads.reverse
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
13 #else
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
14 #set $name = $reads.allreads.name.split('.')[0].replace(' ','_')
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
15 #set $forward = $reads.allreads
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
16 #set $reverse = $reads.allreads
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
17 #end if
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
18 echo $name;
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
19 echo "-=-=-";
2
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
20 #if $forward.is_of_type('fastq.gz', 'fastqsanger.gz')
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
21 #set $fwd = "R1.fastq.gz"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
22 #set $rev = "R2.fastq.gz"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
23 #else if $forward.is_of_type('fastq', 'fastqsanger')
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
24 #set $fwd = "R1.fastq"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
25 #set $rev = "R2.fastq"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
26 #else if $forward.is_of_type('fasta.gz')
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
27 #set $fwd = "R1.fasta.gz"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
28 #set $rev = "R2.fasta.gz"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
29 #else
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
30 #set $fwd = "R1.fasta"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
31 #set $rev = "R2.fasta"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
32 #end if
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
33 ln -s $forward $__tool_directory__/$fwd;
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
34 ln -s $reverse $__tool_directory__/$rev;
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
35 #if $reads.reads_select == "single"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
36 #set $rev = "none"
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
37 #end if
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
38 python $__tool_directory__/kmer_read_m3.py
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
39 -w $__tool_directory__
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
40 -d $__tool_directory__/output
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
41 -i $__tool_directory__/$fwd $__tool_directory__/$rev
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
42 ]]></command>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
43 <inputs>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
44
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
45 <conditional name="reads">
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
46 <param name="reads_select" type="select" label="One FASTQ dataset from your history, or two datasets from your history">
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
47 <option value="single">One FASTQ dataset from your history</option>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
48 <option value="paired">Two FASTQ datasets from your history</option>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
49 </param>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
50 <when value="single">
2
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
51 <param label="all reads" type="data" name="allreads" format="fasta,fasta.gz,fastq,fastq.gz,fastqsanger,fastqsanger.gz"/>
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
52 </when>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
53 <when value="paired">
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
54 <param label="Forward reads" type="data" name="forward" format="fasta,fasta.gz,fastq,fastq.gz,fastqsanger,fastqsanger.gz" />
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
55 <param label="Reverse reads" type="data" name="reverse" format="fasta,fasta.gz,fastq,fastq.gz,fastqsanger,fastqsanger.gz" />
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
56 </when>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
57 </conditional>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
58
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
59 </inputs>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
60 <outputs>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
61 <data format="tabular" label="mitokmer Results" name="results" from_work_dir="output/mitokmer_result.csv"/>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
62 </outputs>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
63 <tests>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
64 <test>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
65 <param name="reads_select" value="single" />
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
66 <param name="allreads" value="1a.fasta" format="fasta"/>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
67 <output name="output1" file="mitokmer_result.csv"/>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
68 </test>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
69 </tests>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
70
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
71 <help><![CDATA[
2
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
72
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
73 **Usage: mitokmer.py**
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
74
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
75 ]]></help>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
76 <citations>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
77 <citation type="bibtex">
2
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
78 meh
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
79 }</citation>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
80 </citations>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
81
2
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
82 </tool>