TeselaGen / tg-oss

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

Showing fasta file in circular view will show a warning #44

Closed wandji20 closed 8 months ago

wandji20 commented 8 months ago

Hi @tnrich I have experienced this issue working with fasta files in circular view. So, if I open a fasta file in the editor, I get a warning (screenshot) As a result, the generated preview image is linear even if I had a circular view when saving the fasta file. Not sure if this is expected, but I would love to generate circular preview images for fasta files. I am using version 0.3.49

tnrich commented 8 months ago

Hi @wandji20 when you say:

As a result, the generated preview image is linear even if I had a circular view when saving the fasta file.

What do you mean by "generated preview image" exactly? Are you just talking about this view:

image

Or are you referring to something else?

If you're referring to the full blown editor view as seen above, you should be able to change the circular/linear of the sequence via either of these toggles:

image

Just switching the default viewing panel will not update the underlying topology of the sequence.

Hope that helps!

wandji20 commented 8 months ago

@tnrich Sorry, I used a wrong term. By generated preview image, I mean the pngFile which we get from the onSave handler. Thanks, I was wrong about switching the default viewing panel in order to switch underlying topology of the sequence.