Skip to content

membrain-pick surfroama doesn't show the particles from .h5 file #42

Description

@amineuron

First of all, thank you for the great effort on all the membrain packages, I was able to train and predict points successfully.

That said, I noticed an issues:

When running membrain_pick surforama, the code fails because QtPointIO has no attribute _assign_orientations_from_nearest_triangles, which looks like a method that is not implemented.

details:
membrain_pick surforama --h5-path predict_output/Position_22_6_Position_22_6m16.h5 --tomogram-path ./Position_22_6.mrc
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ /home/amin/miniconda3/envs/membrain_all/lib/python3.9/site-packages/membrain_pick/cli/surforama_cli.py:74 in surforama │
│ │
│ 71 │ │ │ surforama_widget = initialize_surforama_widget( │
│ 72 │ │ │ │ points, faces, volume_layer, viewer, normal_offset=normal_offset │
│ 73 │ │ │ ) │
│ ❱ 74 │ │ │ display_cluster_centers( │
│ 75 │ │ │ │ viewer, mesh_data, pixel_size, surforama_widget, point_size=point_size │
│ 76 │ │ │ ) │
│ 77 │ │ else: │
│ │
│ /home/amin/miniconda3/envs/membrain_all/lib/python3.9/site-packages/membrain_pick/napari_utils/surforama_cli_utils.py:148 in display_cluster_centers │
│ │
│ 145 │ │ │ │
│ 146 │ │ │ surforama_widget.picking_widget.enabled = True │
│ 147 │ │ │ point_io = surforama_widget.point_writer_widget │
│ ❱ 148 │ │ │ initialize_points( │
│ 149 │ │ │ │ point_io=point_io, │
│ 150 │ │ │ │ point_coordinates=cluster_centers, │
│ 151 │ │ │ │ point_size=point_size, │
│ │
│ /home/amin/miniconda3/envs/membrain_all/lib/python3.9/site-packages/membrain_pick/napari_utils/surforama_cli_utils.py:107 in initialize_points │
│ │
│ 104 ): │
│ 105 │ │
│ 106 │ │
│ ❱ 107 │ normal_data, up_data = point_io._assign_orientations_from_nearest_triangles( │
│ 108 │ │ point_coordinates=point_coordinates │
│ 109 │ ) │
│ 110 │ features_table = { │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'QtPointIO' object has no attribute '_assign_orientations_from_nearest_triangles'

I could show these points on the surfaces how you have shown in the colab notebook, but can see them with membrain-pick

from surforama.gui.qt_point_io import QtPointIO

I also had question when we pick the points on extended Surfogram like (+7vx), the training consider this expantion while just got the mesh and points as an input?

Cheers,
Amin

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions