annotate kat_sect.xml @ 3:624f99fe1705 draft default tip

planemo upload commit cf7305a207096e24bedddb0cb55bed86a6b7cd6b
author nml
date Wed, 15 Mar 2017 13:56:48 -0400
parents 7f59ee641f70
children
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'?>
3
624f99fe1705 planemo upload commit cf7305a207096e24bedddb0cb55bed86a6b7cd6b
nml
parents: 2
diff changeset
2 <tool id="kat_@EXECUTABLE@" name="KAT @EXECUTABLE@" version="@VERSION@.2">
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"
3
624f99fe1705 planemo upload commit cf7305a207096e24bedddb0cb55bed86a6b7cd6b
nml
parents: 2
diff changeset
15 ln "$input_se" read.fastq &&
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
16 kat sect 'db.fasta'
3
624f99fe1705 planemo upload commit cf7305a207096e24bedddb0cb55bed86a6b7cd6b
nml
parents: 2
diff changeset
17 read.fastq
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
18 #elif $single_or_paired.type == "paired"
3
624f99fe1705 planemo upload commit cf7305a207096e24bedddb0cb55bed86a6b7cd6b
nml
parents: 2
diff changeset
19 ln "$single_or_paired.forward_pe" read_1.fastq && ln "$single_or_paired.reverse_pe" read_2.fastq &&
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
20 kat sect 'db.fasta'
3
624f99fe1705 planemo upload commit cf7305a207096e24bedddb0cb55bed86a6b7cd6b
nml
parents: 2
diff changeset
21 read_1.fastq read_2.fastq
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
22 #else
3
624f99fe1705 planemo upload commit cf7305a207096e24bedddb0cb55bed86a6b7cd6b
nml
parents: 2
diff changeset
23 ln "$single_or_paired.fastq_collection.forward" read_1.fastq && ln "$single_or_paired.fastq_collection.reverse" read_2.fastq &&
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
24 kat sect 'db.fasta'
3
624f99fe1705 planemo upload commit cf7305a207096e24bedddb0cb55bed86a6b7cd6b
nml
parents: 2
diff changeset
25 read_1.fastq read_2.fastq
0
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@
2
7f59ee641f70 planemo upload commit 9055189147adf43abdfcd85b8fa7822fd24bb0e4
nml
parents: 1
diff changeset
29
7f59ee641f70 planemo upload commit 9055189147adf43abdfcd85b8fa7822fd24bb0e4
nml
parents: 1
diff changeset
30 --mer_len $kmer
7f59ee641f70 planemo upload commit 9055189147adf43abdfcd85b8fa7822fd24bb0e4
nml
parents: 1
diff changeset
31
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
32
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
33 $keep_counts
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
34
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
35 -o results
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
36
699eef7398c1 Uploaded
nml
parents:
diff changeset
37 ]]></command>
699eef7398c1 Uploaded
nml
parents:
diff changeset
38 <inputs>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
39 <expand macro="macro_input" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
40
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
41 <param name="db" type="data" format="fasta" label="Fasta file of targeted regions"/>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
42 <expand macro="macro_kmers" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
43 <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
44 </inputs>
699eef7398c1 Uploaded
nml
parents:
diff changeset
45 <outputs>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
46 <data format="tabular" name="stats" label='Stats' from_work_dir="results-stats.tsv" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
47 <data format="txt" name="counts" label='Counts' from_work_dir="results-counts.cvg">
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
48 <filter>keep_counts</filter>
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
49 </data>
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
50 </outputs>
699eef7398c1 Uploaded
nml
parents:
diff changeset
51 <tests>
699eef7398c1 Uploaded
nml
parents:
diff changeset
52 <test>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
53 <param name="input_se" value="input.fastq" />
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
54 <param name="db" value="db.fasta" />
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
55 <param name="keep_counts" value="False" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
56 <output file="kat-sect-stats.tsv" name="stats" />
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
57 </test>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
58 <test>
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
59 <param name="input_se" value="input.fastq" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
60 <param name="db" value="db.fasta" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
61 <param name="keep_counts" value="True" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
62 <output file="kat-sect-stats.tsv" name="stats" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
63 <output file="kat-sect-counts.cvg" name="counts" />
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
64 </test>
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
65 </tests>
699eef7398c1 Uploaded
nml
parents:
diff changeset
66 <help><![CDATA[
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
67 https://kat.readthedocs.io/en/latest/using.html#sect
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
68 ]]>
699eef7398c1 Uploaded
nml
parents:
diff changeset
69
699eef7398c1 Uploaded
nml
parents:
diff changeset
70 </help>
1
ab2cf85b9ae8 planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents: 0
diff changeset
71 <expand macro="citations" />
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
72 </tool>