annotate tools/maf/maf_to_interval.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="MAF_To_Interval1" name="MAF to Interval" force_history_refresh="True">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>Converts a MAF formatted file to the Interval format</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">maf_to_interval.py $input1 $out_file1 $out_file1.id $__new_file_path__ $input1.dbkey $species $input1.metadata.species $complete_blocks $remove_gaps</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param format="maf" name="input1" type="data" label="MAF file to convert"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param name="species" type="select" label="Select additional species" display="checkboxes" multiple="true" help="The species matching the dbkey of the alignment is always included. A separate history item will be created for each species.">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <options>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <filter type="data_meta" ref="input1" key="species" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <filter type="remove_value" meta_ref="input1" key="dbkey" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 </options>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <param name="complete_blocks" type="select" label="Exclude blocks which have a species missing">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <option value="partial_allowed">include blocks with missing species</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <option value="partial_disallowed">exclude blocks with missing species</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <param name="remove_gaps" type="select" label="Remove Gap characters from sequences">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <option value="keep_gaps">keep gaps</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <option value="remove_gaps">remove gaps</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <data format="interval" name="out_file1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <param name="input1" value="4.maf" dbkey="hg17"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <param name="complete_blocks" value="partial_disallowed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <param name="remove_gaps" value="keep_gaps"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <param name="species" value="panTro1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <output name="out_file1" file="maf_to_interval_out_hg17.interval"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <output name="out_file1" file="maf_to_interval_out_panTro1.interval"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 This tool converts every MAF block to a set of genomic intervals describing the position of that alignment block within a corresponding genome. Sequences from aligning species are also included in the output.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 The interface for this tool contains several options:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 * **MAF file to convert**. Choose multiple alignments from history to be converted to BED format.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 * **Choose species**. Choose additional species from the alignment to be included in the output
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 * **Exclude blocks which have a species missing**. if an alignment block does not contain any one of the species found in the alignment set and this option is set to **exclude blocks with missing species**, then coordinates of such a block **will not** be included in the output (see **Example 2** below).
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 * **Remove Gap characters from sequences**. Gaps can be removed from sequences before they are output.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 **Example 1**: **Include only reference genome** (hg18 in this case) and **include blocks with missing species**:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 For the following alignment::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 ##maf version=1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 a score=68686.000000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 s hg18.chr20 56827368 75 + 62435964 GACAGGGTGCATCTGGGAGGG---CCTGCCGGGCCTTTA-TTCAACACTAGATACGCCCCATCTCCAATTCTAATGGAC-
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 s panTro2.chr20 56528685 75 + 62293572 GACAGGGTGCATCTGAGAGGG---CCTGCCAGGCCTTTA-TTCAACACTAGATACGCCCCATCTCCAATTCTAATGGAC-
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 s rheMac2.chr10 89144112 69 - 94855758 GACAGGGTGCATCTGAGAGGG---CCTGCTGGGCCTTTG-TTCAAAACTAGATATGCCCCAACTCCAATTCTA-------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 s mm8.chr2 173910832 61 + 181976762 AGAAGGATCCACCT------------TGCTGGGCCTCTGCTCCAGCAAGACCCACCTCCCAACTCAAATGCCC-------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 s canFam2.chr24 46551822 67 + 50763139 CG------GCGTCTGTAAGGGGCCACCGCCCGGCCTGTG-CTCAAAGCTACAAATGACTCAACTCCCAACCGA------C
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 a score=10289.000000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 s hg18.chr20 56827443 37 + 62435964 ATGTGCAGAAAATGTGATACAGAAACCTGCAGAGCAG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 s panTro2.chr20 56528760 37 + 62293572 ATGTGCAGAAAATGTGATACAGAAACCTGCAGAGCAG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 s rheMac2.chr10 89144181 37 - 94855758 ATGTGCGGAAAATGTGATACAGAAACCTGCAGAGCAG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 the tool will create **a single** history item containing the following (**note** the name field is numbered iteratively: hg18_0_0, hg18_1_0 etc. where the first number is the block number and the second number is the iteration through the block (if a species appears twice in a block, that interval will be repeated) and sequences for each species are included in the order specified in the header: the field is left empty when no sequence is available for that species)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 #chrom start end strand score name canFam2 hg18 mm8 panTro2 rheMac2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 chr20 56827368 56827443 + 68686.0 hg18_0_0 CG------GCGTCTGTAAGGGGCCACCGCCCGGCCTGTG-CTCAAAGCTACAAATGACTCAACTCCCAACCGA------C GACAGGGTGCATCTGGGAGGG---CCTGCCGGGCCTTTA-TTCAACACTAGATACGCCCCATCTCCAATTCTAATGGAC- AGAAGGATCCACCT------------TGCTGGGCCTCTGCTCCAGCAAGACCCACCTCCCAACTCAAATGCCC------- GACAGGGTGCATCTGAGAGGG---CCTGCCAGGCCTTTA-TTCAACACTAGATACGCCCCATCTCCAATTCTAATGGAC- GACAGGGTGCATCTGAGAGGG---CCTGCTGGGCCTTTG-TTCAAAACTAGATATGCCCCAACTCCAATTCTA-------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 chr20 56827443 56827480 + 10289.0 hg18_1_0 ATGTGCAGAAAATGTGATACAGAAACCTGCAGAGCAG ATGTGCAGAAAATGTGATACAGAAACCTGCAGAGCAG ATGTGCGGAAAATGTGATACAGAAACCTGCAGAGCAG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 **Example 2**: **Include hg18 and mm8** and **exclude blocks with missing species**:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 For the following alignment::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 ##maf version=1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 a score=68686.000000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 s hg18.chr20 56827368 75 + 62435964 GACAGGGTGCATCTGGGAGGG---CCTGCCGGGCCTTTA-TTCAACACTAGATACGCCCCATCTCCAATTCTAATGGAC-
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 s panTro2.chr20 56528685 75 + 62293572 GACAGGGTGCATCTGAGAGGG---CCTGCCAGGCCTTTA-TTCAACACTAGATACGCCCCATCTCCAATTCTAATGGAC-
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 s rheMac2.chr10 89144112 69 - 94855758 GACAGGGTGCATCTGAGAGGG---CCTGCTGGGCCTTTG-TTCAAAACTAGATATGCCCCAACTCCAATTCTA-------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 s mm8.chr2 173910832 61 + 181976762 AGAAGGATCCACCT------------TGCTGGGCCTCTGCTCCAGCAAGACCCACCTCCCAACTCAAATGCCC-------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 s canFam2.chr24 46551822 67 + 50763139 CG------GCGTCTGTAAGGGGCCACCGCCCGGCCTGTG-CTCAAAGCTACAAATGACTCAACTCCCAACCGA------C
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 a score=10289.000000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 s hg18.chr20 56827443 37 + 62435964 ATGTGCAGAAAATGTGATACAGAAACCTGCAGAGCAG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 s panTro2.chr20 56528760 37 + 62293572 ATGTGCAGAAAATGTGATACAGAAACCTGCAGAGCAG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 s rheMac2.chr10 89144181 37 - 94855758 ATGTGCGGAAAATGTGATACAGAAACCTGCAGAGCAG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 the tool will create **two** history items (one for hg18 and one for mm8) containing the following (**note** that both history items contain only one line describing the first alignment block. The second MAF block is not included in the output because it does not contain mm8):
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 History item **1** (for hg18)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 #chrom start end strand score name canFam2 hg18 mm8 panTro2 rheMac2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 chr20 56827368 56827443 + 68686.0 hg18_0_0 CG------GCGTCTGTAAGGGGCCACCGCCCGGCCTGTG-CTCAAAGCTACAAATGACTCAACTCCCAACCGA------C GACAGGGTGCATCTGGGAGGG---CCTGCCGGGCCTTTA-TTCAACACTAGATACGCCCCATCTCCAATTCTAATGGAC- AGAAGGATCCACCT------------TGCTGGGCCTCTGCTCCAGCAAGACCCACCTCCCAACTCAAATGCCC------- GACAGGGTGCATCTGAGAGGG---CCTGCCAGGCCTTTA-TTCAACACTAGATACGCCCCATCTCCAATTCTAATGGAC- GACAGGGTGCATCTGAGAGGG---CCTGCTGGGCCTTTG-TTCAAAACTAGATATGCCCCAACTCCAATTCTA-------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 History item **2** (for mm8)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 #chrom start end strand score name canFam2 hg18 mm8 panTro2 rheMac2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 chr2 173910832 173910893 + 68686.0 mm8_0_0 CG------GCGTCTGTAAGGGGCCACCGCCCGGCCTGTG-CTCAAAGCTACAAATGACTCAACTCCCAACCGA------C GACAGGGTGCATCTGGGAGGG---CCTGCCGGGCCTTTA-TTCAACACTAGATACGCCCCATCTCCAATTCTAATGGAC- AGAAGGATCCACCT------------TGCTGGGCCTCTGCTCCAGCAAGACCCACCTCCCAACTCAAATGCCC------- GACAGGGTGCATCTGAGAGGG---CCTGCCAGGCCTTTA-TTCAACACTAGATACGCCCCATCTCCAATTCTAATGGAC- GACAGGGTGCATCTGAGAGGG---CCTGCTGGGCCTTTG-TTCAAAACTAGATATGCCCCAACTCCAATTCTA-------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 -------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 **About formats**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 **MAF format** multiple alignment format file. This format stores multiple alignments at the DNA level between entire genomes.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 - The .maf format is line-oriented. Each multiple alignment ends with a blank line.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 - Each sequence in an alignment is on a single line.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117 - Lines starting with # are considered to be comments.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 - Each multiple alignment is in a separate paragraph that begins with an "a" line and contains an "s" line for each sequence in the multiple alignment.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 - Some MAF files may contain two optional line types:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 - An "i" line containing information about what is in the aligned species DNA before and after the immediately preceding "s" line;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 - An "e" line containing information about the size of the gap between the alignments that span the current block.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 **Citation**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128 If you use this tool, please cite `Blankenberg D, Taylor J, Nekrutenko A; The Galaxy Team. Making whole genome multiple alignments usable for biologists. Bioinformatics. 2011 Sep 1;27(17):2426-2428. &lt;http://www.ncbi.nlm.nih.gov/pubmed/21775304&gt;`_
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
130
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
132 </tool>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
133