Diff of /man/one_hot_to_seq.Rd [000000] .. [409433]

Switch to side-by-side view

--- a
+++ b/man/one_hot_to_seq.Rd
@@ -0,0 +1,36 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/preprocess.R
+\name{one_hot_to_seq}
+\alias{one_hot_to_seq}
+\title{Char sequence corresponding to one-hot matrix.}
+\usage{
+one_hot_to_seq(
+  m,
+  vocabulary = c("A", "C", "G", "T"),
+  amb_enc = "zero",
+  amb_char = "N",
+  paste_chars = TRUE
+)
+}
+\arguments{
+\item{m}{One-hot encoding matrix or 3d array where each element of first axis is one-hot matrix.}
+
+\item{vocabulary}{Vector of allowed characters. Characters outside vocabulary get encoded as specified in \code{ambiguous_nuc}.}
+
+\item{amb_enc}{Either \code{"zero"} or \code{"equal"}. How oov tokens where treated for one-hot encoding.}
+
+\item{amb_char}{Char to use for oov positions.}
+
+\item{paste_chars}{Whether to return vector or single sequence.}
+}
+\value{
+A string.
+}
+\description{
+Return character sequence corresponding to one-hot elements in matrix or tensor.
+}
+\examples{
+m <- matrix(c(1,0,0,0,0,1,0,0), 2)
+one_hot_to_seq(m)
+
+}