load_annotations#

load_annotations(*, path: PathLike, seqids: str | None = None, db: SupportsFeatures = None, write_path: PathLike = ':memory:', show_progress: bool = False) SupportsFeatures#

loads annotations from flatfile into a db

Parameters:
path

path to a plain text file containing features

seqids

only features whose seqid matches a provided identifier are returned, the default is all features.

db

an existing feature db to add these records to. Must be of a compatible type.

write_path

where the constructed database should be written, defaults to memory only

show_progress

applied only if loading features from multiple files

Notes

We DO NOT check if a provided db already contains records from a flatfile.