odmix {odseq} | R Documentation |
This function performs clustering of biological sequences via fitting a
Gaussian mixture model of the distances defined by the odseq
algorithm
odmix(msa_object, distance_metric, groups)
msa_object |
An object of formal class |
distance_metric |
A string indicating the type of distance metric to be computed. Either |
groups |
Number of groups to fit in the mixture model. If a numeric vector of size |
A list containing the following items:
prob |
A numeric matrix of size n x groups where the probability of belonging to a group is provided for each sequence. |
class |
The class assigned according to |
BIC |
BIC values for the models proposed in |
José Jiménez <jose@jimenezluna.com>
library(msa) data(seqs) al <- msa(seqs) odmix(al, distance_metric = "affine", groups = 2)