Mercurial > repos > nml > kat_filter
annotate kat_filter.xml @ 0:894eff01255b draft default tip
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
author | nml |
---|---|
date | Tue, 09 Jan 2018 10:27:22 -0500 |
parents | |
children |
rev | line source |
---|---|
0
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
1 <?xml version='1.0' encoding='utf-8'?> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
2 <tool id="kat_@EXECUTABLE@" name="KAT @EXECUTABLE@" version="@VERSION@.2"> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
3 <description>Filtering reads or k-mer from fasta file</description> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
4 <macros> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
5 <token name="@EXECUTABLE@">filter_seq</token> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
6 <import>macros.xml</import> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
7 </macros> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
8 <expand macro="requirements" /> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
9 <expand macro="stdio" /> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
10 <expand macro="version_command" /> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
11 <command><![CDATA[ |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
12 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
13 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
14 cp "$db" db.fasta && |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
15 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
16 #if $single_or_paired.type == "single" |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
17 ln "$input_se" read.fastq && |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
18 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
19 kat filter seq |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
20 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
21 --seq read.fastq |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
22 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
23 #elif $single_or_paired.type == "paired" |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
24 ln "$single_or_paired.forward_pe" read_1.fastq && ln "$single_or_paired.reverse_pe" read_2.fastq && |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
25 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
26 kat filter seq |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
27 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
28 --seq read_1.fastq --seq2 read_2.fastq |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
29 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
30 #else |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
31 ln "$single_or_paired.fastq_collection.forward" read_1.fastq && ln "$single_or_paired.fastq_collection.reverse" read_2.fastq && |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
32 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
33 kat filter seq |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
34 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
35 --seq read_1.fastq --seq2 read_2.fastq |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
36 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
37 #end if |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
38 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
39 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
40 @THREADS@ |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
41 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
42 --mer_len $kmer |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
43 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
44 $stats |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
45 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
46 #if $invert_or_both.which == "invert": |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
47 $invert_or_both.invert |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
48 #elif $invert_or_both.which == "split": |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
49 $invert_or_both.separate |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
50 #end if |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
51 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
52 -o reads |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
53 'db.fasta' |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
54 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
55 ]]></command> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
56 <inputs> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
57 <expand macro="macro_input" /> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
58 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
59 <param name="db" type="data" format="fasta" label="Fasta file of targeted regions"/> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
60 <expand macro="macro_kmers" /> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
61 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
62 <param name="threshold" type="float" value='0.10000000000000001' label="Target Threshold" help="What percentage of the sequence needs to be covered with target k-mers to keep the sequence"/> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
63 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
64 <param name="stats" type="boolean" truevalue='--stats' falsevalue='' checked='False' label="Stats" help="Whether to emit statistics about quantity of found k-mers in each sequence."/> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
65 <conditional name="invert_or_both"> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
66 <param name="which" type="select" label="Advance Options"> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
67 <option value="none">No Advance</option> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
68 <option value="invert">Option 1</option> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
69 <option value="split">Option 2</option> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
70 </param> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
71 <when value="invert"> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
72 <param name="invert" type="boolean" truevalue='--invert' falsevalue='' checked='True' label="Take k-mer not matching target" help="Whether to take k-mers outside region as selected content, rather than those inside."/> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
73 </when> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
74 <when value="split"> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
75 <param name="separate" type="boolean" truevalue='--separate' falsevalue='' checked='True' label="Keep inside and outside of target(s) region" help="Whether to partition the k-mers into two sets, those inside region and those outside."/> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
76 </when> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
77 <when value="none"> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
78 </when> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
79 </conditional> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
80 </inputs> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
81 <outputs> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
82 <data format="fastqsanger" name="reads" label="Reads.fastq" from_work_dir="reads.in.fastq" > |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
83 <filter> single_or_paired['type'] == "single" </filter> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
84 </data> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
85 <data format="fastqsanger" name="forward" label="forward_R1.fastq" from_work_dir="reads.in.R1.fastq" > |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
86 <filter> single_or_paired['type'] == "paired"</filter> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
87 </data> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
88 <data format="fastqsanger" name="reverse" label="reverse_R2.fastq" from_work_dir="reads.in.R2.fastq" > |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
89 <filter> single_or_paired['type'] == "paired"</filter> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
90 </data> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
91 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
92 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
93 <collection name="paired_reads" type="paired" label="Reads"> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
94 <data name="forward" format="fastqsanger" from_work_dir="reads.in.R1.fastq" > |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
95 <filter> single_or_paired['type'] == "collection"</filter> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
96 </data> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
97 <data name="reverse" format="fastqsanger" from_work_dir="reads.in.R2.fastq" > |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
98 <filter> single_or_paired['type'] == "collection"</filter> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
99 </data> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
100 </collection> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
101 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
102 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
103 <data format="fastqsanger" name="outside_reads" label='Outside reads' from_work_dir="reads.out.fastq"> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
104 <filter>invert_or_both['which'] == 'split' and invert_or_both['separate'] and single_or_paired['type'] == "single"</filter> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
105 </data> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
106 <data format="tabular" name="file_stats" label='Stats' from_work_dir="reads.stats"> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
107 <filter>stats</filter> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
108 </data> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
109 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
110 </outputs> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
111 <tests> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
112 <test> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
113 <param name="input_se" value="input.fastq" /> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
114 <param name="db" value="db.fasta" /> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
115 <output file="matched.fastq" ftype="fastqsanger" name="reads" /> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
116 </test> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
117 </tests> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
118 <help><![CDATA[ |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
119 http://kat.readthedocs.io/en/latest/using.html#filtering-tools |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
120 ]]> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
121 |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
122 </help> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
123 <citations> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
124 </citations> |
894eff01255b
planemo upload commit 3ad4270aabe37123987e91a178bd7d61778c849c-dirty
nml
parents:
diff
changeset
|
125 </tool> |