![]() |
Rosetta
2021.16
|
Classes | |
| class | Matrix |
| class | PlanePoints |
| class | PR_PyMOLServer |
| class | PR_UDPServer |
| class | StartUpError |
| Exceptions. More... | |
| class | XYZCoord |
Functions | |
| def | add_vectors |
| def | scalar_multiply |
| def | normalize |
| def | rotation_matrix_radians |
| def | multiply_matrix |
| def | rotate_vector |
| def | compute_plane_positions |
| def | draw_membrane_planes |
| def | make_axis |
| Graphing methods. More... | |
| def | scale_axes |
| def | get_ends |
| def | extract_coords |
| def | make_data |
| def | add_point |
| def | rescale_cartesian |
| def | connect_points |
| def | plot3d |
| def | set_spectrum |
| PyMOL spectrum coloring. More... | |
| def | main |
| Main PyMOLPyRosettaServer.py routines. More... | |
| def | start_rosetta_server |
Variables | |
| dictionary | COLOR_LIB |
| Constants. More... | |
| dictionary | X11_COLORS |
| def pyrosetta.PyMOLRosettaServer.add_point | ( | name, | |
| point, | |||
connect = '', |
|||
rescale = False, |
|||
scale = False, |
|||
axis_color = '', |
|||
num = 0, |
|||
banner = '' |
|||
| ) |
Adds a point to existing data, reconnecting points optionally. Adds 'point' to 'name' and connects it with color 'connect' (empty for no connection). 'rescale' will rescale the axes; 'scale' will label the scales; 'axis_color' determines the axis color; 'num' the intermediate scales, 'banner' is a resn name at 'point'.
References pyrosetta.PyMOLRosettaServer.rescale_cartesian().
Referenced by pyrosetta.PyMOLRosettaServer.make_data(), and pyrosetta.PyMOLRosettaServer.PR_PyMOLServer.process_packet().
| def pyrosetta.PyMOLRosettaServer.add_vectors | ( | v1, | |
| v2 | |||
| ) |
Add a pair of vectors represented as XYZcoord classes (see above)
Referenced by pyrosetta.PyMOLRosettaServer.compute_plane_positions().
| def pyrosetta.PyMOLRosettaServer.compute_plane_positions | ( | center, | |
| normal, | |||
| thickness, | |||
| rg, | |||
npoints = 4 |
|||
| ) |
Compute the position of the membrane planes based on provided normal, center, thickness, and radius of gyration
References pyrosetta.PyMOLRosettaServer.add_vectors(), ObjexxFCL.len(), basic::options::OptionKeys::relax::range.range, and pyrosetta.PyMOLRosettaServer.rotate_vector().
Referenced by pyrosetta.PyMOLRosettaServer.PR_PyMOLServer.process_packet().
| def pyrosetta.PyMOLRosettaServer.connect_points | ( | name, | |
color = 'red' |
|||
| ) |
Draws colored lines between consecutive points.
References pyrosetta.PyMOLRosettaServer.plot3d(), and basic::options::OptionKeys::relax::range.range.
Referenced by pyrosetta.PyMOLRosettaServer.plot3d().
| def pyrosetta.PyMOLRosettaServer.draw_membrane_planes | ( | plane_points, | |
| normal_vector | |||
| ) |
Draw CGO Planes Representing the upper & lower membrane planes Adapted from Evan Baugh's Draw Object code by Rebecca Alford to work with the framework
References pyrosetta.PyMOLRosettaServer.normalize().
Referenced by pyrosetta.PyMOLRosettaServer.PR_PyMOLServer.process_packet().
| def pyrosetta.PyMOLRosettaServer.extract_coords | ( | name | ) |
Returns the coords of a data container as three arrays.
Referenced by pyrosetta.PyMOLRosettaServer.rescale_cartesian().
| def pyrosetta.PyMOLRosettaServer.get_ends | ( | data | ) |
Determines the ends for axes from list. Defaults to min, max, but if not pos/neg. Determines based on closest point.
References ObjexxFCL.abs(), max(), and min().
Referenced by pyrosetta.PyMOLRosettaServer.rescale_cartesian().
| def pyrosetta.PyMOLRosettaServer.main | ( | ip, | |
| port | |||
| ) |
Main PyMOLPyRosettaServer.py routines.
References fmt.print().
| def pyrosetta.PyMOLRosettaServer.make_axis | ( | name, | |
| ends, | |||
| dr, | |||
scale = False, |
|||
axis_color = '', |
|||
num = 0 |
|||
| ) |
Graphing methods.
Make an axis 'name' from 'ends[0]' to 'ends[1]' on the 'dr' (direction). 'scale' bool tells to label axis or not; 'axis_color' determines the axis color; 'num' allows intermediate scale points.
References basic::options::OptionKeys::relax::range.range, and pyrosetta.PyMOLRosettaServer.scale_axes().
Referenced by pyrosetta.PyMOLRosettaServer.rescale_cartesian().
| def pyrosetta.PyMOLRosettaServer.make_data | ( | name, | |
| x_array, | |||
| y_array, | |||
| z_array, | |||
data_color = 'red' |
|||
| ) |
Generate a data object from three arrays.
References pyrosetta.PyMOLRosettaServer.add_point(), ObjexxFCL.len(), and basic::options::OptionKeys::relax::range.range.
Referenced by pyrosetta.PyMOLRosettaServer.plot3d().
| def pyrosetta.PyMOLRosettaServer.multiply_matrix | ( | matrix, | |
| vector | |||
| ) |
multiply matrix by 3D vector
Referenced by pyrosetta.PyMOLRosettaServer.rotate_vector().
| def pyrosetta.PyMOLRosettaServer.normalize | ( | normal | ) |
Ensure that the provided normal is a unit normal_vector
Referenced by pyrosetta.PyMOLRosettaServer.draw_membrane_planes().
| def pyrosetta.PyMOLRosettaServer.plot3d | ( | name, | |
| x_array, | |||
| y_array, | |||
z_array = [], |
|||
connect = 'red', |
|||
scale = True, |
|||
axis_color = 'blue', |
|||
num = 0 |
|||
| ) |
Default plotting tool with optional z points, connection, and axis color.
References pyrosetta.PyMOLRosettaServer.connect_points(), ObjexxFCL.len(), pyrosetta.PyMOLRosettaServer.make_data(), and pyrosetta.PyMOLRosettaServer.rescale_cartesian().
Referenced by pyrosetta.PyMOLRosettaServer.connect_points(), and pyrosetta.PyMOLRosettaServer.PR_PyMOLServer.process_packet().
| def pyrosetta.PyMOLRosettaServer.rescale_cartesian | ( | data, | |
| scale, | |||
| axis_color, | |||
| num | |||
| ) |
Rescales the 'data' axes (x, y, z) based on 'data' data:
'num', 'axis_color', 'scale'
References pyrosetta.PyMOLRosettaServer.extract_coords(), pyrosetta.PyMOLRosettaServer.get_ends(), and pyrosetta.PyMOLRosettaServer.make_axis().
Referenced by pyrosetta.PyMOLRosettaServer.add_point(), and pyrosetta.PyMOLRosettaServer.plot3d().
| def pyrosetta.PyMOLRosettaServer.rotate_vector | ( | vector, | |
| theta, | |||
| axis | |||
| ) |
Rotate some vector about a specified axis by some angle theta
References pyrosetta.PyMOLRosettaServer.multiply_matrix(), and pyrosetta.PyMOLRosettaServer.rotation_matrix_radians().
Referenced by pyrosetta.PyMOLRosettaServer.compute_plane_positions().
| def pyrosetta.PyMOLRosettaServer.rotation_matrix_radians | ( | axis, | |
| theta | |||
| ) |
Compute and return the rotation matrix associated with rotation about the given axis by theta radians
Referenced by pyrosetta.PyMOLRosettaServer.rotate_vector().
| def pyrosetta.PyMOLRosettaServer.scalar_multiply | ( | v, | |
| n | |||
| ) |
Multiply a vector by some scalar factor
| def pyrosetta.PyMOLRosettaServer.scale_axes | ( | name = 'x_axis or y_axis or z_axis' | ) |
Labels the selection name. Used here for convenience: axis point value str in resn.
Referenced by pyrosetta.PyMOLRosettaServer.make_axis().
| def pyrosetta.PyMOLRosettaServer.set_spectrum | ( | low = 'blue', |
|
high = 'red' |
|||
| ) |
PyMOL spectrum coloring.
Sets the energy coloring spectrum using the above COLOR_LIB dictionary.
References fmt.print(), basic::options::OptionKeys::relax::range.range, and numeric::crick_equations.x().
| def pyrosetta.PyMOLRosettaServer.start_rosetta_server | ( | ip = '', |
|
port = 65000 |
|||
| ) |
References fmt.print(), and basic::options::OptionKeys::relax::range.range.
| dictionary pyrosetta.PyMOLRosettaServer.COLOR_LIB |
Constants.
| dictionary pyrosetta.PyMOLRosettaServer.X11_COLORS |
1.8.7