Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

MCMICRO reader does not support new nf-core/mcmicro output formats

未关闭
#409 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
data

调研方向

从 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 _mask suffix — e.g. 1_cp_masks.tif (cellpose) vs exemplar-002_1_mask.tif (mesmer).
  • The segmenter directory name differs between segmentation/ and quantification/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 → core 1, not 002) — and tma_dearray/ also contains TMA_MAP.tif, which is not a core.
  • The prelude/markers_markersheet_mqc.tsv file 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

scverse/spatialdata-io 的其他 Issue

查看 scverse/spatialdata-io 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。