Automating the crystallography jigsaw puzzle