Skip to content

feat(utag_clustering_template): add utag_clustering_template and unit…#372

Merged
fangliu117 merged 2 commits intodevfrom
template_utag_clustering
Aug 2, 2025
Merged

feat(utag_clustering_template): add utag_clustering_template and unit…#372
fangliu117 merged 2 commits intodevfrom
template_utag_clustering

Conversation

@fangliu117
Copy link
Collaborator

… tests

Copilot AI review requested due to automatic review settings August 2, 2025 21:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new UTAG clustering template that ports functionality from NIDAP to a platform-agnostic Python implementation. The template provides spatial clustering analysis for single-cell data using the UTAG algorithm.

  • Implements run_from_json() function that loads AnnData, applies UTAG clustering with configurable parameters, and saves results
  • Adds comprehensive unit tests covering I/O workflows, parameter validation, and function calls
  • Includes proper error handling for parameter conversion and input validation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/spac/templates/utag_clustering_template.py Main template implementation with parameter parsing, UTAG clustering execution, and output handling
tests/templates/test_utag_clustering_template.py Unit tests covering workflow validation, error handling, and parameter conversion
Comments suppressed due to low confidence (1)

src/spac/templates/utag_clustering_template.py:67

  • The parameter name 'Parellel_Processes' has a spelling error. It should be 'Parallel_Processes' (with one 'l').
    Parallel_processes = params.get("Parellel_Processes", False)

@fangliu117 fangliu117 merged commit c616fdb into dev Aug 2, 2025
11 checks passed
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