View source: R/context_methylation_functions.r
CollapseStrandsSM | R Documentation |
The idea here is that (regardless of context) if a C is on the - strand, calling getSeq on that coord (N.b. unstranded, that's the important bit) will give a "G', a "C" if it's a + strand.
CollapseStrandsSM(MethSM, context, genome, chr)
MethSM |
Single molecule matrix |
context |
"GC" or "CG". Broad because indicates just the directionality of collapse. |
genome |
BSgenome |
chr |
Chromosome, MethSM doesn't carry this info |
Strand collapsed MethSM
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.