Mercurial > repos > devteam > bwa
annotate bwa_macros.xml @ 26:2477830927ec draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
author | iuc |
---|---|
date | Fri, 17 May 2024 21:09:07 +0000 |
parents | 3fe632431b68 |
children |
rev | line source |
---|---|
0 | 1 <macros> |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
2 <import>read_group_macros.xml</import> |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
3 |
26
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
4 <token name="@TOOL_VERSION@">0.7.18</token> |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
5 |
21
8d2a528a9513
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 9bbf35d7f47e5ab6b78248c9907b71446d4e7b0c
iuc
parents:
20
diff
changeset
|
6 <token name="@pipefail@"><![CDATA[set -o | grep -q pipefail && set -o pipefail;]]></token> |
8d2a528a9513
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 9bbf35d7f47e5ab6b78248c9907b71446d4e7b0c
iuc
parents:
20
diff
changeset
|
7 |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
8 <token name="@set_rg_string@"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
9 #set $rg_string = "@RG\\tID:" + str($rg_id) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
10 #set $rg_string += $format_read_group("\\tSM:", $rg_sm) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
11 #set $rg_string += $format_read_group("\\tPL:", $rg_pl) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
12 #set $rg_string += $format_read_group("\\tLB:", $rg_lb) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
13 #set $rg_string += $format_read_group("\\tCN:", $rg_cn) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
14 #set $rg_string += $format_read_group("\\tDS:", $rg_ds) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
15 #set $rg_string += $format_read_group("\\tDT:", $rg_dt) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
16 #set $rg_string += $format_read_group("\\tFO:", $rg_fo) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
17 #set $rg_string += $format_read_group("\\tKS:", $rg_ks) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
18 #set $rg_string += $format_read_group("\\tPG:", $rg_pg) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
19 #set $rg_string += $format_read_group("\\tPI:", $rg_pi) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
20 #set $rg_string += $format_read_group("\\tPU:", $rg_pu) |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
21 </token> |
6
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
22 |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
23 <token name="@set_reference_fasta_filename@"><![CDATA[ |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
24 #if str( $reference_source.reference_source_selector ) == "history": |
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
25 #set $reference_fasta_filename = "localref.fa" |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
26 ln -s '${reference_source.ref_file}' '${reference_fasta_filename}' && |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
27 bwa index |
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
28 #if str($reference_source.index_a) != 'auto' |
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
29 -a ${reference_source.index_a} |
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
30 #end if |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
31 '${reference_fasta_filename}' && |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
32 #else: |
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
33 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path ) |
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
34 #end if |
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
35 ]]></token> |
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
36 |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
37 <xml name="requirements"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
38 <requirements> |
26
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
39 <requirement type="package" version="@TOOL_VERSION@">bwa</requirement> |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
40 <requirement type="package" version="1.20">samtools</requirement> |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
41 </requirements> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
42 </xml> |
7
d8c9597bfb09
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit ddb8bdb9d62399f086b06b3469450d0aad2113bd
devteam
parents:
6
diff
changeset
|
43 |
26
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
44 <xml name="bio_tools"> |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
45 <xrefs> |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
46 <xref type="bio.tools">bwa</xref> |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
47 </xrefs> |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
48 </xml> |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
49 |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
50 <xml name="stdio"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
51 <stdio> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
52 <exit_code range="1:" /> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
53 <exit_code range=":-1" /> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
54 <regex match="Error:" /> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
55 <regex match="Exception:" /> |
19
dfd8b7f78c37
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit a161a3a7e9149a5ba63fe20f435cd2f275dce4c8
iuc
parents:
18
diff
changeset
|
56 <regex match="\[bns_restore_core\] Parse error reading" /> |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
57 </stdio> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
58 </xml> |
6
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
59 |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
60 <macro name="reference_source_conditional"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
61 <conditional name="reference_source"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
62 <param name="reference_source_selector" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options. See `Indexes` section of help below"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
63 <option value="cached">Use a built-in genome index</option> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
64 <option value="history">Use a genome from history and build index</option> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
65 </param> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
66 <when value="cached"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
67 <param name="ref_file" type="select" label="Using reference genome" help="Select genome from the list"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
68 <options from_data_table="bwa_mem_indexes"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
69 <filter type="sort_by" column="2" /> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
70 <validator type="no_options" message="No indexes are available" /> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
71 </options> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
72 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
73 </param> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
74 </when> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
75 <when value="history"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
76 <param name="ref_file" type="data" format="fasta" label="Use the following dataset as the reference sequence" help="You can upload a FASTA sequence to the history and use it as reference" /> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
77 <param name="index_a" type="select" label="Algorithm for constructing the BWT index" help="(-a)"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
78 <option value="auto">Auto. Let BWA decide the best algorithm to use</option> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
79 <option value="is">IS linear-time algorithm for constructing suffix array. It requires 5.37N memory where N is the size of the database. IS is moderately fast, but does not work with database larger than 2GB</option> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
80 <option value="bwtsw">BWT-SW algorithm. This method works also with big genomes</option> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
81 </param> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
82 </when> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
83 </conditional> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
84 </macro> |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
9
diff
changeset
|
85 |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
86 <macro name="dbKeyActionsBwaMem"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
87 <expand macro="dbKeyActions"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
88 <option type="from_data_table" name="bwa_mem_indexes" column="1" offset="0"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
89 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
90 <filter type="param_value" ref="reference_source.ref_file" column="0"/> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
91 </option> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
92 </expand> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
93 </macro> |
6
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
94 |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
95 <macro name="dbKeyActions"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
96 <actions> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
97 <conditional name="reference_source.reference_source_selector"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
98 <when value="cached"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
99 <action type="metadata" name="dbkey"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
100 <yield /> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
101 </action> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
102 </when> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
103 <when value="history"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
104 <action type="metadata" name="dbkey"> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
105 <option type="from_param" name="reference_source.ref_file" param_attribute="dbkey" /> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
106 </action> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
107 </when> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
108 </conditional> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
109 </actions> |
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
110 </macro> |
6
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
111 |
26
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
112 <token name="@ref_genomes@"> |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
113 **Indices: Selecting reference genomes for BWA** |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
114 |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
115 The Galaxy wrapper for BWA allows you to select between precomputed and user-defined indices for reference genomes |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
116 using the **Will you select a reference genome from your history or use a built-in index?** select box. |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
117 |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
118 This select box has two options: |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
119 |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
120 1. **Use a built-in genome index** |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
121 |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
122 With this option (which is the default), Galaxy provides you with a dropdown select menu populated with genomes that have been pre-indexed with the bwa index utility and are ready to map sequenced reads against. |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
123 |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
124 The collection of pre-indexed genomes is managed by the administrators of your Galaxy instance. If your genome of interest is missing and its impractical to use the second option below to work with it, consider contacting the support team for the Galaxy server you are working on to let them know that you would like to have an additional genome indexed. |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
125 |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
126 2. **Use a genome from history and build index** |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
127 |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
128 With this option, Galaxy provides you with a dropdown select menu populated with all FASTA formatted files listed in your current history. If you have uploaded your genome of interest into your history it will be shown there. |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
129 |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
130 Selecting a genome from this dropdown will cause Galaxy to index it transparently first using the `bwa index` command, and then map against it with `bwa aln`. |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
131 </token> |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
132 <token name="@RG@"> |
0 | 133 ----- |
134 | |
135 .. class:: warningmark | |
136 | |
137 **Read Groups are Important!** | |
138 | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
139 One of the recommended best practices in NGS analysis is adding read group information to BAM files. You can do this directly in BWA interface using the |
2 | 140 **Specify read group information?** widget. If you are not familiar with read groups you shold know that this is effectively a way to tag reads with an additional ID. |
0 | 141 This allows you to combine BAM files from, for example, multiple BWA runs into a single dataset. This significantly simplifies downstream processing as |
2 | 142 instead of dealing with multiple datasets you only have to handle only one. This is possible because the read group information allows you to identify |
23
3fe632431b68
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 777181bd04849dab271ee2cc95e45c182947d308"
iuc
parents:
21
diff
changeset
|
143 data from different experiments even if they are combined in one file. Many downstream analysis tools such as variant callers (e.g., FreeBayes or Naive Variant Caller |
3fe632431b68
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 777181bd04849dab271ee2cc95e45c182947d308"
iuc
parents:
21
diff
changeset
|
144 present in Galaxy) are aware of read groups and will automatically generate calls for each individual sample even if they are combined within a single file. |
0 | 145 |
146 **Description of read groups fields** | |
147 | |
148 (from GATK FAQ webpage): | |
149 | |
150 .. csv-table:: | |
151 :header-rows: 1 | |
152 | |
153 Tag,Importance,Definition,Meaning | |
154 "ID","Required","Read group identifier. Each @RG line must have a unique ID. The value of ID is used in the RG tags of alignment records. Must be unique among all read groups in header section. Read group IDs may be modified when merging SAM files in order to handle collisions.","Ideally, this should be a globally unique identify across all sequencing data in the world, such as the Illumina flowcell + lane name and number. Will be referenced by each read with the RG:Z field, allowing tools to determine the read group information associated with each read, including the sample from which the read came. Also, a read group is effectively treated as a separate run of the NGS instrument in tools like base quality score recalibration (a GATK component) -- all reads within a read group are assumed to come from the same instrument run and to therefore share the same error model." | |
155 "SM","Sample. Use pool name where a pool is being sequenced.","Required. As important as ID.","The name of the sample sequenced in this read group. GATK tools treat all read groups with the same SM value as containing sequencing data for the same sample. Therefore it's critical that the SM field be correctly specified, especially when using multi-sample tools like the Unified Genotyper (a GATK component)." | |
156 "PL","Platform/technology used to produce the read. Valid values: ILLUMINA, SOLID, LS454, HELICOS and PACBIO.","Important. Not currently used in the GATK, but was in the past, and may return. The only way to known the sequencing technology used to generate the sequencing data","It's a good idea to use this field." | |
157 "LB","DNA preparation library identify","Essential for MarkDuplicates","MarkDuplicates uses the LB field to determine which read groups might contain molecular duplicates, in case the same DNA library was sequenced on multiple lanes." | |
158 | |
159 | |
160 **Example of Read Group usage** | |
161 | |
162 Suppose we have a trio of samples: MOM, DAD, and KID. Each has two DNA libraries prepared, one with 400 bp inserts and another with 200 bp inserts. Each of these libraries is run on two lanes of an illumina hiseq, requiring 3 x 2 x 2 = 12 lanes of data. When the data come off the sequencer, we would create 12 BAM files, with the following @RG fields in the header:: | |
163 | |
164 Dad's data: | |
165 @RG ID:FLOWCELL1.LANE1 PL:illumina LB:LIB-DAD-1 SM:DAD PI:200 | |
166 @RG ID:FLOWCELL1.LANE2 PL:illumina LB:LIB-DAD-1 SM:DAD PI:200 | |
167 @RG ID:FLOWCELL1.LANE3 PL:illumina LB:LIB-DAD-2 SM:DAD PI:400 | |
168 @RG ID:FLOWCELL1.LANE4 PL:illumina LB:LIB-DAD-2 SM:DAD PI:400 | |
169 | |
170 Mom's data: | |
171 @RG ID:FLOWCELL1.LANE5 PL:illumina LB:LIB-MOM-1 SM:MOM PI:200 | |
172 @RG ID:FLOWCELL1.LANE6 PL:illumina LB:LIB-MOM-1 SM:MOM PI:200 | |
173 @RG ID:FLOWCELL1.LANE7 PL:illumina LB:LIB-MOM-2 SM:MOM PI:400 | |
174 @RG ID:FLOWCELL1.LANE8 PL:illumina LB:LIB-MOM-2 SM:MOM PI:400 | |
175 | |
176 Kid's data: | |
177 @RG ID:FLOWCELL2.LANE1 PL:illumina LB:LIB-KID-1 SM:KID PI:200 | |
178 @RG ID:FLOWCELL2.LANE2 PL:illumina LB:LIB-KID-1 SM:KID PI:200 | |
179 @RG ID:FLOWCELL2.LANE3 PL:illumina LB:LIB-KID-2 SM:KID PI:400 | |
180 @RG ID:FLOWCELL2.LANE4 PL:illumina LB:LIB-KID-2 SM:KID PI:400 | |
181 | |
182 Note the hierarchical relationship between read groups (unique for each lane) to libraries (sequenced on two lanes) and samples (across four lanes, two lanes for each library). | |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
183 </token> |
26
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
184 <token name="@links@"> |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
185 .. _BWA: https://github.com/lh3/bwa |
2477830927ec
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33
iuc
parents:
23
diff
changeset
|
186 .. _`BWA manual`: https://bio-bwa.sourceforge.net/bwa.shtml |
18
48f306c57611
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit c355891532cecaab6b3288a148a6b3bcb5973396
iuc
parents:
16
diff
changeset
|
187 </token> |
0 | 188 </macros> |