Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Genbank improvements #40

Open
Koeng101 opened this issue Dec 21, 2023 · 1 comment
Open

Genbank improvements #40

Koeng101 opened this issue Dec 21, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Koeng101
Copy link
Owner

Referencing bebop/poly#434

@carreter is asking for a full rewrite there, but I think I disagree. Useful link to the spec.

  • Feature.GetSequence() always returns a nil error value link This should be fairly easy to fix, it is only referenced once.
  • Gff.AddFeature() code is misleading and mutates Feature state link This doesn't seem like that big of an issue. We can just do a deep copy of the feature and it should be fine.
  • Common Genbank Feature.Type values should be enumerated link This should be pretty easy, just adding strings enums in a few places.

These are all nice improvements, but are all are actually kinda simple to implement. The first will take just a couple lines of changes with zero impact on functionality, the second just takes a copy, and the third is just adding some enums.

I do think a refactor could be in place: In particular, it might be easy to split the parseChecks into functions. I think there is MASSIVE room for improvement in the test suite as well - but honestly, the genbank parser works pretty darn good right now, so I am hesitant to spend the time on the 4th refactor when I could be using my time on better things. Will implement fixes to those 3 things though.

@Koeng101 Koeng101 added the enhancement New feature or request label Dec 21, 2023
Copy link

This issue has had no activity in the past 2 months. Marking as stale.

@github-actions github-actions bot added the stale label Feb 19, 2024
@Koeng101 Koeng101 removed the stale label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant