From: Prasad S Garimella (Prasad.Garimella_at_chemail.tamu.edu)
Date: Fri May 13 2005 - 17:02:51 CDT

Hi everybody,

I want to open multiple pdb files with different number of atoms each time. I have tried using animatepdbs.tcl (below) but it only loads pdbs files with same number of atoms. Is there any alternative for this problem?
Animatepdbs.tcl:
proc animatepdbs {start end fileformat} {
  set filename [format $fileformat [expr $start]]
  incr start
  puts "Reading initial frame in PDB sequence $filename"
  mol load pdb $filename

  puts "Reading PDB files as an animation..."
  for {set i $start} {$i <= $end} {incr i 1} {
    set filename [format $fileformat [expr $i]]
    animate read pdb $filename
  }
}

thanks

Prasad Garimella