Unable to read xenium data
まだ誰も着手していません。
評価
調査の方向性
xenium のエントリポイントと readers/xenium.py から始め、特に traceback に示されている _get_tables_and_circles の呼び出しを確認します。記載されている新しい Xenium 出力バンドルで失敗を再現し、reader が欠落している cell_feature_matrix.h5 ファイルを開こうとせずに、その .zarr ファイルを処理できることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Hi,
I have installed the latest development version of spatialdata-io using pip install git+https://github.com/scverse/spatialdata-io.git@main.
Then I tried the below code:
from spatialdata_io import xenium
sdata = xenium(path_to_xenium_folder)
I get the FileNotFoundError.
Error log:
INFO reading /Users/riyapodder/Downloads/Sample_13666_Region_1/cell_feature_matrix.h5
/var/folders/rd/07ft8cf97nzgfgsy6gfk0lzc0000gp/T/ipykernel_16029/698948949.py:1: DeprecationWarning: The default value of cells_as_circles will change to False in the next release. Please pass True explicitly to maintain the current behavior.
sdata = xenium("/Users/riyapodder/Downloads/Sample_13666_Region_1")
FileNotFoundError Traceback (most recent call last)
Cell In[19], line 1
----> 1 sdata = xenium("/Users/riyapodder/Downloads/Sample_13666_Region_1")
File /opt/miniconda3/envs/spatial_analysis_2/lib/python3.10/site-packages/spatialdata_io/_utils.py:47, in deprecation_alias..deprecation_decorator..wrapper(*args, **kwargs)
45 class_name = f.qualname
46 rename_kwargs(f.name, kwargs, aliases, class_name)
---> 47 return f(*args, **kwargs)
File /opt/miniconda3/envs/spatial_analysis_2/lib/python3.10/site-packages/spatialdata_io/readers/xenium.py:185, in xenium(path, cells_boundaries, nucleus_boundaries, cells_as_circles, cells_labels, nucleus_labels, transcripts, morphology_mip, morphology_focus, aligned_images, cells_table, n_jobs, imread_kwargs, image_models_kwargs, labels_models_kwargs)
182 cells_table = True
184 if cells_table:
--> 185 return_values = _get_tables_and_circles(path, cells_as_circles, specs)
186 if cells_as_circles:
187 table, circles = return_values
File /opt/miniconda3/envs/spatial_analysis_2/lib/python3.10/site-packages/spatialdata_io/readers/xenium.py:523, in _get_tables_and_circles(path, cells_as_circles, specs)
520 def _get_tables_and_circles(
521 path: Path, cells_as_circles: bool, specs: dict[str, Any]
522 ) -> AnnData | tuple[AnnData, AnnData]:
--> 523 adata = _read_10x_h5(path / XeniumKeys.CELL_FEATURE_MATRIX_FILE)
524 metadata = pd.read_parquet(path / XeniumKeys.CELL_METADATA_FILE)
525 np.testing.assert_array_equal(metadata.cell_id.astype(str), adata.obs_names.values)
...
File h5py/_objects.pyx:57, in h5py._objects.with_phil.wrapper()
File h5py/h5f.pyx:102, in h5py.h5f.open()
FileNotFoundError: [Errno 2] Unable to synchronously open file (unable to open file: name = '/Users/riyapodder/Downloads/Sample_13666_Region_1/cell_feature_matrix.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
my xenium folder contains these files:
analysis_summary.html cell_feature_matrix.zarr cells.zarr.zip transcripts.zarr
analysis.zarr cell_feature_matrix.zarr.zip experiment.xenium transcripts.zarr.zip
analysis.zarr.zip cells.zarr morphology.ome.tif
I understand that the data that I have is the new xenium output bundle. Is the xenium reader function not updated to handle this data? Or am I missing something? Requesting your kind assistance.
- 主要言語
- Python
- スター
- 103
- フォーク
- 64
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
scverse/spatialdata-io のほかの issue
-
documentation
難易度 2/5 半日 初心者へのやさしさ 65/100
scverse/spatialdata-io#161 · コメント 13 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
scverse/spatialdata-io#422 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
scverse/spatialdata-io#419 · コメント 1 件 ·
-
MCMICRO reader does not support new nf-core/mcmicro output formats対応中かも @adamjtaylor が 83 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 48/100
scverse/spatialdata-io#409 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
scverse/spatialdata-io#408 ·
scverse/spatialdata-io の issue をすべて見る
似ている issue
-
Atomic append fails to create a missing file対応中かも @harbinresearcher が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
fabiocaccamo/python-fsutil#201 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
task
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
danparshall/claude_researcher#87 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
GhostManager/Ghostwriter#998 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
datajoint/datajoint-python#1586 ·
メンテナーはふだん 1 日以内に返信