Description Usage Arguments Value Author(s) See Also Examples
Inputs a string composed of nucleotides and outputs a zero-padded vector of encodings.
1 | one_hot_vector(dnastr, zeros_len, max_len)
|
dnastr |
Character string composed of nucleotides A, C, G, T. |
zeros_len |
Integer value denoting number of zeros to pad vector with. Commonly the convolutional filter length - 1. |
max_len |
Integer value denoting the maximum sequence length. Used in the padding calculation to account for shorter sequences. |
Zero-padded vector of one-hot encodings. If the input is of length L and with padding of length Z the output is of length 4(L+2Z).
Matthew Ploenzke, ploenzke@g.harvard.edu
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.