This function returns the celda model (celda_C, celda_G, celda_CG) from a celda_list with the maxiumim final log-likelihood. If a K or L (or combination) parameter is provided, the model with these K/L and the highest log-likelihood is returned.
getBestModel(celda.list, K = c(), L = c())
A celda_list object returned from celda()
Limit search for best model to models with this number of cell clusters.
Limit search for best model to models with this number of gene clusters.
The celda model object with the highest finalLogLik attribute, meeting any K/L criteria provided