期刊:Cell Reports Methods (2026-02-12) ·
DOI:10.1016/j.crmeth.2026.101306 ·
开源许可:MIT (allowed)
上游仓库:https://github.com/JurgenKriel/SMINT @ 95c662807b73
# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip smint-mcp.zip && cd smint-mcp
bash install.sh
.venv/bin/python selftest.py
# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add smint -- "$PWD/.venv/bin/python" "$PWD/server.py"
# 3. 或启动远程 Streamable HTTP MCP 服务端供团队/网页直接调用
.venv/bin/python server.py --transport http --host 0.0.0.0 --port 8000
estimate_pretransform
MCP Verified ✓
Coarse pre-registration: search flips and rotations (plus automatic scale fitting) to bring a source point set such as spatial metabolomics pixels onto a reference such as spatial transcriptomics spots, scored by raster overlap (smint.alignment.pretransform).
{"best_rotation_deg": 90.0, "flip_x": false, "flip_y": false, "scale_x": 10.680549132947977, "scale_y": 10.680549132947977, "overlap_before": 0.0, "overlap_after": 0.9209764170459247, "orientations_tested": 96, "n_source": 51565, "n_reference": 9000}register_same_section
MCP Verified ✓
Register post-stain nuclei centroids onto Xenium cell centroids from the same section (multiround displacement voting, affine, RANSAC or TPS) and report held-out target registration error, with optional ground-truth error (smint.alignment.register_centroids).
{"method": "multiround", "n_source": 4601, "n_target": 4000, "n_matched": 2867, "tre_initial_mean": 12.383047602879103, "tre_fit_mean": 3.4414342530713062, "tre_validation_mean": 4.581062420235117, "tre_validation_std": 4.897714565750533, "improved_on_heldout": true, "rounds": ["initial", "affine", "tps"], "mutual_within_5_before": 0.07883461868037704, "mutual_within_5_after": 0.7275064267352185, "mutual_within_10_before": 0.32562125107112255, "mutual_within_10_after": 0.8320479862896315, "median_nn_before": 12.751138968735221, "median_nn_after": 3.262182218429682, "truth_n_points": 3601, "truth_median_error_before_um": 17.970336363017722, "truth_median_error_after_um": 1.2028400936293913, "truth_p90_error_after_um": 2.5472795756787825}compare_registration_methods
MCP Verified ✓
Benchmark several SMINT centroid registration methods on the same pair of centroid sets; ranks them by true position error when ground truth is given, otherwise by held-out TRE ratio.
{"best_method": "multiround", "ranking_basis": "true median position error", "per_method": {"affine": {"status": "ok", "n_matched": 2586, "tre_initial": 10.315536132940098, "tre_validation": 9.854595044123963, "runtime_sec": 0.013, "error": "", "truth_median_um": 16.102145542389042}, "ransac+tps": {"status": "ok", "n_matched": 2586, "tre_initial": 10.315536132940098, "tre_validation": 11.154718258020921, "runtime_sec": 0.651, "error": "", "truth_median_um": 15.892054536945034}, "multiround": {"status": "ok", "n_matched": 2867, "tre_initial": 12.383047602879103, "tre_validation": 4.581062420235117, "runtime_sec": 0.253, "error": "", "truth_median_um": 1.2028400936293913}}, "failed_methods": []}score_alignment
MCP Verified ✓
Correspondence-free alignment quality of a registered point set against a target: median nearest-neighbour distance and mutual-neighbour fractions within 5 and 10 units (smint.alignment.alignment_quality).
{"median_nn": 12.855242043617904, "mutual_within_5": 0.08128667680938927, "mutual_within_10": 0.2871114975005434, "n_moved": 4601, "n_target": 4000, "mean_nn_moved_to_target": 13.422212579759265, "mean_nn_target_to_moved": 12.595775931210076}

