View source: R/DNAToNumerical.R
DNAToNumerical | R Documentation |
Convert DNAStringSet object into one-hot encoding
DNAToNumerical( x, tabv = c(T = 4, G = 3, C = 2, A = 1), lower.case = F, seq.size = 201 )
x |
DNAStringSet object |
tabv |
named vector list of numerical values which indicate the numerical value of a nucleotide. |
lower.case |
Set to |
seq.size |
Set the sequence maximal length value authorized by our model (default to 201). |
An array of dimension nrow(x),ncol(x),length(tabv)
x <- Biostrings::DNAStringSet(c("ACGT")) x_onehot <- DNAToNumerical(x) x_onehot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.