ranges2UCSC | R Documentation |
Write a bedfile from Breakpoint.R files for upload on to UCSC Genome browser
ranges2UCSC(gr, outputDirectory = ".", index = "bedFile", colorRGB = "0,0,0")
gr |
A |
outputDirectory |
Location to write bedfile(s). |
index |
A character used to name the bedfile(s). |
colorRGB |
An RGB color to be used for submitted ranges. |
NULL
David Porubsky
## Get an example file
exampleFolder <- system.file("extdata", "example_results", package="breakpointRdata")
exampleFile <- list.files(exampleFolder, full.names=TRUE)[1]
## Load the file
counts <- get(load(exampleFile))[['counts']]
## Export 'wc' states into a UCSC formated file
ranges2UCSC(gr=counts[counts$states == 'wc'], index='testfile', outputDirectory=tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.