View source: R/context_methylation_functions.r
GetSingleMolMethMat | R Documentation |
Used internally as the first step in CallContextMethylation
GetSingleMolMethMat(QuasRprj, range, sample)
QuasRprj |
QuasR project object as returned by calling the QuasR function qAling on previously aligned data |
range |
GenimocRange representing the genomic region of interest |
sample |
One of the sample names as reported in the SampleName field of the QuasR pointer file provided to qAlign. N.b. all the files with the passed sample name will be used to call methylation |
Single molecule methylation matrix (all Cytosines)
Qinput = paste0(tempdir(), "/NRF1Pair_Qinput.txt") library(BSgenome.Mmusculus.UCSC.mm10) if(file.exists(Qinput)){ QuasRprj = GetQuasRprj(Qinput, BSgenome.Mmusculus.UCSC.mm10) sample = readr::read_delim(Qinput, delim = "\t")$SampleName range = GRanges(seqnames = "chr6", ranges = IRanges(start = 88106000, end = 88106500), strand = "*") MethSM = GetSingleMolMethMat(QuasRprj, range, sample) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.