Skip to content

feat(subset_analysis_template): add subset_analysis_template function…#395

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

feat(subset_analysis_template): add subset_analysis_template function…#395
fangliu117 merged 2 commits intodevfrom
template_subset_analysis

Conversation

@fangliu117
Copy link
Collaborator

… and unit tests

Copilot AI review requested due to automatic review settings August 4, 2025 14:10
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

Adds a new subset analysis template function that allows filtering of AnnData objects based on specific cell annotations. This feature enables users to include or exclude cells with specific labels from their analysis datasets.

Key changes:

  • New subset_analysis_template.py module with run_from_json function for subset analysis
  • Comprehensive unit tests covering I/O workflows, parameter validation, and function mocking
  • Support for both file-based and in-memory workflows with configurable save behavior

Reviewed Changes

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

File Description
src/spac/templates/subset_analysis_template.py Main implementation of subset analysis functionality with JSON parameter parsing and AnnData filtering
tests/templates/test_subset_analysis_template.py Unit tests covering complete workflow, error handling, and function call verification

@fangliu117 fangliu117 merged commit 8509999 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