File: bed12tobed6.rst

package info (click to toggle)
bedtools 2.26.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 55,328 kB
  • sloc: cpp: 37,989; sh: 6,930; makefile: 2,225; python: 163
file content (50 lines) | stat: -rwxr-xr-x 2,500 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.. _bed12tobed6:

###############
*bed12tobed6*
###############
**bed12ToBed6** is a convenience tool that converts BED features in BED12 (a.k.a. "blocked" BED
features such as genes) to discrete BED6 features. For example, in the case of a gene with six exons,
bed12ToBed6 would create six separate BED6 features (i.e., one for each exon).


==========================================================================
Usage and option summary
==========================================================================
Usage:

::
  bed12ToBed6 [OPTIONS] -i <BED12>
  
===========================      ===============================================================================================================================================================================================================
 Option                           Description
===========================      ===============================================================================================================================================================================================================
**-i**				             The BED12 file that should be split into discrete BED6 features. *Use "stdin" when using piped input*.
===========================      ===============================================================================================================================================================================================================




==========================================================================
Default behavior
==========================================================================
Figure:

::
  head data/knownGene.hg18.chr21.bed | tail -n 3
  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,
  chr21 10080031  10081687   uc002yiw.1  0  -  10080031  1 0 0 8 0 0 3 1  0     2   200,91,    0,1565,
  chr21 10081660  10120796   uc002yix.2  0  -  10081660  1 0 0 8 1 6 6 0  0     3   27,101,223,0,37756,38913,
  
  head data/knownGene.hg18.chr21.bed | tail -n 3 | bed12ToBed6 -i stdin
  chr21 10079666  10080194  uc002yiv.1 0  -
  chr21 10081596  10081687  uc002yiv.1 0  -
  chr21 10119416  10119517  uc002yiv.1 0  -
  chr21 10120593  10120808  uc002yiv.1 0  -
  chr21 10080031  10080231  uc002yiw.1 0  -
  chr21 10081596  10081687  uc002yiw.1 0  -
  chr21 10081660  10081687  uc002yix.2 0  -
  chr21 10119416  10119517  uc002yix.2 0  -
  chr21 10120573  10120796  uc002yix.2 0  -