|
14
|
1 <tool id="bwameth" name="bwameth" version="0.20">
|
|
|
2 <description>Fast and accurate aligner of BS-Seq reads.</description>
|
|
|
3 <requirements>
|
|
|
4 <requirement type="package" version="0.4.6">toolshed</requirement>
|
|
|
5 <requirement type="package" version="1.2">samtools</requirement>
|
|
|
6 <requirement type="package" version="0.7.12">bwa</requirement>
|
|
|
7 </requirements>
|
|
|
8 <stdio>
|
|
|
9 <exit_code range="1:" />
|
|
|
10 <exit_code range=":-1" />
|
|
|
11 <regex match="Error:" />
|
|
|
12 <regex match="Exception:" />
|
|
|
13 <regex match="Exception :" />
|
|
|
14 </stdio>
|
|
|
15 <command interpreter="python">
|
|
|
16 <![CDATA[
|
|
|
17 bwameth_wrapper.py
|
|
|
18 -p "\${GALAXY_SLOTS:-4}"
|
|
|
19
|
|
|
20 #if $referenceSource.source != "indexed":
|
|
|
21 --makeIndex $referenceSource.reference
|
|
|
22 #else
|
|
|
23 --premadeIndex $referenceSource.index.fields.path
|
|
|
24 #end if
|
|
|
25
|
|
|
26 #if str($readGroup).strip() != "":
|
|
|
27 --readGroup "${readGroup}"
|
|
|
28 #end if
|
|
|
29
|
|
|
30 #if $single_or_paired.single_or_paired_opts == 'single':
|
|
|
31 $single_or_paired.input_singles
|
|
|
32 #else:
|
|
|
33 $single_or_paired.input_mate1 $single_or_paired.input_mate2
|
|
|
34 #end if
|
|
|
35 ]]>
|
|
|
36 </command>
|
|
|
37 <inputs>
|
|
|
38 <conditional name="referenceSource">
|
|
|
39 <param name="source" type="select" label="Select a genome reference from your history or a built-in index?">
|
|
|
40 <option value="history" selected="True">Use one from the history</option>
|
|
|
41 <option value="indexed">Use a built-in index</option>
|
|
|
42 </param>
|
|
|
43 <when value="history">
|
|
|
44 <param name="reference" type="data" format="fasta" metadata_name="dbkey" label="Select a genome" help="in FASTA format" />
|
|
|
45 </when>
|
|
|
46 <when value="indexed">
|
|
|
47 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact your Galaxy admin">
|
|
|
48 <options from_data_table="bwameth_indexes">
|
|
|
49 <filter type="sort_by" column="2"/>
|
|
|
50 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
|
51 </options>
|
|
|
52 </param>
|
|
|
53 </when>
|
|
|
54 </conditional>
|
|
|
55
|
|
|
56 <conditional name="single_or_paired">
|
|
|
57 <param name="single_or_paired_opts" type="select" label="Is this library mate-paired?">
|
|
|
58 <option value="single">Single-end</option>
|
|
|
59 <option value="paired">Paired-end</option>
|
|
|
60 </param>
|
|
|
61 <when value="single">
|
|
|
62 <param name="input_singles" type="data" format="fastq" label="FASTQ" help="FASTQ file." />
|
|
|
63 </when>
|
|
|
64 <when value="paired">
|
|
|
65 <param name="input_mate1" type="data" format="fastq" label="First read in pair" help="FASTQ file." />
|
|
|
66 <param name="input_mate2" type="data" format="fastq" label="Second read in pair" help="FASTQ file." />
|
|
|
67 </when>
|
|
|
68 </conditional>
|
|
|
69 <param name="readGroup" type="text" value="" label="Read group" help="If desired, you can manually add read group information to the resulting BAM file. To do so, you MUST manually specify the entire string, such as '@RG\tID:foo\tSM:bar'" />
|
|
|
70 </inputs>
|
|
|
71 <outputs>
|
|
|
72 <data name="output" format="bam" from_work_dir="output.bam" label="${tool.name} on ${on_string}" />
|
|
|
73 </outputs>
|
|
|
74 <tests>
|
|
|
75 <test>
|
|
|
76 <param name="referenceSource" value="history" />
|
|
|
77 <param name="reference" value="ref.fa" />
|
|
|
78 <param name="single_or_paired_opts" value="paired" />
|
|
|
79 <param name="input_mate1" value="t_R1.fastq.gz" />
|
|
|
80 <param name="input_mate2" value="t_R2.fastq.gz" />
|
|
|
81 <output file="output.bam" ftype="bam" name="output" compare="sim_size" delta="10000"/>
|
|
|
82 </test>
|
|
|
83 </tests>
|
|
|
84 <help>
|
|
|
85 <![CDATA[
|
|
|
86
|
|
|
87 **What it does**
|
|
|
88
|
|
|
89 BWA-meth performs alignment of reads in a bisulfite-sequencing experiment (e.g., RRBS or WGBS) to a genome. The methodology employed for this is similar to bismark, where both the reads and the reference genome are *in silico* converted prior to alignment. Methylation extraction on the resulting BAM file can be done with the PileOMeth tool.
|
|
|
90 ]]>
|
|
|
91 </help>
|
|
|
92 </tool>
|