TeselaGen / openVectorEditor

DEPRECATED - Teselagen's Open Source Vector/Plasmid Editor Component
https://teselagen.github.io/tg-oss/ove/#/Editor
MIT License
200 stars 72 forks source link

Editor label handleAlignment callback method return data cannot be displayed correctly #907

Open avisajn opened 11 months ago

avisajn commented 11 months ago

@tnrich sorry i still have problem with handleAlignment, I run the official demo image What kind of data format do these three values ​​in handleAlignment need to return to display normally? There will be problems with the rendering I wrote in this way. Can you give me a fake data? This has troubled me for a long time, Because I'm not sure whether it's the code or the data, you'd better try it with fake data

this is my data , like this return { alignedSequences: [{ id: "ef83a2d9-2b56-4a06-8a83-55ee3a0d1604", features: [], name: "F05206", sequence: "--atgcatcaccatcat", }, { id: "ef83a2d9-2b56-4a06-8a83-55ee3a0d1604", features: [], name: "F05206", sequence: "--atgcatcaccatcat" }], pairwiseAlignments: false, alignmentsToRefSeq: false, }

20230718163324_rec_

mega-bisharp commented 11 months ago

you should add content of alignedSequences to pairwiseAlignments

tnrich commented 11 months ago

@avisajn you can simply not return pairwiseAlignments and alignmentsToRefSeq if they're not being used.

As for what the return value should look like, it should look like one of the example alignment's data. Go look at the example alignments for more info on that!