tskit-dev / tsbrowse

Utilities for evaluating inferred tree sequences
MIT License
3 stars 8 forks source link

Add option to window the popgen plots over n trees #97

Closed duncanMR closed 3 weeks ago

duncanMR commented 1 year ago

Gertjan Bisschop suggested that we add another option for windowing the Popgen tab plots, such that each window covers n trees for a given n. At the moment, we can either choose a fixed number of windows or have one window per tree (i.e. n =1).

benjeffery commented 1 year ago

Tsqc is just exposing the tskit options here, I don't think multiple trees is an option. Could be though if someone wanted to implement it.

jeromekelleher commented 1 year ago

Would be easy enough, something like

windows = ts.breakpoints(as_array=True)[::k]

would pull out every kth breakpoint (but would need some special handing of the trailing values) I think?

benjeffery commented 3 weeks ago

Popgen tab has been shelved so closing for now.