Residue.get_aligned_residue() — get aligned residue in another sequence

get_aligned_residue(seq)
Given a sequence (or template structure) in the same alignment, this returns another Residue object, for the residue in that sequence which is aligned with this residue. (If there is a gap in the other sequence, None is returned instead.) Not available for model sequences.

See also alignment.positions.