Skip to content

Plot distribution of ancestor spans #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jeromekelleher opened this issue Jun 1, 2023 · 1 comment
Closed

Plot distribution of ancestor spans #19

jeromekelleher opened this issue Jun 1, 2023 · 1 comment
Assignees

Comments

@jeromekelleher
Copy link
Member

For a given node u, its span is the width of genome where its a child (lets ignore trapped ancestral material)

child_edges = ts.edges_child == u
left = np.min(ts.edges_left[child_edges])
right = np.max(ts.edges_right[child_edges])
span = right - left

Plot the

  1. Histogram for all non sample nodes
  2. Scatter plot of span vs node time.
@savitakartik savitakartik self-assigned this Jul 24, 2023
savitakartik added a commit to savitakartik/tsqc that referenced this issue Aug 18, 2023
jeromekelleher pushed a commit to savitakartik/tsqc that referenced this issue Aug 21, 2023
@savitakartik
Copy link
Collaborator

completed in #61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants