Assuming you have a good reason for this, you can apply any arbitrary
transform fairly straightforwardly in ChimeraX. In the console
(Tools/General/Shell), and assuming your model is the only one loaded:
m = session.models.list()[0]
import numpy
transform_matrix = numpy.array([[r11, r12, r13, tx], [r21, r22, r23,
ty], [r31, r32, r33, tz]])
from chimerax.core.geometry import Place
transform = Place(matrix=transform_matrix)
m.atoms.coords = transform.moved(m.atoms.coords)
... which could of course be extended into a script to loop over many
models/transforms with a bit more work.
Hope this helps,
Tristan
On 2018-03-12 10:24, Phil Evans wrote:
> The command ROTATE in pdbset should allow to apply any valid rotation
> matrix, ie determinant = +1.0
>
> Anything else will distort the coordinates
>
>
>> On 12 Mar 2018, at 10:13, Franck Coste <[log in to unmask]>
>> wrote:
>>
>> Hi all,
>>
>> I'd like to apply an improper rotation matrix to PDB files but it
>> seems it's not allowed in pdbset. Does anyone know a program where I
>> could do this ?
>>
>> Thanks in advance.
>>
>> Regards,
>>
>> Franck.
>> --
>> <Signature.JPG>
|