biotite-dev / biotite

A comprehensive library for computational molecular biology
https://www.biotite-python.org
BSD 3-Clause "New" or "Revised" License
641 stars 101 forks source link

Fix slicing with annotation on minus strand #577

Closed trichter closed 4 months ago

trichter commented 4 months ago

Hi! This is an awesome project! Very nice work.

I stumbled upon a small bug. The sorted_locs variable is not used in annotation.py. The effect is that, when slicing with a feature with at least two locations on the minus strand, we get the wrong sequence.

I added a test to demonstrate the problem and fixed it.