VMD-L Mailing List
From: Prasad S Garimella (Prasad.Garimella_at_chemail.tamu.edu)
Date: Fri May 13 2005 - 17:02:51 CDT
- Next message: Blake Charlebois: "RE: Total charge query?"
- Previous message: Chang, Christopher: "Total charge query?"
- Next in thread: Axel Kohlmeyer: "Re: Open diff pdbs with diff # of atoms?"
- Reply: Axel Kohlmeyer: "Re: Open diff pdbs with diff # of atoms?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Blake Charlebois: "RE: Total charge query?"
- Previous message: Chang, Christopher: "Total charge query?"
- Next in thread: Axel Kohlmeyer: "Re: Open diff pdbs with diff # of atoms?"
- Reply: Axel Kohlmeyer: "Re: Open diff pdbs with diff # of atoms?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]