i have grafted a cap of a protein onto another uncapped protein, and now the pdb file is not consistent. i am about to write a perl script to fix up the numbering and remove the redundant terminus. are there already tools to do such a thing?