VMD-L Mailing List
From: Georcki Ropon (groponp_at_gmail.com)
Date: Wed Nov 17 2021 - 19:04:32 CST
- Next message: Axel Kohlmeyer: "Re: Change Atom serial Atom"
- Previous message: Francesco Pietra: "chloroform box ChARMM"
- Next in thread: Axel Kohlmeyer: "Re: Change Atom serial Atom"
- Reply: Axel Kohlmeyer: "Re: Change Atom serial Atom"
- Reply: Vermaas, Josh: "Re: Change Atom serial Atom"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Dear user,
I want change serial atom number , my number start with 3000 but I want all number (para chain B) start 1 2 3 4 ….
Bellow my code but not fix it.
mol new prot_orient_add_ter.pdb
set prob [atomselect top "segid PROB"]
set serials [$prob get serial]
set count 0
foreach atom $serials {
$prob set serial $count
incr $count
}
set all [atomselect top all]
$all writepdb renum.pdb
quit
- Next message: Axel Kohlmeyer: "Re: Change Atom serial Atom"
- Previous message: Francesco Pietra: "chloroform box ChARMM"
- Next in thread: Axel Kohlmeyer: "Re: Change Atom serial Atom"
- Reply: Axel Kohlmeyer: "Re: Change Atom serial Atom"
- Reply: Vermaas, Josh: "Re: Change Atom serial Atom"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]