annotate mitokmer.1.xml @ 3:c9d98f5bc240 draft

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