add_sequence | R Documentation |
Add nucleic acid sequence of regions to metadata column
add_sequence(ranges, genome, name = "sequence")
ranges |
GRanges object |
genome |
BSgenome object or any other valid input to 'Biostrings::getSeq()' (Do 'showMethods(Biostrings::getSeq)' to show valid types) |
name |
name of metadata column to hold sequence information (default: "sequence"). Note, this will overwrite existing columns without warning if the name already exists. |
'ranges' with new metadata column named "sequence" (or another value passed to 'name') holding the DNA or RNA sequence from 'genome'
data(example_peaks, package = "memes")
dm.genome <- BSgenome.Dmelanogaster.UCSC.dm3::BSgenome.Dmelanogaster.UCSC.dm3
add_sequence(example_peaks, dm.genome)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.