comparison leftalign.xml @ 25:bf27106652f3 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
author iuc
date Wed, 08 Feb 2017 12:45:05 -0500
parents 52aed7d9ed2b
children 977a5301b66d
comparison
equal deleted inserted replaced
24:da6e10dee68b 25:bf27106652f3
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 <tool id="bamleftalign" name="BamLeftAlign" version="1.0.2.29"> 2 <tool id="bamleftalign" name="BamLeftAlign" version="@DEPENDENCY_VERSION@-1">
3 <description> indels in BAM datasets</description> 3 <description> indels in BAM datasets</description>
4 <macros>
5 <import>macros.xml</import>
6 </macros>
4 <requirements> 7 <requirements>
5 <requirement type="package" version="1.0.2.29">freebayes</requirement> 8 <requirement type="package" version="1.0.2.29">freebayes</requirement>
6 <requirement type="package" version="0.1.19">samtools</requirement> 9 <requirement type="package" version="0.1.19">samtools</requirement>
7 </requirements> 10 </requirements>
8 <stdio> 11 <stdio>
9 <exit_code range="1:" /> 12 <exit_code range="1:" />
10 </stdio> 13 </stdio>
11 <command> 14 <command><![CDATA[
12 ##set up input files 15 ##set up input files
13 #set $reference_fasta_filename = "localref.fa" 16 #set $reference_fasta_filename = "localref.fa"
14 #if str( $reference_source.reference_source_selector ) == "history": 17 #if str( $reference_source.reference_source_selector ) == "history":
15 ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" &amp;&amp; 18 ln -s '${reference_source.ref_file}' '${reference_fasta_filename}' &&
16 samtools faidx "${reference_fasta_filename}" 2&gt;&amp;1 || echo "Error running samtools faidx for leftalign" &gt;&amp;2 &amp;&amp; 19 samtools faidx "${reference_fasta_filename}" 2>&1 || echo "Error running samtools faidx for leftalign" >&2 &&
17 #else: 20 #else:
18 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path ) 21 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
19 #end if 22 #end if
20 23
21 ##finished setting up inputs
22
23 ##start leftalign commandline 24 ##start leftalign commandline
24 samtools view -bh "${input_bam}" | bamleftalign 25 cat '${input_bam}' |
25 --fasta-reference "${reference_fasta_filename}" 26 bamleftalign
26 -c 27 --fasta-reference '${reference_fasta_filename}'
27 --max-iterations "${iterations}" 28 -c
28 ##outputs 29 --max-iterations "${iterations}"
29 > "${output_bam}" 30 > '${output_bam}'
30 </command> 31 ]]></command>
31 <inputs> 32 <inputs>
32 <conditional name="reference_source"> 33 <conditional name="reference_source">
33 <param name="reference_source_selector" type="select" label="Choose the source for the reference list"> 34 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
34 <option value="cached">Locally cached</option> 35 <option value="cached">Locally cached</option>
35 <option value="history">History</option> 36 <option value="history">History</option>
36 </param> 37 </param>
37 <when value="cached"> 38 <when value="cached">
38 <param name="input_bam" type="data" format="bam" label="Select BAM dataset to leftalign"> 39 <param name="input_bam" type="data" format="bam" label="Select alignment file in BAM format">
39 <validator type="unspecified_build" /> 40 <validator type="unspecified_build" />
40 <validator type="dataset_metadata_in_data_table" table_name="fasta_indexes" metadata_name="dbkey" metadata_column="1" message="Sequences are not currently available for the specified build." /> 41 <validator type="dataset_metadata_in_data_table" table_name="fasta_indexes" metadata_name="dbkey"
42 metadata_column="1" message="Sequences are not currently available for the specified build." />
41 </param> 43 </param>
42 <param name="ref_file" type="select" label="Using reference genome"> 44 <param name="ref_file" type="select" label="Using reference genome" argument="--fasta-reference">
43 <options from_data_table="fasta_indexes"></options> 45 <options from_data_table="fasta_indexes"></options>
44 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> 46 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
45 </param> 47 </param>
46 </when> 48 </when>
47 <when value="history"> 49 <when value="history">
48 <param name="input_bam" type="data" format="bam" label="BAM dataset to re-align" /> 50 <param name="input_bam" type="data" format="bam" label="BAM dataset to re-align" />
49 <param name="ref_file" type="data" format="fasta" label="Using reference file" /> 51 <param name="ref_file" type="data" format="fasta" label="Using reference file" argument="--fasta-reference" />
50 </when> 52 </when>
51 </conditional> 53 </conditional>
52 <param name="iterations" type="integer" value="5" label="Maximum number of iterations" help="Iterate the left-realignment no more than this many times" /> 54 <param name="iterations" type="integer" value="5" label="Maximum number of iterations"
55 help="Iterate the left-realignment no more than this many times" argument="--max-iterations" />
53 </inputs> 56 </inputs>
54 <outputs> 57 <outputs>
55 <data format="bam" name="output_bam" label="${tool.name} on ${on_string} (alignments)" /> 58 <data format="bam" name="output_bam" label="${tool.name} on ${on_string} (alignments)" />
56 </outputs> 59 </outputs>
57 <tests> 60 <tests>
65 </tests> 68 </tests>
66 <help> 69 <help>
67 70
68 When calling indels, it is important to homogenize the positional distribution of insertions and deletions in the input by using left realignment. Left realignment will place all indels in homopolymer and microsatellite repeats at the same position, provided that doing so does not introduce mismatches between the read and reference other than the indel. This method is computationally inexpensive and handles the most common classes of alignment inconsistency. 71 When calling indels, it is important to homogenize the positional distribution of insertions and deletions in the input by using left realignment. Left realignment will place all indels in homopolymer and microsatellite repeats at the same position, provided that doing so does not introduce mismatches between the read and reference other than the indel. This method is computationally inexpensive and handles the most common classes of alignment inconsistency.
69 72
70 This is leftalign utility from FreeBayes package developed and maintained by Erik Garrison (https://github.com/ekg/freebayes). 73 This is leftalign utility from FreeBayes package.
71 </help> 74 </help>
72 <citations> 75 <expand macro="citations" />
73 <citation type="bibtex">
74 @misc{1207.3907,
75 Author = {Erik Garrison},
76 Title = {Haplotype-based variant detection from short-read sequencing},
77 Year = {2012},
78 Eprint = {arXiv:1207.3907},
79 url = {http://arxiv.org/abs/1207.3907}
80 }
81 </citation>
82 </citations>
83 </tool> 76 </tool>