Skip to content

Efficiently calculating number of mutations per site #3178

Answered by nspope
hyanwong asked this question in Q&A
Discussion options

You must be logged in to vote

I use numpy.bincount(ts.mutations_site, minlength=ts.num_sites)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jeromekelleher
Comment options

@hyanwong
Comment options

hyanwong May 28, 2025
Maintainer Author

Answer selected by hyanwong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants