-
Notifications
You must be signed in to change notification settings - Fork 6
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
CPX-7083 broken in viewer #202
Comments
Do you think we could be of any help? |
what's at issue is the code in https://github.com/colin-combe/ComplexViewer/blob/master/src/js/clone-complex-refs.js i think it gets complicated because we also have to update the linked features in the correct way, and then for CPX-7083 we need to deal with nested subcomplexes. I think the code that's there is quite hard to understand... i've been fiddling with it and so far it seems only exactly what's there works for the the other cases we have. (CPX-5684, CPX-6230, CPX-5605, CPX-5897). What's there isn't a correct solution but just happens to work for the other cases, i think. To be honest, it's kind of hard to figure out exactly what you need to do regardless of writing the code. Feel free to look at the code or suggest pseudo code about how to solve the problem. One thing that makes the code confusing is the distinction between complex as a participant and complex as an interaction. I notice that when it is a participant i don't have a good way of checking if it's a complex and am searching the id for "complex"? You understand the more general problem about the need to clone the complexes? |
The other issue is that CPX-7083 is made up of 2x CPX-7041. I'm sure that's messing with the expansion, too. We were working on the duplicate detector when I was leaving. Anjali was the only one left to work on it at he time and didn't have the time to finish it all either. I think it just got left in an "almost workable" state. It was never going to work for all situations. |
I'm free pretty much all day tomorrow if you want to have a chat and pick my brain about the duplication detector. |
Thanks a lot @bmeldal , I think that could really be the source of the problem, you have a brilliant memory! This probably mean that you should wait @colin-combe before trying to fix that one, because the file will change soon normally |
Yes, @EliotRagueneau you put it into proper language :) I spent long enough on this set of complexes - didn't really have much else to do in the lockdowns either ;-) They were fun and challenging to curate - and pushed our model to it's extremes :) |
Hi @colin-combe and @bmeldal . We have managed to fix the editor to support the correct stoichiometry. The new JSON doesn't fix the problem though unfortunately, as it doesn't impact features, so this complex is still problematic. Here's the new version of the JSON As previously stated, I will deploy the version 2.2.2, but this is still a pending issue then. |
Yes, i expected that - #201 (comment) |
where there's multiple references to same complex, that complex needs to be cloned (once per reference).
#199 (comment)
in this case, it's not working where there are nested subcomplexes.
(@EliotRagueneau - could be a bit of time before i have this fixed)
The text was updated successfully, but these errors were encountered: