Debian Codegraph @

docs/content/tools/bed12tobed6.rst

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