
Select Candidate Genes based on Mclust Clusters
select_genes_mclust.RdThis function identifies candidate genes based on the clusters defined by the Mclust model. It determines a threshold based on the minimum score of the selected clusters and filters the genes accordingly. The resulting candidate genes are sorted by their SHAP scores and returned as a dataframe. The function also prints the defined threshold and the number of selected genes to the console.