Thanks for the interesting work,
I am trying to run rna2seg on CosMx data, but get this error during patch creation:
create_patch_rna2seg(sdata=sdata,
... image_key=image_key,
... points_key=points_key,
... patch_width=patch_width,
... patch_overlap=patch_overlap,
... min_points_per_patch=min_points_per_patch,
... folder_patch_rna2seg = folder_patch_rna2seg,
... gene_column_name=gene_column_name,
... overwrite = True)
[INFO] (sopa.patches._patches) Added 192 patch(es) to sdata['sopa_patches_rna2seg_6000_200']
[########################################] | 100% Completed | 18m 2ss
[########################################] | 100% Completed | 17m 37s
Traceback (most recent call last):
File "", line 1, in
File "/opt/common/tools/ric.iannacone/envs/RNA2seg/lib/python3.10/site-packages/rna2seg/dataset_zarr/patches.py", line 100, in create_patch_rna2seg
tp.write_image_scale(
File "/opt/common/tools/ric.iannacone/envs/RNA2seg/lib/python3.10/site-packages/rna2seg/dataset_zarr/patches.py", line 182, in write_image_scale
self._write_patch_bound()
File "/opt/common/tools/ric.iannacone/envs/RNA2seg/lib/python3.10/site-packages/rna2seg/dataset_zarr/patches.py", line 241, in _write_patch_bound
with open(path2save_json, "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/beegfs/scratch/ric.iannacone/ric.iannacone/prj/Spatial/benchmark_ist/data/cosmx/NormalLiverFiles/for_sopa/normal_liver_rna2seg.zarr/.rna2seg_6000_200/12/bounds.json'
Thanks for the interesting work,
I am trying to run rna2seg on CosMx data, but get this error during patch creation: