https://github.com/uwmisl/poretitioner/blob/4f6b99561718a2c5f1ed041abd2caa176518a049/src/poretitioner/utils/segment.py#L700-L700