train_balk
is a function that trains a binomial naive bayes classifier for sequence data
train_balk(
seqc,
snps_pos,
meta,
binomial_n = 1,
laplace = 1,
snp_id = NULL,
prior = NULL,
fit_prior = FALSE
)
A list of sequences
A vector of SNP positions
A data frame containing the metadata, require isolate and target columns
The number of classes for the binomial naive bayes, default to 1 - bernoulli, 2 - binomial (support heterozygous SNPs)
The Laplace smoothing parameter
A vector of SNP IDs, if not provided, it will be inferred from the SNP positions
The prior probabilities of the classes
Whether to learn class prior probabilities
A list containing the classifier and the transformation levels