Description Usage Arguments Value Author(s) Examples
Write a bedfile from Breakpoint.R files for upload on to UCSC Genome browser
1 | 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
1 2 3 4 5 6 7 | ## 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.