Mercurial > repos > dpryan79 > bwameth
comparison bwameth.xml @ 20:5924e53ef39c draft default tip
Uploaded
| author | dpryan79 |
|---|---|
| date | Thu, 15 Sep 2016 04:57:12 -0400 |
| parents | 352e0213806c |
| children |
comparison
equal
deleted
inserted
replaced
| 19:54c3b261783b | 20:5924e53ef39c |
|---|---|
| 1 <tool id="bwameth" name="bwameth" version="0.20"> | 1 <tool id="bwameth" name="bwameth" version="0.2.0.2"> |
| 2 <description>Fast and accurate aligner of BS-Seq reads.</description> | 2 <description>Fast and accurate aligner of BS-Seq reads.</description> |
| 3 <requirements> | 3 <requirements> |
| 4 <requirement type="package" version="0.4.6">toolshed</requirement> | 4 <requirement type="package" version="1.2">samtools</requirement> |
| 5 <requirement type="package" version="1.2">samtools</requirement> | 5 <requirement type="package" version="0.2.0">bwameth</requirement> |
| 6 <requirement type="package" version="0.7.12">bwa</requirement> | 6 </requirements> |
| 7 <requirement type="package" version="0.20">bwameth</requirement> | 7 <version_command>bwameth.py --version</version_command> |
| 8 </requirements> | 8 <command detect_errors="aggressive"> |
| 9 <stdio> | |
| 10 <exit_code range="1:" /> | |
| 11 <exit_code range=":-1" /> | |
| 12 <regex match="Error:" /> | |
| 13 <regex match="Exception:" /> | |
| 14 <regex match="Exception :" /> | |
| 15 </stdio> | |
| 16 <version_command>bwameth.py --version</version_command> | |
| 17 <command> | |
| 18 <![CDATA[ | 9 <![CDATA[ |
| 19 #if $referenceSource.source != "indexed": | 10 #if $referenceSource.source != "indexed": |
| 20 mkdir index_dir && | 11 mkdir index_dir && |
| 21 ln -s '$referenceSource.reference' index_dir/genome.fa && | 12 ln -s '$referenceSource.reference' index_dir/genome.fa && |
| 22 bwameth.py index index_dir/genome.fa && | 13 bwameth.py index index_dir/genome.fa && |
| 25 #set index=$referenceSource.index.fields.path | 16 #set index=$referenceSource.index.fields.path |
| 26 #end if | 17 #end if |
| 27 | 18 |
| 28 bwameth.py | 19 bwameth.py |
| 29 -t "\${GALAXY_SLOTS:-4}" | 20 -t "\${GALAXY_SLOTS:-4}" |
| 30 --reference ${index} | 21 --reference "${index}" |
| 31 | 22 |
| 32 #if str($readGroup).strip() != "": | 23 #if str($readGroup).strip() != "": |
| 33 --read-group "${readGroup}" | 24 --read-group "${readGroup}" |
| 34 #end if | 25 #end if |
| 35 | 26 |
| 36 #if $single_or_paired.single_or_paired_opts == 'single': | 27 #if $single_or_paired.single_or_paired_opts == 'single': |
| 37 $single_or_paired.input_singles | 28 $single_or_paired.input_singles |
| 29 #elif $single_or_paired.single_or_paired_opts == 'paired': | |
| 30 $single_or_paired.input_mate1 $single_or_paired.input_mate2 | |
| 38 #else: | 31 #else: |
| 39 $single_or_paired.input_mate1 $single_or_paired.input_mate2 | 32 $single_or_paired.input_mate1.forward $single_or_paired.input_mate1.reverse |
| 40 #end if | 33 #end if |
| 41 | samtools view -u - | samtools sort -@ "\${GALAXY_SLOTS:-4}" - output | 34 | samtools view -u - | samtools sort -@ "\${GALAXY_SLOTS:-4}" -o output.bam - |
| 42 ]]> | 35 ]]> |
| 43 </command> | 36 </command> |
| 44 <inputs> | 37 <inputs> |
| 45 <conditional name="referenceSource"> | 38 <conditional name="referenceSource"> |
| 46 <param name="source" type="select" label="Select a genome reference from your history or a built-in index?"> | 39 <param name="source" type="select" label="Select a genome reference from your history or a built-in index?"> |
| 47 <option value="history" selected="True">Use one from the history</option> | 40 <option value="history" selected="True">Use one from the history</option> |
| 48 <option value="indexed">Use a built-in index</option> | 41 <option value="indexed">Use a built-in index</option> |
| 49 </param> | 42 </param> |
| 50 <when value="history"> | 43 <when value="history"> |
| 51 <param name="reference" type="data" format="fasta" metadata_name="dbkey" label="Select a genome" help="in FASTA format" /> | 44 <param name="reference" type="data" format="fasta" metadata_name="dbkey" label="Select a genome" help="in FASTA format" /> |
| 52 </when> | 45 </when> |
| 53 <when value="indexed"> | 46 <when value="indexed"> |
| 54 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact your Galaxy admin"> | 47 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact your Galaxy admin"> |
| 55 <options from_data_table="bwameth_indexes"> | 48 <options from_data_table="bwameth_indexes"> |
| 56 <filter type="sort_by" column="2"/> | 49 <filter type="sort_by" column="2"/> |
| 57 <validator type="no_options" message="No indexes are available for the selected input dataset"/> | 50 <validator type="no_options" message="No indexes are available for the selected input dataset"/> |
| 58 </options> | 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 <option value="paired_collection">Paired-end Dataset Collection</option> | |
| 61 </param> | |
| 62 <when value="single"> | |
| 63 <param name="input_singles" type="data" format="fastqsanger" label="FASTQ" help="FASTQ file." /> | |
| 64 </when> | |
| 65 <when value="paired"> | |
| 66 <param name="input_mate1" type="data" format="fastqsanger" label="First read in pair" help="FASTQ file." /> | |
| 67 <param name="input_mate2" type="data" format="fastqsanger" label="Second read in pair" help="FASTQ file." /> | |
| 68 </when> | |
| 69 <when value="paired_collection"> | |
| 70 <param name="input_mate1" type="data_collection" collection_type="paired" format="fastqsanger" label="FASTQ paired dataset" help="Must have a fastqsanger datatype." /> | |
| 71 </when> | |
| 72 </conditional> | |
| 73 <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'"> | |
| 74 <sanitizer sanitize="False"/> | |
| 59 </param> | 75 </param> |
| 60 </when> | 76 </inputs> |
| 61 </conditional> | 77 <outputs> |
| 62 | 78 <data name="output" format="bam" from_work_dir="output.bam" label="${tool.name} on ${on_string}" /> |
| 63 <conditional name="single_or_paired"> | 79 </outputs> |
| 64 <param name="single_or_paired_opts" type="select" label="Is this library mate-paired?"> | 80 <tests> |
| 65 <option value="single">Single-end</option> | 81 <test> |
| 66 <option value="paired">Paired-end</option> | 82 <param name="referenceSource" value="history" /> |
| 67 </param> | 83 <param name="reference" value="ref.fa.gz" /> |
| 68 <when value="single"> | 84 <param name="single_or_paired_opts" value="paired" /> |
| 69 <param name="input_singles" type="data" format="fastq" label="FASTQ" help="FASTQ file." /> | 85 <param name="input_mate1" value="t_R1.fastq.gz" /> |
| 70 </when> | 86 <param name="input_mate2" value="t_R2.fastq.gz" /> |
| 71 <when value="paired"> | 87 <output file="output.bam" ftype="bam" name="output" lines_diff="2"/> |
| 72 <param name="input_mate1" type="data" format="fastq" label="First read in pair" help="FASTQ file." /> | 88 </test> |
| 73 <param name="input_mate2" type="data" format="fastq" label="Second read in pair" help="FASTQ file." /> | 89 <test> |
| 74 </when> | 90 <param name="referenceSource" value="history" /> |
| 75 </conditional> | 91 <param name="reference" value="ref.fa.gz" /> |
| 76 <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'"> | 92 <param name="single_or_paired_opts" value="paired_collection" /> |
| 77 <sanitizer sanitize="False"/> | 93 <param name="input_mate1"> |
| 78 </param> | 94 <collection type="paired"> |
| 79 </inputs> | 95 <element name="forward" value="t_R1.fastq.gz" /> |
| 80 <outputs> | 96 <element name="reverse" value="t_R2.fastq.gz" /> |
| 81 <data name="output" format="bam" from_work_dir="output.bam" label="${tool.name} on ${on_string}" /> | 97 </collection> |
| 82 </outputs> | 98 </param> |
| 83 <tests> | 99 <output file="output.bam" ftype="bam" name="output" lines_diff="2"/> |
| 84 <test> | 100 </test> |
| 85 <param name="referenceSource" value="history" /> | 101 </tests> |
| 86 <param name="reference" value="ref.fa.gz" /> | 102 <help> |
| 87 <param name="single_or_paired_opts" value="paired" /> | |
| 88 <param name="input_mate1" value="t_R1.fastq.gz" /> | |
| 89 <param name="input_mate2" value="t_R2.fastq.gz" /> | |
| 90 <output file="output.bam" ftype="bam" name="output" lines_diff="2"/> | |
| 91 </test> | |
| 92 </tests> | |
| 93 <help> | |
| 94 <![CDATA[ | 103 <![CDATA[ |
| 95 | 104 |
| 96 **What it does** | 105 **What it does** |
| 97 | 106 |
| 98 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. | 107 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. |
| 99 ]]> | 108 ]]> |
| 100 </help> | 109 </help> |
| 110 <citations> | |
| 111 <citation type="bibtex">@misc{1401.1129, | |
| 112 Author = {Brent S. Pedersen and Kenneth Eyring and Subhajyoti De and Ivana V. Yang and David A. Schwartz}, | |
| 113 Title = {Fast and accurate alignment of long bisulfite-seq reads}, | |
| 114 Year = {2014}, | |
| 115 Eprint = {arXiv:1401.1129}, | |
| 116 }</citation> | |
| 117 </citations> | |
| 101 </tool> | 118 </tool> |
