wfondrie / mokapot

Fast and flexible semi-supervised learning for peptide detection in Python
https://mokapot.readthedocs.io
Apache License 2.0
43 stars 15 forks source link

[Upgrade] Migrate to using `numpy.random.Generator` for random number generation. #55

Closed wfondrie closed 1 year ago

wfondrie commented 2 years ago

Currently mokapot uses the old numpy.random functions to control random number generation. We should upgrade to using the new numpy.random.Generator interface.

Alongside this change, we should add a random_state or rng argument to much of the mokapot functionality.