annotate mitokmer.xml @ 3:c9d98f5bc240 draft

planemo upload commit 003cdb83fd17248ef57959332d58a3c96311332a-dirty
author cstrittmatter
date Sun, 28 Apr 2019 00:42:24 -0400
parents a0852bb4b09b
children
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
3
c9d98f5bc240 planemo upload commit 003cdb83fd17248ef57959332d58a3c96311332a-dirty
cstrittmatter
parents: 2
diff changeset
41 -i $__tool_directory__/$fwd $__tool_directory__/$rev;
c9d98f5bc240 planemo upload commit 003cdb83fd17248ef57959332d58a3c96311332a-dirty
cstrittmatter
parents: 2
diff changeset
42 echo "run cat";
c9d98f5bc240 planemo upload commit 003cdb83fd17248ef57959332d58a3c96311332a-dirty
cstrittmatter
parents: 2
diff changeset
43 rm $__tool_directory__/results*;
c9d98f5bc240 planemo upload commit 003cdb83fd17248ef57959332d58a3c96311332a-dirty
cstrittmatter
parents: 2
diff changeset
44 cat $__tool_directory__/output/mitokmer_result.csv > $__tool_directory__/results.csv;
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
45 ]]></command>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
46 <inputs>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
47
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
48 <conditional name="reads">
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
49 <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
50 <option value="single">One FASTQ dataset from your history</option>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
51 <option value="paired">Two FASTQ datasets from your history</option>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
52 </param>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
53 <when value="single">
2
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
54 <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
55 </when>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
56 <when value="paired">
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
57 <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
58 <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
59 </when>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
60 </conditional>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
61
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
62 </inputs>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
63 <outputs>
3
c9d98f5bc240 planemo upload commit 003cdb83fd17248ef57959332d58a3c96311332a-dirty
cstrittmatter
parents: 2
diff changeset
64 <data format="tabular" label="mitokmer Results" name="results" from_work_dir="results.csv"/>
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
65 </outputs>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
66 <tests>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
67 <test>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
68 <param name="reads_select" value="single" />
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
69 <param name="allreads" value="1a.fasta" format="fasta"/>
3
c9d98f5bc240 planemo upload commit 003cdb83fd17248ef57959332d58a3c96311332a-dirty
cstrittmatter
parents: 2
diff changeset
70 <output name="output1" file="output/mitokmer_result.csv"/>
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
71 </test>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
72 </tests>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
73
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
74 <help><![CDATA[
2
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
75
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
76 **Usage: mitokmer.py**
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
77
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
78 ]]></help>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
79 <citations>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
80 <citation type="bibtex">
2
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
81 meh
0
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
82 }</citation>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
83 </citations>
1472b4f4fbfe planemo upload commit a4aeec0f52695b1cbda85ed1faf85d66ba897ab2
cstrittmatter
parents:
diff changeset
84
2
a0852bb4b09b planemo upload commit 03463f4b0598df5619def5230de3fb758b4090ba-dirty
cstrittmatter
parents: 1
diff changeset
85 </tool>