CopickPicksFile
copick.models.CopickPicksFile
Bases: BaseModel
Datamodel for a collection of locations, orientations and other metadata for one pickable object.
Attributes:
-
pickable_object_name(str) –Pickable object name from CopickConfig.pickable_objects[X].name
-
user_id(str) –Unique identifier for the user or tool name.
-
session_id(Union[str, Literal['0']]) –Unique identifier for the pick session (prevent race if they run multiple instances of napari, ChimeraX, etc.) If it is 0, this pick was generated by a tool.
-
run_name(Optional[str]) –Name of the run this pick belongs to.
-
voxel_spacing(Optional[float]) –Voxel spacing for the tomogram this pick belongs to.
-
unit(str) –Unit for the location of the pick.
-
points(List[CopickPoint]) –References to the points for this pick.
-
trust_orientation(Optional[bool]) –Flag to indicate if the angles are known for this pick or should be ignored.
copick.models.CopickPoint
Bases: BaseModel
Point in 3D space with an associated orientation, score value and instance ID.
Attributes:
-
location(CopickLocation) –Location in 3D space.
-
transformation(ndarray) –Transformation matrix.
-
instance_id(Optional[int]) –Instance ID.
-
score(Optional[float]) –Score value.
transformation_
transformation_: Optional[List[List[float]]] = [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]
transformation
The transformation necessary to transform coordinates from the object space to the tomogram space.
Returns:
-
ndarray–np.ndarray: 4x4 transformation matrix.