Hi,
you can merge your i and i-1 NmrResidues if you like. The only thing to bear in mind is that you can’t undo this operation.
So make sure you save and archive your project or do this in a separate new project.
Then you can simply use this macro:
# Macro to merge "-1" NmrAtoms with the actual i-1 NmrAtoms
# Make sure the correct NmrChain has been selected in the first line
nmrChain = project.getByPid('NC:A')
with undo():
for nmrRes in nmrChain.nmrResidues:
if nmrRes.relativeOffset == -1:
if nmrRes.mainNmrResidue:
if nmrRes.mainNmrResidue.previousNmrResidue:
newSeqCode = nmrRes.mainNmrResidue.previousNmrResidue.sequenceCode
for nmrAtom in nmrRes.nmrAtoms:
nmrAtom.assignTo(sequenceCode=newSeqCode, mergeToExisting=True)
project.deleteObjects(nmrRes)
(Taken from the post at Synthetic peak list and merging i and i-1 - #3 by VickyH)
For information about running macros go to
Vicky