load_annotations#
- load_annotations(*, path: os.PathLike, seqids: Optional[str] = None, db: cogent3.core.annotation_db.SupportsFeatures = None, write_path: os.PathLike = ':memory:', show_progress: bool = False) cogent3.core.annotation_db.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.