Edinburgh-Genome-Foundry / DnaFeaturesViewer

:eye: Python library to plot DNA sequence features (e.g. from Genbank files)
https://edinburgh-genome-foundry.github.io/DnaFeaturesViewer/
MIT License
584 stars 90 forks source link

Change shape of feature arrows #59

Closed samwitham closed 3 years ago

samwitham commented 3 years ago

Hello, thank you for making a great package. Is there a way to change the shape of the feature arrows to a rectangle? I tried pre-processing the records to change the sigil to BOX before passing to the translator but it doesn't seem to work.

e.g.:

for feature in seqrecord.features:
        #change sigil to box
        feature.qualifiers["sigil"] = 'BOX'

Many thanks, Sam

Zulko commented 3 years ago

I believe that if the feature's strand is set to "0" you get a rectangle, would that work for you?

samwitham commented 3 years ago

Perfect thank you!