NelleV / moanin

Timecourse transcriptomic analysis
https://nellev.github.io/moanin/
Other
5 stars 0 forks source link

If equal scores, randomize assignment of genes to cluster in `score_and_label_kmeans` #67

Open epurdom opened 4 years ago

epurdom commented 4 years ago

which.min is used to assign to best score, so if ties, picks the first match, so actually a preference to assign into first cluster. Maybe this should be fixed somehow by adding a random perturbation to the scores when the scores are equal?