4
**bed12ToBed6** is a convenience tool that converts BED features in BED12 (a.k.a. "blocked" BED
5
features such as genes) to discrete BED6 features. For example, in the case of a gene with six exons,
6
bed12ToBed6 would create six separate BED6 features (i.e., one for each exon).
9
==========================================================================
10
5.21.1 Usage and option summary
11
==========================================================================
14
bed12ToBed6 [OPTIONS] -i <BED12>
16
=========================== ===============================================================================================================================================================================================================
18
=========================== ===============================================================================================================================================================================================================
19
**-i** The BED12 file that should be split into discrete BED6 features. *Use "stdin" when using piped input*.
20
=========================== ===============================================================================================================================================================================================================
25
==========================================================================
26
5.21.2 Default behavior
27
==========================================================================
30
head data/knownGene.hg18.chr21.bed | tail -n 3
31
chr21 10079666 10120808 uc002yiv.1 0 - 10081686 1 0 1 2 0 6 0 8
32
0 4 528,91,101,215, 0,1930,39750,40927,
33
chr21 10080031 10081687 uc002yiw.1 0 - 10080031 1 0 0 8 0 0 3 1
35
chr21 10081660 10120796 uc002yix.2 0 - 10081660 1 0 0 8 1 6 6 0
36
0 3 27,101,223,0,37756,38913,
38
head data/knownGene.hg18.chr21.bed | tail -n 3 | bed12ToBed6 -i stdin
39
chr21 10079666 10080194 uc002yiv.1 0 -
40
chr21 10081596 10081687 uc002yiv.1 0 -
41
chr21 10119416 10119517 uc002yiv.1 0 -
42
chr21 10120593 10120808 uc002yiv.1 0 -
43
chr21 10080031 10080231 uc002yiw.1 0 -
44
chr21 10081596 10081687 uc002yiw.1 0 -
45
chr21 10081660 10081687 uc002yix.2 0 -
46
chr21 10119416 10119517 uc002yix.2 0 -
47
chr21 10120573 10120796 uc002yix.2 0 -