sopa icon indicating copy to clipboard operation
sopa copied to clipboard

[Bug]ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.

Open Yifan-debug opened this issue 6 months ago • 2 comments

Description

I try to learn the sopa with example data.

Here is the code I copy from example file. patches = sopa.segmentation.Patches2D(sdata, image_key, patch_width=1200, patch_overlap=50) patches.write() from sopa._sdata import get_spatial_image print(get_spatial_image(sdata, image_key).c.values) channels = ["DAPI"] method = sopa.segmentation.methods.cellpose_patch(diameter=35, channels=channels, flow_threshold=2, cellprob_threshold=-6) segmentation = sopa.segmentation.StainingSegmentation(sdata, method, channels, min_area=2500)

The cellpose boundaries will be temporary saved here. You can choose a different path

cellpose_temp_dir = "tuto.zarr/.sopa_cache/cellpose" segmentation.write_patches_cells(cellpose_temp_dir)

cells = sopa.segmentation.StainingSegmentation.read_patches_cells(cellpose_temp_dir) cells = sopa.segmentation.shapes.solve_conflicts(cells) shapes_key = "cellpose_boundaries" # name of the key given to the cells in sdata.shapes sopa.segmentation.StainingSegmentation.add_shapes(sdata, cells, image_key, shapes_key)

Expected behavior

This is my first time run the example data, I don't know what is should like.

System

  • OS: Vscode
  • Python version 3.10
Dependencies versions
Paste here what 'pip list' gives you.

Yifan-debug avatar Aug 11 '24 16:08 Yifan-debug