Hi,
I am trying to do random rotation of a structure in a PDB file. I am using for that rotaxis from Bio.PDB module. Everything works fine if center of the structure lies in the beginning of the coordinate system. To rotate such structure along "X" axis by 90 degrees I am using:
rotaxis(90, Vector(1,0,0))
Problem starts if center of the structure lies outside the center of coordinate system. If structure center is defined by let's say coordinates (-10,20,44) using:
rotaxis(90, Vector(-9,20,44))
returns false result.
Does anyone know how to define custom rotation axis parallel to x / y / z?
Thank you in advance!
Could you please add the code for how you determine the structure center? Also, which structure are you using?