Description Usage Arguments Value Examples
View source: R/extract_trinucleotide_context.R
Extracts the trinucleotide context for a set of mutations
1 | extract_trinucleotide_context(mutations, reference, destrand = TRUE)
|
mutations |
A data frame having the mutations. Should have the columns CHROM, POS, REF, ALT. |
reference |
the reference genome in BSgenome format |
destrand |
logical, whether to destrand mutations |
A data frame with two columns having the substitutions and the trinucleotide context
1 2 3 4 5 6 7 8 9 10 11 | data("mutations", package = "ctDNAtools")
## Use human reference genome from BSgenome.Hsapiens.UCSC.hg19 library
suppressMessages(library(BSgenome.Hsapiens.UCSC.hg19))
## with destranding
extract_trinucleotide_context(mutations, BSgenome.Hsapiens.UCSC.hg19)
## without destranding
extract_trinucleotide_context(mutations, BSgenome.Hsapiens.UCSC.hg19,
destrand = FALSE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.