Subsections


residue.copy

Image residue Image list-add

Synopsis

Copy all data associated with a residue.

Defaults

residue.copy(pipe_from=None, res_from=None, pipe_to=None, res_to=None)

Keyword arguments

pipe_from: The data pipe containing the residue from which the data will be copied. This defaults to the current data pipe.

res_from: The residue ID string of the residue to copy the data from.

pipe_to: The data pipe to copy the data to. This defaults to the current data pipe.

res_to: The residue ID string of the residue to copy the data to. If left blank, the new residue will have the same name as the old.

Description

This will copy all the data associated with the identified residue to the new, non-existent residue. The new residue cannot currently exist.

Prompt examples

To copy the residue data from residue 1 to the new residue 2, type:

[numbers=none]
relax> residue.copy(res_from=':1', res_to=':2')

To copy residue 1 of the molecule `Old mol' to residue 5 of the molecule `New mol', type:

[numbers=none]
relax> residue.copy(res_from='#Old mol:1', res_to='#New mol:5')

To copy the residue data of residue 1 from the data pipe `m1' to `m2', assuming the current data pipe is `m1', type:

[numbers=none]
relax> residue.copy(res_from=':1', pipe_to='m2')

[numbers=none]
relax> residue.copy(pipe_from='m1', res_from=':1', pipe_to='m2', res_to=':1')


The relax user manual (PDF), created 2020-08-26.