| convert_sequence_to_numbers | R Documentation |
ggDNAvis helper)This function takes a sequence and encodes it as a vector
of numbers for visualisation via rasterise_matrix().
Encoding: A = 1, C = 2, G = 3, T/U = 4.
convert_sequence_to_numbers(sequence, length = NA)
sequence |
|
length |
|
integer vector. The numerical encoding of the input sequence, cut/padded to the desired length.
convert_sequence_to_numbers("ATCGATCG")
convert_sequence_to_numbers("ATCGATCG", length = NA)
convert_sequence_to_numbers("ATCGATCG", length = 4)
convert_sequence_to_numbers("ATCGATCG", length = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.