1. Read in an existing PDB, assign chain IDs, then write it out (as in
the examples above).
2. Override automodel.user_after_single_model(), and set the chain IDs
there, immediately before each generated model is written to disk.
3. Override automodel.special_patches(), and set the chain IDs in there.
This will have a similar effect to (2), except that the rename is
done before any restraints are generated, so if you are adding
user-defined restraints, those will need to use your new chain IDs
to refer to the atoms.
(b) renumbering the atom serial number,
TER inclusive?
Modeller always sets the atom serial numbers starting from 1, so there
is no way to change that. I'm guessing you want to do this in order to
combine multiple single-chain PDBs into one. But that's straightforward
- just concatenate the single-chain PDBs, with a TER record in between;
most programs won't care that the serial numbers or chain IDs are
duplicated. But if they do, just read that concatenated file back into
Modeller using complete_pdb(), then write it out again with
model.write(). This will automatically reassign the atom serial numbers
and chain IDs for you.