encode_one_hot: One-hot encoder

Description Usage Arguments Value Examples

View source: R/encoding_methods.R

Description

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

Usage

1
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

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

deepredeff documentation built on July 16, 2021, 5:07 p.m.