encodeSgeno: encode S genotype as columns using one-hot encoding

Description Usage Arguments Value Examples

View source: R/sars2phylo.R

Description

encode S genotype as columns using one-hot encoding

Usage

1
encodeSgeno(SS, spike = FALSE, smallversion = TRUE, N = 100)

Arguments

SS

dataframe of sample set

spike

restrict analysis only to Spike gene

smallversion

if true, limit number of genotypes to N

N

limits number of genotypes encoded

Value

dataframe augmented with columns as one-hot encoded genotypes

Examples

1
ss <- encodeGenotype(ss);

JacobLemieux/sars2phylo documentation built on Dec. 18, 2021, 12:29 a.m.