You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a small bug: sometimes, a gene spans the scaffold. Happens rarely with circular assemblies annotated with PGAP. In this case, BiopythonTranslator gives the gene a start position at the beginning of the scaffold, and an end position at the end of the scaffold, meaning the gene spans the entire scaffold.
Hello
Thanks for your work, I implemented DnaFeaturesViewer in my software (click on compare gene loci)!
I found a small bug: sometimes, a gene spans the scaffold. Happens rarely with circular assemblies annotated with PGAP. In this case, BiopythonTranslator gives the gene a start position at the beginning of the scaffold, and an end position at the end of the scaffold, meaning the gene spans the entire scaffold.
Example:
![image](https://user-images.githubusercontent.com/40867365/141509673-8bdcc1ad-a50a-4598-aa7d-1db3f58ef20c.png)
Use this genbank file to reproduce the issue.
I managed to fix it by changing the
translate_feature
function:Then, I get the expected result:
![image](https://user-images.githubusercontent.com/40867365/141510261-9b67bb6d-1e44-4dbe-b5b1-3ae9a3690066.png)
The text was updated successfully, but these errors were encountered: