Description Usage Arguments Value Examples
View source: R/get_context_freq.R
Extracts the frequencies of the tri-nucleotide contexts in a given region of the genome. These frequencies are needed to normalize a mutational catalogue. The output can be input to normalize().
1 | get_context_freq(genome, region = NULL)
|
genome |
a BSgenome object |
region |
a GRanges object, path, URL, connection or BEDFile object. |
matrix containing the frequencies of the trinucleotide contexts
1 2 3 4 5 6 7 8 9 10 | gr<-GenomicRanges::GRanges(seqnames=c("chr1"),
ranges=IRanges::IRanges(start=c(100000),end=c(1000000)),
strand=c("+"))
get_context_freq(BSgenome.Hsapiens.UCSC.hg19::BSgenome.Hsapiens.UCSC.hg19, gr)
get_context_freq(BSgenome.Hsapiens.UCSC.hg19::BSgenome.Hsapiens.UCSC.hg19)
## Not run:
get_context_freq(BSgenome.Hsapiens.UCSC.hg19::BSgenome.Hsapiens.UCSC.hg19, 'example.bed')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.