BayesANT | R Documentation |
'BayesANT'
,
which can be used for predictions.Main function to call the BayesANT (BAYESiAn Nonparametric Taxonomic)
classifier. The function construct an object of class 'BayesANT'
,
which can be used for predictions.
BayesANT(
data,
typeseq = "aligned",
type_location = "single",
kmers = 5,
newtaxa = TRUE,
usegap = FALSE,
save_nucl = FALSE,
verbose = TRUE
)
data |
An object of class |
typeseq |
Format of sequences used to train the classifier.
Options are |
type_location |
How to model the loci in an aligned set of DNA
sequences. Valid only if |
kmers |
Length of a substring under a k-mer decomposition.
Valid only if |
newtaxa |
Whether to account for new taxa when constructing the
classifier. Default is |
usegap |
Whether to include the alignment gap |
save_nucl |
Save the nucleotide counts and the hyperparameters of
the model in a list. Default is |
verbose |
Monitor the steps adopted to train the algorithm.
Default is |
An object of class BayesANT
. We return a list
containing the following quantities:
dataDataset used for training.,
data_missingDataset containing sequences with missing annotations.
missing_taxaIndeces of the sequences with missing values.
typeseqType of sequences used to train the classifier.
type_locationType of location to train the classifier.
newtaxaWhether new taxa are included in the classification.
level_namesNames of taxonomic ranks
nuclNucleotides detected.
kmersNumber of kmers selected to build the classifier.
ParameterMatrixMatrix that stores model parameters.
Nucl_countsList of counts of the nucleotides at every leaf.
PYparsEstimated Pitman-yor parameters.
PriorprobsPrior probabilities selected for the model.
hyperparametersList of model hyperparameters.
leavesName of the taxonomic leaves.
sequences_lengthLength of each sequence in the data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.