getMethylOverlap | R Documentation |
Given paths to a BED file with ChIP-SEQ peaks and a BED file with methylation data, return a dataframe containing methylation data for sites within ChIP-SEQ peaks.
getMethylOverlap(chipPath, methylPath)
chipPath |
the path to a BED6 or greater file containing processed ChIP-seq peaks. If data is not stranded, a period should be specified in the strand column. |
methylPath |
the path to a BED9 file with methylation data similar to those available on the UCSC website, where the ninth column specifies the percentage of reads that were methylated: http://hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeHaibMethylRrbs/ |
a dataframe where the first column specifies a chromosome, the second column specifies an end position on the genome, the sixth column represents a strand or . if this is not specified, and the last (ninth) column specifies the percentage of reads that were methylated.
H. Pagès, M. Lawrence and P. Aboyoun (2020). S4Vectors: Foundation of vector-like and list-like containers in Bioconductor. R package version 0.24.4.
Lawrence M, Huber W, Pag\'es H, Aboyoun P, Carlson M, et al. (2013) Software for Computing and Annotating Genomic Ranges. PLoS Comput Biol 9(8): e1003118. doi:10.1371/journal.pcbi.1003118
path1 <- system.file("extdata", "MAZ_high_score.bed", package = "ChIPAnalyzer")
path2 <- system.file("extdata", "HcfUMethylData.bed", package = "ChIPAnalyzer")
overlap <- getMethylOverlap(path1, path2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.