gtfToBed | R Documentation |
This function creates a matrix of gene annotations in bed format, based on the information given in an importet gtf table.
gtfToBed(gtf, correctBases=TRUE)
gtf |
An imported gtf table. |
correctBases |
Logical subtract 1 from bases |
After a gtf file was imported with importGTF
this function transforms it into a data.frame with bed formatting.
The option correctBases
adjusts the coordinates in the bed object according to the bed standard. The base counting
in gtf starts with 1, wheras in bed-files they start with 0.
A data.frame in bed format having the four columns Chr
, Start
, Stop
and Gene
Daniel Fischer
## Not run:
annotTrack <- read.table(file="Homo_sapiens.GRCh37.70.gtf",sep="\t")
annotBed <- gtfToBed(annotTrack)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.