Description Usage Arguments Details Value Author(s) Examples
This function creates a matrix of gene annotations in bed format, based on the information given in an importet gtf table.
1 | gtfToBed(gtf, output="min")
|
gtf |
An imported gtf table. |
output |
Option to format the output, see details. |
Currently the function supports only gtf files for human organisms. If applied to other organisms the code has to be changed in such a way that the Chromosome names are adjusted.
The output can be formated with the output option, where output="min"
results in one row per gene and output="full"
keeps the original format in the gtf file.
A data.frame in bed format having the four columns Chr
, Start
, Stop
and Name
Daniel Fischer
1 2 3 4 5 | ## 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.