segToGr | R Documentation |
Reverse of grToSeg
segToGr(seg, genome = "hg19", name = "ID", score = "seg.mean")
seg |
The .seg filename |
genome |
Genome against which segments were annotated (DEFAULT: "hg19") |
name |
.seg file column to use as $name metadata (DEFAULT: "ID") |
score |
.seg file column to use as $score metadata (DEFAULT: "seg.mean") |
A GRanges object
grToSeg
clock <- getClock(model="horvathshrunk", genome="hg38")
gr <- clock$gr
df <- grToSeg(gr = gr, file = "test_grToSeg.seg")
segs <- segToGr("test_grToSeg.seg", genome="hg38")
if (file.exists("test_grToSeg.seg")) file.remove("test_grToSeg.seg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.