https://github.com/emanuega/MERlin/blob/902443093fa7265881c3b1940b448cf483065987/merlin/analysis/globalalign.py#L10