Skip to content

feat(spatial_interaction_template): add spatial_interaction_template …#383

Merged
fangliu117 merged 2 commits intodevfrom
template_spatial_interaction
Aug 4, 2025
Merged

feat(spatial_interaction_template): add spatial_interaction_template …#383
fangliu117 merged 2 commits intodevfrom
template_spatial_interaction

Conversation

@fangliu117
Copy link
Collaborator

…and unit tests

Copilot AI review requested due to automatic review settings August 4, 2025 00:47
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 introduces a new spatial interaction template for analyzing spatial relationships between cell types in single-cell data, along with comprehensive unit tests. The implementation maintains the exact logic from the original NIDAP template while making it platform-agnostic.

  • Adds spatial_interaction_template.py with functions for neighborhood enrichment and cluster interaction matrix analysis
  • Implements comprehensive unit tests covering I/O workflows, error validation, and function calls
  • Provides CLI interface and proper parameter validation for spatial analysis methods

Reviewed Changes

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

File Description
src/spac/templates/spatial_interaction_template.py Main template implementing spatial interaction analysis with NIDAP-compatible logic and parameter handling
tests/templates/test_spatial_interaction_template.py Unit tests covering complete workflows, error cases, and function call verification with mocked dependencies
Comments suppressed due to low confidence (1)

@fangliu117 fangliu117 merged commit 7354b98 into dev Aug 4, 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