This macro works for positive offsets or negative offsets into non-overlapping sequence space but fails for negative offsets into overlapping sequence space (i.e. where oldFirstResidue < newLastResidue < oldLast Residue). It also risks mangling negative NmrResidue ids.
It is superceded by the GUI menu item offered via right clicking on an NmrChain in the sidebar.
Yes exactly ! I found a way to overcome it by doing a two-step offset, first a large positive value (such as 500 or 1000), and then a negative value smaller, to get the final offset I wanted.
E.g here: +1000 then -1004 to get my final -4 offset without any overlapping issue.
At the end I do have of course one or two negative residues in my Final NMRChain, but in that case it is not an issue.
Thanks for answering !