MCMICRO reader does not support new nf-core/mcmicro output formats
还没有人认领这个 Issue。
评估
调研方向
从 spatialdata_io.readers.mcmicro 开始,将其假设与 issue 中列出的两种输出布局进行比较。跟踪 registration、segmentation、quantification、markers 和 TMA cores 是如何被发现的,然后为多个样本和 segmenters、pipeline 自动检测以及显式 override 定义验证用例。完成的标准是 labsyspharm 和 nf-core 的输出都仍然可读,包括 WSI 和 TMA 用例。
由索引模型根据 Issue 内容生成。
描述
We recently completed a port of MCMICRO to nf-core (https://nf-co.re/mcmicro/2.0.0). There are minor changes to expected output formats, and the current spatialdata_io.readers.mcmicro reader — written against the original labsyspharm/mcmicro layout — does not read nf-core output.
What changed between the two pipelines:
| Aspect | labsyspharm/mcmicro | nf-core/mcmicro |
|---|---|---|
| Run config | qc/params.yml (workflow.tma) |
pipeline_info/params*.json (tma_dearray, segmentation) |
| Registration | registration/<sample>.ome.tif |
registration/ashlar/<sample>.ome.tif |
| Segmentation | segmentation/<module>-<sample>/{cell,nuclei}.ome.tif |
segmentation/<segmenter>/<sample>_<tool-suffix>.tif |
| Quantification | quantification/<module>-<sample>_<comp>.csv |
quantification/mcquant/<segmenter>/<sample>.csv |
| TMA cores | dearray/ + qc/coreograph/centroidsY-X.txt |
tma_dearray/ (plus TMA_MAP.tif) + tma_dearray/centroidsY-X.txt |
| Markers | markers.csv at root |
input sheet (often not copied to outdir); backsub/<sample>_backsub.csv when backsub runs |
| Samples / segmenters | single sample, typically one segmenter | multiple samples and multiple segmenters per run |
Gotchas found while testing against real nf-core/mcmicro output that will need to be considered:
- Segmentation mask filenames are tool-specific, not a uniform
_masksuffix — e.g.1_cp_masks.tif(cellpose) vsexemplar-002_1_mask.tif(mesmer). - The segmenter directory name differs between
segmentation/andquantification/mcquant/(e.g. deepcell_mesmer vs mesmer), so tables can't be linked to labels by an exact directory-name match. - With background subtraction, the registration image and the quantification tables carry different marker sets (e.g. 40 image channels vs 37 table markers).
- TMA core numbers must be parsed carefully — the sample name itself can contain digits (
exemplar-002_1_mask→ core1, not002) — andtma_dearray/also containsTMA_MAP.tif, which is not a core. - The
prelude/markers_markersheet_mqc.tsvfile is a long-format MultiQC validation report, not a usable wide marker sheet.
Proposal
Update the mcmicro reader to auto-detect the pipeline (with an explicit pipeline= override) and handle both layouts, including multiple samples and segmenters, in WSI and TMA modes. Backwards compatibility with labsyspharm output is preserved.
- 主要语言
- Python
- 星标
- 103
- 派生
- 65
- 平均合并
- 1 小时 8 分钟
- 30 天内合并 PR
- 3
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 条评论 ·
-
难度 3/5 1-2 天 新手友好度 52/100
scverse/spatialdata-io#408 ·
-
xenium
难度 4/5 3-5 天 新手友好度 52/100
scverse/spatialdata-io#407 ·
查看 scverse/spatialdata-io 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
bug
难度 1/5 1 小时以内 新手友好度 88/100
qgis/QGIS-Plugins-Website#459 ·
-
bug severity:medium
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
bot-found bug priority: P3
难度 2/5 1-3 小时 新手友好度 84/100
madenvel/KalinkaPlayer#179 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
ls1intum/edutelligence#1098 ·
维护者通常 1 天内回复