gffutils.interface.FeatureDB.delete
- FeatureDB.delete(features, make_backup=True, **kwargs)[source]
Delete features from database.
- featuresstr, iterable, FeatureDB instance
If FeatureDB, all features will be used. If string, assume it’s the ID of the feature to remove. Otherwise, assume it’s an iterable of Feature objects. The classes in gffutils.iterators may be helpful in this case.
- make_backupbool
If True, and the database you’re about to update is a file on disk, makes a copy of the existing database and saves it with a .bak extension.
- Return type:
FeatureDB object, with features deleted.