annotate kat_sect.xml @ 1:ab2cf85b9ae8 draft

planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
author nml
date Mon, 13 Mar 2017 15:36:43 -0400
parents 699eef7398c1
children 7f59ee641f70
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
1 <?xml version='1.0' encoding='utf-8'?>
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
2 <tool id="kat_@EXECUTABLE@" name="KAT @EXECUTABLE@" version="@VERSION@.1">
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
3 <description> Estimates the coverage of each sequence in a file using K-mers from another sequence file(s).</description>
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
4 <macros>
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
5 <token name="@EXECUTABLE@">sect</token>
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
6 <import>macros.xml</import>
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
7 </macros>
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
8 <expand macro="requirements" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
9 <expand macro="stdio" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
10 <expand macro="version_command" />
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
11 <command><![CDATA[
699eef7398c1 Uploaded
nml
parents:
diff changeset
12
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
13 cp "$db" db.fasta &&
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
14 #if $single_or_paired.type == "single"
699eef7398c1 Uploaded
nml
parents:
diff changeset
15 ln "$input_se" "$single_or_paired.input_se.element_identifier".fastq &&
699eef7398c1 Uploaded
nml
parents:
diff changeset
16 kat sect 'db.fasta'
699eef7398c1 Uploaded
nml
parents:
diff changeset
17 "$single_or_paired.input_se.element_identifier".fastq
699eef7398c1 Uploaded
nml
parents:
diff changeset
18 #elif $single_or_paired.type == "paired"
699eef7398c1 Uploaded
nml
parents:
diff changeset
19 ln "$single_or_paired.forward_pe" "$single_or_paired.forward_pe.name"_1.fastq && ln "$single_or_paired.reverse_pe" "$single_or_paired.forward_pe.name"_2.fastq &&
699eef7398c1 Uploaded
nml
parents:
diff changeset
20 kat sect 'db.fasta'
699eef7398c1 Uploaded
nml
parents:
diff changeset
21 "$single_or_paired.forward_pe.name"_1.fastq "$single_or_paired.forward_pe.name"_2.fastq
699eef7398c1 Uploaded
nml
parents:
diff changeset
22 #else
699eef7398c1 Uploaded
nml
parents:
diff changeset
23 ln "$single_or_paired.fastq_collection.forward" "$single_or_paired.fastq_collection.forward.name"_1.fastq && ln "$single_or_paired.fastq_collection.reverse" "$single_or_paired.fastq_collection.forward.name"_2.fastq &&
699eef7398c1 Uploaded
nml
parents:
diff changeset
24 kat sect 'db.fasta'
699eef7398c1 Uploaded
nml
parents:
diff changeset
25 "$single_or_paired.fastq_collection.forward.name"_1.fastq "$single_or_paired.fastq_collection.forward.name"_2.fastq
699eef7398c1 Uploaded
nml
parents:
diff changeset
26 #end if
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
27
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
28 @THREADS@
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
29
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
30 $keep_counts
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
31
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
32 -o results
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
33
699eef7398c1 Uploaded
nml
parents:
diff changeset
34 ]]></command>
699eef7398c1 Uploaded
nml
parents:
diff changeset
35 <inputs>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
36 <expand macro="macro_input" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
37
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
38 <param name="db" type="data" format="fasta" label="Fasta file of targeted regions"/>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
39 <expand macro="macro_kmers" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
40 <param name="keep_counts" type="boolean" falsevalue='--no_count_stats' truevalue='' checked='False' label="Fasta Count File" help="Produce a fasta style representation of the input sequence file containing K-mer coverage counts mapped across each sequence"/>
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
41 </inputs>
699eef7398c1 Uploaded
nml
parents:
diff changeset
42 <outputs>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
43 <data format="tabular" name="stats" label='Stats' from_work_dir="results-stats.tsv" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
44 <data format="txt" name="counts" label='Counts' from_work_dir="results-counts.cvg">
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
45 <filter>keep_counts</filter>
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
46 </data>
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
47 </outputs>
699eef7398c1 Uploaded
nml
parents:
diff changeset
48 <tests>
699eef7398c1 Uploaded
nml
parents:
diff changeset
49 <test>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
50 <param name="input_se" value="input.fastq" />
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
51 <param name="db" value="db.fasta" />
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
52 <param name="keep_counts" value="False" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
53 <output file="kat-sect-stats.tsv" name="stats" />
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
54 </test>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
55 <test>
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
56 <param name="input_se" value="input.fastq" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
57 <param name="db" value="db.fasta" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
58 <param name="keep_counts" value="True" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
59 <output file="kat-sect-stats.tsv" name="stats" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
60 <output file="kat-sect-counts.cvg" name="counts" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
61 </test>
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
62 </tests>
699eef7398c1 Uploaded
nml
parents:
diff changeset
63 <help><![CDATA[
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
64 https://kat.readthedocs.io/en/latest/using.html#sect
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
65 ]]>
699eef7398c1 Uploaded
nml
parents:
diff changeset
66
699eef7398c1 Uploaded
nml
parents:
diff changeset
67 </help>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
68 <expand macro="citations" />
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
69 </tool>