-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issue with Component Definition with Sequence Constraints #111
Comments
Do you have an XML version of your example? |
I see a problem though. Do not put roles on the Component, they only need to be on the definitions. I don't think roles on Components are supported. |
Here's the XML for the same. If I run getDisplayList on the componentDefinition with the name device (the same component that has the SequenceConstraints and Components), the sequences in the displaylist do not have any type associated with them. |
I dropped your file into visbol.org and it works fine. Have you tried that? |
I did and saw that it works in visbol. |
One thing you might try to get more information is to print the result of your getDisplayList call and compare it with what you see under the display list tab on visbol.org. It could be that visbol.org is running on a different version than the latest. Which version of the visbol library are you using? |
These may not be causing your VisBol problems (though they might be), your URIs are not compliant. First of all, the URIs should not end with a "/". They should end with the version number. Second, your child URIs are also not formed correctly, for example, for CD: |
Also, how similar is your code to that around line 232 here: |
If there is a Component Definition with sequence constraints and components, but no sequence annotations, the image rendered shows parts as "unknown type" instead of the rendering the part based on the role assigned to the component e.g. Promoter/RBS etc.
I believe this happens due to this part in the code:
visbol-js/lib/getDisplayList.js
Line 361 in 06c3934
Where if there is no sequence annotation found that matches a specific component, a new sequence annotation is created however, the role field is an empty list and does not inherit the role(s) of the component.
Here's an intermediate json representation of the structure that reproduces the error observed.
visbolsc_repro.txt
The text was updated successfully, but these errors were encountered: