encode_one_hot one-hot-encodes sequence in a string format.

encode_one_hot(sequence, max_length = 4034)

Arguments

sequence

Sequence in a string format.

max_length

Maximum length of sequence to encode.

Value

One-hot encoded sequence.

Examples

sample_seq <- "MSHMTFNTWKAGLWRLAAAAVLSLLPVVARAAVPGITGPTFDLTAQPGRANQPDGASVYSWGYGCNPRTVPGFLPSVNPLAGQ"
encoded_seq <- encode_one_hot(sample_seq)