Structure-based alignment