This old version of Proteopedia is provided for student assignments while the new version is undergoing repairs. Content and edits done in this old version of Proteopedia after March 1, 2026 will eventually be lost when it is retired in about June of 2026.
Apply for new accounts at the new Proteopedia. Your logins will work in both the old and new versions.
User:Karsten Theis/Linear interpolation
From Proteopedia
This is a Jmol script that does linear interpolation. You need two sets of atoms that contain the same structure in the same order (but in a different conformation or position). Here, I am using residues 5 and 6 of 1BNA.
load =1BNA
display 5 or 6
five = {5}.xyz.all
six = {6}.xyz.all
interp = six
progress = 0.5
ssergorp = 1 - progress
for (var i FROM [1,21]) {interp[i] = (five[i] * progress + six[i] * ssergorp)}
{6}.xyz = @interp
Try it
| |||||||||||
