Skip to content

Collapse equivalent edges/blocks for EP #513

Description

@nspope

Applying hard-masking to tree sequences will result in many split small edges, especially if the mask is fine-scale. It'd be better for the EP algorithm to collapse equivalent edges---those with the same parent and child node---prior to EP, by summing the observed and expected mutational target. This is trivial to do, and will both reduce the runtime and make EP more stable. The catch is that singleton edges need to be handled separately because of how the phase-agnostic algorithm works.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions