1) First, align your sistem (for example with RMSD_Visualizer Tool or some script with measure fit).
2) Go to Tk Console (Extensions-Tk Console) and use the following script :
set fp [open "rmsf.dat" w] set sel [atomselect top "protein and name CA"] for {set i 0} {$i < [$sel num]} {incr i} { set rmsf [measure rmsf $sel first 1 last 4999 step 10] puts $fp "[expr {$i+1}] [lindex $rmsf $i]" } close $fp
In this example, the script will calculate the RMSF of all CA atoms from frame 1 to 4999.
Note: residues will apear from number 1 (correlative order)
"fp" is only the name of the first variable and is used to export the rmsf data with the code "[open "rmsf.dat" w]". May be your problem is a copy-paste mistake. You can download the following script attached (rmsf_script.txt). Copy all content of the script in the VMD TkConsole and then press ENTER when it shows "close $fp".
Ignacio Lizana How can I calculate RMSD regarding the previous time frame as a reference? I mean the ref frame is not the frame 0 it is the last one for each frame.