Skip to content

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

Merged
timtreis merged 3 commits into
mainfrom
move-make-stitched-labels-to-tl
Aug 10, 2026
Merged

Move make_stitched_labels from experimental.im to experimental.tl#1254
timtreis merged 3 commits 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.08%. Comparing base (a88aa72) to head (d17ea93).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1254   +/-   ##
=======================================
  Coverage   77.08%   77.08%           
=======================================
  Files          63       63           
  Lines        9436     9436           
  Branches     1585     1585           
=======================================
  Hits         7274     7274           
  Misses       1561     1561           
  Partials      601      601           
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.

@timtreis
timtreis requested a review from selmanozleyen August 10, 2026 16:16

@selmanozleyen selmanozleyen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

@timtreis
timtreis merged commit 9b81fe7 into main Aug 10, 2026
15 checks passed
@timtreis
timtreis deleted the move-make-stitched-labels-to-tl branch August 10, 2026 20:07
selmanozleyen added a commit to selmanozleyen/squidpy that referenced this pull request Aug 11, 2026
Conflict in src/squidpy/experimental/tl/__init__.py: kept the branch's
align/AlignResult exports and folded in upstream's make_stitched_labels,
which moved from experimental.im to experimental.tl in scverse#1254.
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.

2 participants