Mercurial > repos > nml > kat_sect
annotate kat_sect.xml @ 2:7f59ee641f70 draft
planemo upload commit 9055189147adf43abdfcd85b8fa7822fd24bb0e4
author | nml |
---|---|
date | Mon, 13 Mar 2017 15:53:39 -0400 |
parents | ab2cf85b9ae8 |
children | 624f99fe1705 |
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 | 11 <command><![CDATA[ |
12 | |
1
ab2cf85b9ae8
planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents:
0
diff
changeset
|
13 cp "$db" db.fasta && |
0 | 14 #if $single_or_paired.type == "single" |
15 ln "$input_se" "$single_or_paired.input_se.element_identifier".fastq && | |
16 kat sect 'db.fasta' | |
17 "$single_or_paired.input_se.element_identifier".fastq | |
18 #elif $single_or_paired.type == "paired" | |
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 && | |
20 kat sect 'db.fasta' | |
21 "$single_or_paired.forward_pe.name"_1.fastq "$single_or_paired.forward_pe.name"_2.fastq | |
22 #else | |
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 && | |
24 kat sect 'db.fasta' | |
25 "$single_or_paired.fastq_collection.forward.name"_1.fastq "$single_or_paired.fastq_collection.forward.name"_2.fastq | |
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 | 36 |
37 ]]></command> | |
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 | 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 | 44 </inputs> |
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 | 50 </outputs> |
51 <tests> | |
52 <test> | |
1
ab2cf85b9ae8
planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents:
0
diff
changeset
|
53 <param name="input_se" value="input.fastq" /> |
0 | 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 | 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 | 65 </tests> |
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 | 68 ]]> |
69 | |
70 </help> | |
1
ab2cf85b9ae8
planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents:
0
diff
changeset
|
71 <expand macro="citations" /> |
0 | 72 </tool> |