TeselaGen / tg-oss

Teselagen Open Source modules
https://teselagen.github.io/tg-oss/
MIT License
41 stars 17 forks source link

Origin-spanning primers #91

Open manulera opened 3 months ago

manulera commented 3 months ago

Hi @tnrich, I realised that those primers with text are not displayed properly if they span the origin. As a first step, I have changed getStructuredBases to handle origin-spanning primers, and added some tests in a first commit.

However, for the display I don't seem to understand how to split the primer text. I see that what I would have to do is somewhere in StackedAnnotations and has to do with baseEl, which is the span with the basepairs, but I don't understand how each part of the splitted annotation is rendered. As is, it renders like this:

Screenshot 2024-07-15 at 17 01 28 Screenshot 2024-07-15 at 17 01 18