Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display the tree for similarity #2905

Closed
lpatiny opened this issue Feb 12, 2024 · 0 comments · Fixed by #2906 or #2903
Closed

Display the tree for similarity #2905

lpatiny opened this issue Feb 12, 2024 · 0 comments · Fixed by #2906 or #2903
Assignees

Comments

@lpatiny
Copy link
Member

lpatiny commented Feb 12, 2024

We have published an algorithm for NMR spectra similarity using tree-similarity

https://doi.org/10.1016/j.chemolab.2013.05.009

The algorithm was implemented in javascript here:

https://github.com/mljs/tree-similarity

I would like to see the tree on the spectrum in order to check if this algorithm is correct or not.

In the database panel add before the drop down menu to select the database a little toggle button

image

This could be the icon

image

This button is available if there is one (and only one) 1D spectrum that is activate.

If this button is active we should display the tree obtained using (from tree-similarity)

const aTree = createTree(a, options);

The display of the tree is something like

image

but there is no text annotations. Different color per level could be a plus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
2 participants