bebop / poly

A Go package for engineering organisms.
https://pkg.go.dev/github.com/bebop/poly
MIT License
663 stars 70 forks source link

Genbank location parser breaks on parsing this location. #384

Closed TimothyStiles closed 10 months ago

TimothyStiles commented 10 months ago

Describe the bug

Genbank.Read panics when trying to read this specific location line

     misc_RNA        join(complement(5306942..5307394),
                     complement(5304401..5305029),complement(5303328..5303393),
                     complement(5301928..5302004))

Severity of the bug

Keeps us from parsing refseq human genome

Steps to reproduce

Steps to reproduce the behavior: Will update with better steps but you should be able to create a new genbank file with this location and run it through genbank.Read to reproduce.

Expected behavior

Will not panic and be able to parse location string effectively.

Screenshots

Screen Shot 2023-10-06 at 7 14 50 PM

Client information

TimothyStiles commented 10 months ago

fixed as of #385