AlexsLemonade / rOpenScPCA

R package to support analysis in the OpenScPCA project
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Function to generate clustering stats for a set of parameters #10

Open allyhawkins opened 4 days ago

allyhawkins commented 4 days ago

We currently support generating clustering results using a range of parameters with the sweep_clusters() function, but the functions in calculate-clusters.R only support calculating metrics for one set of clustering results. In order to make the plots described in #9 it might be helpful to have a function that calculates one or all the metrics on the clustering output from sweep-clusters().

I think this would take the following arguments:

The output would be a list of data frames with one data frame for each metric. That means there would be one data frame that contains all the results from the purity calculations for all clustering results that were output from sweep_clusters(), one for width, and one for stability. Then these data frames could be provided as input to the function for plotting described in #9.

allyhawkins commented 4 days ago

Tagging @cansavvy in case you are interested!