merge_criteria¶
Predicate functions consumed by FeatureDB.merge. Each has the
signature (acc: Feature, cur: Feature, components: list[Feature]) -> bool.
Merge predicates — pure functions consumed by FeatureDB.merge.
Signature: (acc: Feature, cur: Feature, components: list[Feature]) -> bool.
acc is the running accumulator; cur is the candidate to fold in;
components is the list of already-folded features. All callables return
True if the candidate should be merged into the accumulator.
Mirrors the legacy gffutils.merge_criteria module.