Description Usage Arguments Value Author(s) Examples
View source: R/savePMDSegments.R
Save PMD segments in rds format and as tab-delimited file.
1 | savePMDSegments(PMDs, GRangesFilename, TableFilename)
|
PMDs |
GRanges object containing the PMD segmentation. Return value of the segmentPMDs function (see example). |
GRangesFilename |
Filename of the GRanges object. |
TableFilename |
Filename of the PMD table. |
No return value.
Lukas Burger lukas.burger@fmi.ch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(MethylSeekR)
# get chromosome lengths
library("BSgenome.Hsapiens.UCSC.hg18")
sLengths=seqlengths(Hsapiens)
# read methylation data
methFname <- system.file("extdata", "Lister2009_imr90_hg18_chr22.tab",
package="MethylSeekR")
meth.gr <- readMethylome(FileName=methFname, seqLengths=sLengths)
#segment PMDs
PMDsegments.gr <- segmentPMDs(m=meth.gr, chr.sel="chr22",
seqLengths=sLengths)
#save PMD segments
savePMDSegments(PMDs=PMDsegments.gr, GRangesFilename="PMDs.gr.rds",
TableFilename="PMDs.tab")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.