A Wolfram Mathematica image processing code for studying magnetic control of magnetotactic bacteria swarms.
An application of the code and the underlying methods are shown in the following paper:
https://arxiv.org/abs/2404.18941
and are further described in
https://www.mdpi.com/2076-3417/11/20/9710
https://link.springer.com/article/10.1007/s00348-022-03445-2
https://link.springer.com/article/10.1007/s00348-023-03671-2