Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interact_spatial_scatter notworking #330

Open
solivehong opened this issue Sep 10, 2024 · 3 comments
Open

interact_spatial_scatter notworking #330

solivehong opened this issue Sep 10, 2024 · 3 comments

Comments

@solivehong
Copy link

hello
stereopy using interact_spatial_scatter cannot save or export lasso area

version = 1.4.1

---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
Cell In[5], line 1
----> 1 ins.export_high_res_area(
      2     data_path,
      3     './SS200000135TL_D1.tissue.high_res.gef',
      4     # drop=True
      5 )

File ~/project/AS_human/porject_envs/st/lib/python3.8/site-packages/stereo/plots/interact_plot/poly_selection.py:281, in PolySelection.export_high_res_area(self, origin_file_path, output_path, drop)
    279 make_dirs(output_path)
    280 if self.data.file_format == 'gef':
--> 281     coors = self.get_selected_area_coors(drop)
    282     # print('coors length: %s' % len(coors))
    283     if not coors or len(coors) == 0:

File ~/project/AS_human/porject_envs/st/lib/python3.8/site-packages/stereo/plots/interact_plot/poly_selection.py:138, in PolySelection.get_selected_area_coors(self, drop)
    137 def get_selected_area_coors(self, drop=False) -> list:
--> 138     selected_exp_data = self.get_selected_areas(drop)
    139     if selected_exp_data is not None:
    140         return selected_exp_data.position.tolist()

File ~/project/AS_human/porject_envs/st/lib/python3.8/site-packages/stereo/plots/interact_plot/poly_selection.py:150, in PolySelection.get_selected_areas(self, drop)
    144 """
    145 get selected area exp boundary coords, list contains each x,y
    146 Returns:
    147 
    148 """
    149 if len(self.list_poly_selection_coors) == 0:
--> 150     raise Exception('Please select the data area in the picture first!')
    152 print("processing selected {} area".format(len(self.list_poly_selection_coors)))
    153 # list_poly_selection_exp_coors = []
    154 # data_set = set()

Exception: Please select the data area in the picture first!
@tanliwei-coder
Copy link
Collaborator

tanliwei-coder commented Sep 11, 2024

image

Did you manupulate according to above instructions strictly?

@solivehong
Copy link
Author

image

Did you manupulate according to above instructions strictly?

yes i do

@solivehong
Copy link
Author

image
Did you manupulate according to above instructions strictly?

yes i do
image

but i did not shown
The selected areas have been exported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants