Lattice-Automation / seqviz

a JavaScript DNA, RNA, and protein sequence viewer
https://tools.latticeautomation.com/seqviz
MIT License
247 stars 53 forks source link

Is it possible to pass in both `seq` and `compSeq`? #203

Closed amijalis closed 1 year ago

amijalis commented 1 year ago

Is it possible to define how both strands of a sequence are displayed?

Currently I only know of a way to pass in one strand of a sequence for display. I would like to represent overhangs for a particular sequence, which could look something like:

OOOOGATC CAGACTAG

There is currently a parameter that I see in the code base called compSeq. I haven't had success passing this into SeqViz, so I'm curious how to use it. Thanks!

jjti commented 1 year ago

Hey @amijalis, yes this should definitely be possible. Sorry for this issue. It should be fixed, now, in 3.7.13: https://github.com/Lattice-Automation/seqviz/releases/tag/3.7.13

Example here: https://codesandbox.io/s/seqviz-2034785vi2ht-forked-0x4bsp?file=/src/App.js

jjti commented 1 year ago

Please let me know if you run into any more issues or this continues to be an issue

amijalis commented 1 year ago

Works perfectly for me now! Thank you!!