View source: R/format_mutation.R
format_mutation | R Documentation |
Determine the string format of a position in a genomic sequence
format_mutation(position, sequence, alternate = "")
position |
The position of the mutation. |
sequence |
The genomic sequence of type DNAString. |
alternate |
The alternate base of type character. If left empty, format_mutation() will output only the nucleotide base with its surrounding bases. |
A string of the mutation in a certain format
library(Biostrings) library(BSgenome.Hsapiens.UCSC.hg38) library(stringr) # Load in the sequence seq <- getSeq(Hsapiens, "chr1") format_mutation(20124, seq, "A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.