Description Usage Arguments Value Author(s) Examples
read_methylation_report
read a file containing methylation information using readr
.
In general, the metyylation report file was generated by Bismark methylation extractor
.
The methylation report file format is the following:
<chromosome> <position> <strand> <count methylated> <count unmethylated> <C-context> <trinucleotide context>
Note: the 7th column is optional.
1 | read_methylation_report(file, min_coverage = 4, type = "CG")
|
file |
the path of methylation report file |
min_coverage |
filter out the sites which total reads < min_coverage. the default is 4. |
type |
specify the methylation context type : "CG", "CHG" or "CHH",the default is "CG". |
A GRanges
object.
The GRanges object contains three additional metadata columns:
methylated_reads
: the number if methylated reads for each C sites.
total_reads
: Total number of reads for each C sites.
type
:the C-context type: CG,CHG, or CHH
Hongen Kang geneprophet@163.com
1 2 3 4 5 6 7 8 | # Obtain the path to files
## Not run:
#' file <- system.file("extdata", "example_human_chr22_CpG_report.txt", package = "BSDMR")
human_met <- read_methylation_report(file,min_coverage=4)
file <- system.file("extdata", "example_mouse_chr15_CpG_report.txt", package = "BSDMR")
mouse_met <- read_methylation_report(file,min_coverage=4)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.