core

class pyrosetta.distributed.packed_pose.core.PackedPose(pose_or_pack)

Bases: object

Serializable, read-only access to a serialized pose object.

PackedPose functions as the equivalent of the “Pose” object within the pyrosetta.distributed namespace. It holds a serialized pose object and a cached dictionary of scores extracted from the serialized pose. It can be “unpacked” into a working pose or isomorphicly represented as primitive datatypes or pandas data structures.

The “primitive” datatype represention of PackedPosed is a dict containing, at least, the key “packed_pose” holding a base64-encoded unicode string of the pickled pose object. This representation supports transparent interconversion between json and the packed format. In contrast, PackedPose includes the bytes representation of the pose object and is not suitable for serialization as text.

It should be noted that all pickled representations are highly compressible.

pickled_pose
property pose
scores
update_scores(*score_dicts, **score_kwargs)
pyrosetta.distributed.packed_pose.core.pack_result(func)
pyrosetta.distributed.packed_pose.core.to_dict(pose_or_pack)
pyrosetta.distributed.packed_pose.core.to_dict(none: None)
pyrosetta.distributed.packed_pose.core.to_dict(maybe_packed_dict: dict)
pyrosetta.distributed.packed_pose.core.to_dict(container: set)
pyrosetta.distributed.packed_pose.core.to_dict(container: tuple)
pyrosetta.distributed.packed_pose.core.to_dict(container: list)
pyrosetta.distributed.packed_pose.core.to_dict(generator: Generator)
pyrosetta.distributed.packed_pose.core.to_packed(pose_or_pack)
pyrosetta.distributed.packed_pose.core.to_packed(none: None)
pyrosetta.distributed.packed_pose.core.to_packed(b64_encoded_pickle: str)
pyrosetta.distributed.packed_pose.core.to_packed(maybe_packed_dict: dict)
pyrosetta.distributed.packed_pose.core.to_packed(container: set)
pyrosetta.distributed.packed_pose.core.to_packed(container: tuple)
pyrosetta.distributed.packed_pose.core.to_packed(container: list)
pyrosetta.distributed.packed_pose.core.to_packed(generator: Generator)
pyrosetta.distributed.packed_pose.core.to_pose(pack)
pyrosetta.distributed.packed_pose.core.to_pose(none: None)
pyrosetta.distributed.packed_pose.core.to_pose(p: Pose)
pyrosetta.distributed.packed_pose.core.to_pose(b64_encoded_pickle: str)
pyrosetta.distributed.packed_pose.core.to_pose(maybe_packed_dict: dict)
pyrosetta.distributed.packed_pose.core.to_pose(container: set)
pyrosetta.distributed.packed_pose.core.to_pose(container: tuple)
pyrosetta.distributed.packed_pose.core.to_pose(container: list)
pyrosetta.distributed.packed_pose.core.to_pose(generator: Generator)