Closed vingman closed 6 years ago
Fixed. It now trims the longer array to be the same size as the shorter one. Also added a reorder => 1/0 kwarg to RMSD. This will systematically try different atom orders to find the best overlap, for cases when the atom numberings are not conserved across files.
Line 1160 in Geometry.pm _RMSD() loops over reference geometry atoms ($atom1_ref). However, if this is smaller than $atom2_ref, it tries to index out of bounds.