oneHot | R Documentation |
Takes a DNA string and returns a one-hot encoded matrix of
4 rows c("A", "C", "G", "T")
with j
-columns, where
j
is the number of characters in a DNA string.
oneHot(s, n = c("A", "C", "G", "T"))
s |
A character string of a DNA sequence. |
n |
A character vector of given nucleotide elements. Defaults to
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.