We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d2ff8e commit 8caf830Copy full SHA for 8caf830
python/tskit/trees.py
@@ -5972,6 +5972,10 @@ def mutations_site(self):
5972
:ref:`sec_mutation_table_definition` as a numpy array (dtype=np.int32).
5973
Equivalent to ``ts.tables.mutations.site`` (but avoiding the full copy
5974
of the table data that accessing ``ts.tables`` currently entails).
5975
+
5976
+ .. note::
5977
+ To efficently get an array of the number of mutations per site, you
5978
+ can use ``np.bincount(ts.mutations_site, minlength=ts.num_sites)``.
5979
"""
5980
return self._mutations_site
5981
0 commit comments