Mercurial > repos > devteam > freebayes
annotate leftalign.xml @ 6:3aacf7637e02 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:40:47 -0500 |
parents | c171daf263dd |
children | c07ad8a9c701 |
rev | line source |
---|---|
3
9f3d6c3098ac
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
2 <tool id="bamleftalign" name="BamLeftAlign" version="@DEPENDENCY_VERSION@-1"> |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
3 <description> indels in BAM datasets</description> |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
4 <macros> |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
5 <import>macros.xml</import> |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
6 </macros> |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
7 <requirements> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
8 <requirement type="package" version="1.0.2.29">freebayes</requirement> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
9 <requirement type="package" version="0.1.19">samtools</requirement> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
10 </requirements> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
11 <stdio> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
12 <exit_code range="1:" /> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
13 </stdio> |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
14 <command><![CDATA[ |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
15 ##set up input files |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
16 #set $reference_fasta_filename = "localref.fa" |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
17 #if str( $reference_source.reference_source_selector ) == "history": |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
18 ln -s '${reference_source.ref_file}' '${reference_fasta_filename}' && |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
19 samtools faidx "${reference_fasta_filename}" 2>&1 || echo "Error running samtools faidx for leftalign" >&2 && |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
20 #else: |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
21 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path ) |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
22 #end if |
3
9f3d6c3098ac
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
23 |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
24 ##start leftalign commandline |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
25 cat '${input_bam}' | |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
26 bamleftalign |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
27 --fasta-reference '${reference_fasta_filename}' |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
28 -c |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
29 --max-iterations "${iterations}" |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
30 > '${output_bam}' |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
31 ]]></command> |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
32 <inputs> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
33 <conditional name="reference_source"> |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
34 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome"> |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
35 <option value="cached">Locally cached</option> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
36 <option value="history">History</option> |
3
9f3d6c3098ac
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
37 </param> |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
38 <when value="cached"> |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
39 <param name="input_bam" type="data" format="bam" label="Select alignment file in BAM format"> |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
40 <validator type="unspecified_build" /> |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
41 <validator type="dataset_metadata_in_data_table" table_name="fasta_indexes" metadata_name="dbkey" |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
42 metadata_column="1" message="Sequences are not currently available for the specified build." /> |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
43 </param> |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
44 <param name="ref_file" type="select" label="Using reference genome" argument="--fasta-reference"> |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
45 <options from_data_table="fasta_indexes"></options> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
46 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
47 </param> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
48 </when> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
49 <when value="history"> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
50 <param name="input_bam" type="data" format="bam" label="BAM dataset to re-align" /> |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
51 <param name="ref_file" type="data" format="fasta" label="Using reference file" argument="--fasta-reference" /> |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
52 </when> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
53 </conditional> |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
54 <param name="iterations" type="integer" value="5" label="Maximum number of iterations" |
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
55 help="Iterate the left-realignment no more than this many times" argument="--max-iterations" /> |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
56 </inputs> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
57 <outputs> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
58 <data format="bam" name="output_bam" label="${tool.name} on ${on_string} (alignments)" /> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
59 </outputs> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
60 <tests> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
61 <test> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
62 <param name="reference_source_selector" value="history" /> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
63 <param name="ref_file" ftype="fasta" value="leftalign.fa"/> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
64 <param name="input_bam" ftype="bam" value="left-align-input.bam"/> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
65 <param name="iterations" value="5"/> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
66 <output name="output_bam" file="left-align-output.bam" /> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
67 </test> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
68 </tests> |
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
69 <help> |
3
9f3d6c3098ac
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
70 |
9f3d6c3098ac
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
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. |
9f3d6c3098ac
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
72 |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
73 This is leftalign utility from FreeBayes package. |
4
c171daf263dd
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit cf4a70e780f104bc724323912b3b87fb37f887dd
devteam
parents:
3
diff
changeset
|
74 </help> |
6
3aacf7637e02
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freebayes commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
4
diff
changeset
|
75 <expand macro="citations" /> |
3
9f3d6c3098ac
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/freebayes commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
76 </tool> |