Skip to content

feat(analysis_to_csv_template): add analysis_to_csv_template function…#380

Merged
fangliu117 merged 1 commit intodevfrom
template_analysis_to_csv
Aug 3, 2025
Merged

feat(analysis_to_csv_template): add analysis_to_csv_template function…#380
fangliu117 merged 1 commit intodevfrom
template_analysis_to_csv

Conversation

@fangliu117
Copy link
Collaborator

… and unit tests

Copilot AI review requested due to automatic review settings August 3, 2025 05:37
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 analysis_to_csv_template function that converts AnnData objects to CSV format with associated unit tests. This template replicates NIDAP functionality for exporting single-cell analysis data.

  • Implements analysis_to_csv_template.py with run_from_json function for converting AnnData to CSV
  • Adds comprehensive unit tests covering I/O workflows, error validation, and function calls
  • Supports exporting original data matrix or specific layers with observation metadata and spatial coordinates

Reviewed Changes

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

File Description
src/spac/templates/analysis_to_csv_template.py Main template implementation with JSON parameter parsing and AnnData to CSV conversion
tests/templates/test_analysis_to_csv_template.py Unit tests covering complete I/O workflows, error handling, and function validation

@fangliu117 fangliu117 merged commit d1c33ba into dev Aug 3, 2025
19 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