Replies: 14 comments 6 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hey @kelmazouari yep so as stated in the open vector editor readme you'll need to pass the sequenceData property to an updateState call: https://github.com/TeselaGen/openVectorEditor#editorstate You can get ove sequenceData from a genbank string using the anyToJson (in this package) or the more specific genbankToJson method. Let me know if you have more questions. Check out the demo code or the umd demo code in the ove repo to see an example of the editor being populated with sequenceData |
Beta Was this translation helpful? Give feedback.
-
Hi @tnrich |
Beta Was this translation helpful? Give feedback.
-
Hey @kelmazouari I've been away from my computer for the past few weeks but I can work up a demo for you when I come back. The idea should be quite simple using umd or react. In either case you'll also need to require this package, bio-parsers (from npm or your dependency management system of choice). You'll use bio-parsers to get the OVE json representation of a genbank file. That json can then be fed to the OVE instance (react or umd) using the updateState or updateEditor method (I forget what it's called in the umd case but it is outlined in the docs). Good luck tinkering and lemme know how it goes. I'll make a little code sandbox for you in a few days when I'm back if you don't get it on your own |
Beta Was this translation helpful? Give feedback.
-
Hey @kelmazouari Here's the the html file with the parsing:
|
Beta Was this translation helpful? Give feedback.
-
Many thanks, @tnrich. |
Beta Was this translation helpful? Give feedback.
-
Hello @tnrich My app UI has 2 parts: left and right. I would like to render OVE id the right part only. When OVE is launched it 'overlaps' the whole app UI. Any suggestion on how to render OVE inside a specific component (right part) ? |
Beta Was this translation helpful? Give feedback.
-
Hey @kelmazouari I'm going to let you work out how to do this. At this point it is just about learning the fundamentals of css and html positioning which is something you can do tutorials for. Good luck! Any other ove specific questions I'd be happy to field for you! |
Beta Was this translation helpful? Give feedback.
-
I agree with you. |
Beta Was this translation helpful? Give feedback.
-
Hello @tnrich, |
Beta Was this translation helpful? Give feedback.
-
Yes, it's working. Many thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @tnrich , |
Beta Was this translation helpful? Give feedback.
-
Hello @tnrich, I noticed In Standalone mode, the ToolBar contains a 'Save' item. Is it possible to display the 'Save' item in UMDDemo.html toolbar ? Best |
Beta Was this translation helpful? Give feedback.
-
Hi @tnrich , I noticed that Ambiguous AA 'X' are not rendered. I used this fix. But may not work where proteinAlphabet["-"] is used.
|
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions