stacker.pairwise_distance.increment_residue#
- increment_residue(residue)[source]#
Increments residue ID by 1
Useful when converting from mdtraj 0-index residue naming to 1-indexed
- Parameters:
- residuestr
The residue id given by trajectory.topology.residue(i)
- Returns:
- incremented_idstr
The residue id with the sequence number increased by 1
Examples
>>> increment_residue('G43') 'G44'