Skip to content

Tables.delete_younger #2635

Open
Open
@jeromekelleher

Description

@jeromekelleher

I would find a Tables.delete_younger operation quite useful. I think it could be directly analogous to the existing delete_older operation, and would simply delete any edges (and mutations) that have a child younger than the specific date. For the specific case I have, I'd like mark younger samples as non-samples but that could easily be done as a postprocessing step.

Note this is related to the discussion about "pollarding" in #281.

We may also consider an equivalent to "decapitate" where we insert nodes into the edges that are broken, but I don't have any immediate application for this so wouldn't bother with it unless someone really wants it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Python APIIssue is about the Python APIenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions