annotate kat_sect.xml @ 0:699eef7398c1 draft

Uploaded
author nml
date Mon, 06 Feb 2017 12:36:09 -0500
parents
children ab2cf85b9ae8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
699eef7398c1 Uploaded
nml
parents:
diff changeset
1 <tool id="kat_sect" name="KAT Sect" version="1.3.0">
699eef7398c1 Uploaded
nml
parents:
diff changeset
2 <description> SEquence Coverage estimator Tool. Estimates the coverage of each sequence in a file using K-mers from another sequence file.</description>
699eef7398c1 Uploaded
nml
parents:
diff changeset
3 <requirements>
699eef7398c1 Uploaded
nml
parents:
diff changeset
4 <requirement type="package" version="2.3.1">kat</requirement>
699eef7398c1 Uploaded
nml
parents:
diff changeset
5 </requirements>
699eef7398c1 Uploaded
nml
parents:
diff changeset
6 <stdio>
699eef7398c1 Uploaded
nml
parents:
diff changeset
7 <exit_code range="1:" />
699eef7398c1 Uploaded
nml
parents:
diff changeset
8 </stdio>
699eef7398c1 Uploaded
nml
parents:
diff changeset
9 <command><![CDATA[
699eef7398c1 Uploaded
nml
parents:
diff changeset
10
699eef7398c1 Uploaded
nml
parents:
diff changeset
11 ln "$db" db.fasta &&
699eef7398c1 Uploaded
nml
parents:
diff changeset
12 #if $single_or_paired.type == "single"
699eef7398c1 Uploaded
nml
parents:
diff changeset
13 ln "$input_se" "$single_or_paired.input_se.element_identifier".fastq &&
699eef7398c1 Uploaded
nml
parents:
diff changeset
14 kat sect 'db.fasta'
699eef7398c1 Uploaded
nml
parents:
diff changeset
15 "$single_or_paired.input_se.element_identifier".fastq
699eef7398c1 Uploaded
nml
parents:
diff changeset
16 #elif $single_or_paired.type == "paired"
699eef7398c1 Uploaded
nml
parents:
diff changeset
17 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
18 kat sect 'db.fasta'
699eef7398c1 Uploaded
nml
parents:
diff changeset
19 "$single_or_paired.forward_pe.name"_1.fastq "$single_or_paired.forward_pe.name"_2.fastq
699eef7398c1 Uploaded
nml
parents:
diff changeset
20 #else
699eef7398c1 Uploaded
nml
parents:
diff changeset
21 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
22 kat sect 'db.fasta'
699eef7398c1 Uploaded
nml
parents:
diff changeset
23 "$single_or_paired.fastq_collection.forward.name"_1.fastq "$single_or_paired.fastq_collection.forward.name"_2.fastq
699eef7398c1 Uploaded
nml
parents:
diff changeset
24 #end if
699eef7398c1 Uploaded
nml
parents:
diff changeset
25 --threads \${GALAXY_SLOTS:-4}
699eef7398c1 Uploaded
nml
parents:
diff changeset
26 -o reads
699eef7398c1 Uploaded
nml
parents:
diff changeset
27
699eef7398c1 Uploaded
nml
parents:
diff changeset
28 ]]></command>
699eef7398c1 Uploaded
nml
parents:
diff changeset
29 <inputs>
699eef7398c1 Uploaded
nml
parents:
diff changeset
30 <conditional name="single_or_paired">
699eef7398c1 Uploaded
nml
parents:
diff changeset
31 <param name="type" type="select" label="Read type">
699eef7398c1 Uploaded
nml
parents:
diff changeset
32 <option value="single">Single-end</option>
699eef7398c1 Uploaded
nml
parents:
diff changeset
33 <option value="paired">Paired-end</option>
699eef7398c1 Uploaded
nml
parents:
diff changeset
34 <option value="collection">Collection Paired-end</option>
699eef7398c1 Uploaded
nml
parents:
diff changeset
35 </param>
699eef7398c1 Uploaded
nml
parents:
diff changeset
36 <when value="single">
699eef7398c1 Uploaded
nml
parents:
diff changeset
37 <param name="input_se" type="data" format="fastqsanger" label="Single end read file(s)"/>
699eef7398c1 Uploaded
nml
parents:
diff changeset
38 </when>
699eef7398c1 Uploaded
nml
parents:
diff changeset
39 <when value="paired">
699eef7398c1 Uploaded
nml
parents:
diff changeset
40 <param name="forward_pe" type="data" format="fastqsanger" label="Forward paired-end read file"/>
699eef7398c1 Uploaded
nml
parents:
diff changeset
41 <param name="reverse_pe" type="data" format="fastqsanger" label="Reverse paired-end read file"/>
699eef7398c1 Uploaded
nml
parents:
diff changeset
42 </when>
699eef7398c1 Uploaded
nml
parents:
diff changeset
43 <when value="collection">
699eef7398c1 Uploaded
nml
parents:
diff changeset
44 <param name="fastq_collection" type="data_collection" label="Paired-end reads collection" optional="false" format="fastqsanger" collection_type="paired" />
699eef7398c1 Uploaded
nml
parents:
diff changeset
45 </when>
699eef7398c1 Uploaded
nml
parents:
diff changeset
46 </conditional>
699eef7398c1 Uploaded
nml
parents:
diff changeset
47 <param name="db" type="data" format="fasta" label="Fasta file of targeted regions"/>
699eef7398c1 Uploaded
nml
parents:
diff changeset
48 </inputs>
699eef7398c1 Uploaded
nml
parents:
diff changeset
49 <outputs>
699eef7398c1 Uploaded
nml
parents:
diff changeset
50 <data format="tabular" name="reads" label='Reads' from_work_dir="reads-stats.tsv" />
699eef7398c1 Uploaded
nml
parents:
diff changeset
51 </outputs>
699eef7398c1 Uploaded
nml
parents:
diff changeset
52 <tests>
699eef7398c1 Uploaded
nml
parents:
diff changeset
53 <test>
699eef7398c1 Uploaded
nml
parents:
diff changeset
54 <param name="input" value="input.fastq" />
699eef7398c1 Uploaded
nml
parents:
diff changeset
55 <param name="db" value="db.fasta" />
699eef7398c1 Uploaded
nml
parents:
diff changeset
56 <output file="matched.fastq" ftype="fastqsanger" name="reads" />
699eef7398c1 Uploaded
nml
parents:
diff changeset
57 </test>
699eef7398c1 Uploaded
nml
parents:
diff changeset
58 </tests>
699eef7398c1 Uploaded
nml
parents:
diff changeset
59 <help><![CDATA[
699eef7398c1 Uploaded
nml
parents:
diff changeset
60 http://kat.readthedocs.io/en/latest/using.html#filtering-tools
699eef7398c1 Uploaded
nml
parents:
diff changeset
61 ]]>
699eef7398c1 Uploaded
nml
parents:
diff changeset
62
699eef7398c1 Uploaded
nml
parents:
diff changeset
63 </help>
699eef7398c1 Uploaded
nml
parents:
diff changeset
64 <citations>
699eef7398c1 Uploaded
nml
parents:
diff changeset
65 </citations>
699eef7398c1 Uploaded
nml
parents:
diff changeset
66 </tool>