Mercurial > repos > nml > kat_sect
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 |
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@ |
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 | 33 |
34 ]]></command> | |
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 | 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 | 41 </inputs> |
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 | 47 </outputs> |
48 <tests> | |
49 <test> | |
1
ab2cf85b9ae8
planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents:
0
diff
changeset
|
50 <param name="input_se" value="input.fastq" /> |
0 | 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 | 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 | 62 </tests> |
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 | 65 ]]> |
66 | |
67 </help> | |
1
ab2cf85b9ae8
planemo upload commit f86fb54b98f0dbed260735675219e64882f08efe
nml
parents:
0
diff
changeset
|
68 <expand macro="citations" /> |
0 | 69 </tool> |