biopython / biopython/biopython

SeqFeature cleanup

Open
#4,061 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.2k
Forks
1.9k
Avg merge
2d 6h
Merged PRs (30d)
11

Description

I am finding code to parse GenBank-style location strings into `SeqFeature` objects in multiple places in Biopython:

- In `Bio/SwissProt/__init__.py`, in the `_read_ft` function;
- In `Bio/SeqIO/SwissIO.py`, in the `_make_position` function;
- In `Bio/GenBank/__init__.py`, in the `_pos` function.

Note that all three functions are private.

It would be better to replace these three functions by one public function, maybe `SeqFeature.fromstring`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.