JaneliaSciComp/JRCLUST

deletes and merges not updated in template similarity score plot

agbondy opened this issue · 6 comments

When a cluster is deleted or two are merged, this is not updated in the template similarity score plot. Therefore the indices of this plot are no longer accurate after a merge or delete operation, making it unusable. This seems to be a bug introduced rather recently.

I temporarily fixed this in a hacky way by forcing the code to always enter the first conditional statement in +jrclust+sort@TemplateClustering\commit. That is, if we force the code block starting at line 7 instead of the code block starting at line 26, the plot updates fine.

Hey @agbondy what's the commit hash of the version you're running?

I am running my own fork but it is up to date with all commits in the main branch. My own changes are to do with the appearance of figures, and none are related to the updating of the template similarity scores.

Mistake on my end, I hadn't updated the repo on the machine I'm working on. I see what you're talking about now. Let me take a look.

Works for me now. Give the latest a merge and see if that works for you.

Yup it's working now. Thanks!