Skip to content

Move make_stitched_labels from experimental.im to experimental.tl - #1254

Open
timtreis wants to merge 1 commit into
mainfrom
move-make-stitched-labels-to-tl
Open

Move make_stitched_labels from experimental.im to experimental.tl#1254
timtreis wants to merge 1 commit into
mainfrom
move-make-stitched-labels-to-tl

Conversation

@timtreis

@timtreis timtreis commented Aug 6, 2026

Copy link
Copy Markdown
Member

What

Moves make_stitched_labels from squidpy.experimental.im to squidpy.experimental.tl.

Why

The tiling-QC / cut-cell stitching workflow is four steps:

  1. tl.calculate_tiling_qc — score cells for tile-boundary artifacts
  2. tl.assign_stitch_groups — pair the cut pieces across seams
  3. make_stitched_labels — materialise the merged labels
  4. pl.tiling_qc — visualise

Steps 1–2 already live in tl, but step 3 sat in im. That split the pipeline across two modules and hurt discoverability. This PR co-locates the whole workflow in tl so users find all of it in one namespace.

Co-locate all four steps of the tiling-QC / stitching workflow
(calculate_tiling_qc, assign_stitch_groups, make_stitched_labels, and
the pl.tiling_qc viz) so the pipeline is discoverable in one place.
Previously make_stitched_labels lived in `im` (it emits a labels
raster), splitting the workflow across `tl` and `im`.

Pure move: the module uses absolute imports, so no internal import
changes are needed. Updates both __init__ exports, docs/api.md, and
the test references.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.24%. Comparing base (ca07e64) to head (8ce56b0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1254   +/-   ##
=======================================
  Coverage   77.24%   77.24%           
=======================================
  Files          63       63           
  Lines        9378     9378           
  Branches     1579     1579           
=======================================
  Hits         7244     7244           
  Misses       1532     1532           
  Partials      602      602           
Files with missing lines Coverage Δ
src/squidpy/experimental/tl/_stitched_labels.py 84.57% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant