Skip to content

Sample mass on prep 20260223#11

Merged
AmandaBirmingham merged 3 commits intomainfrom
sample_mass_on_prep_20260223
Feb 25, 2026
Merged

Sample mass on prep 20260223#11
AmandaBirmingham merged 3 commits intomainfrom
sample_mass_on_prep_20260223

Conversation

@AmandaBirmingham
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

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 pull request refactors the cell count calculation functions to consolidate sample and prep information into a single dataframe parameter, while maintaining backward compatibility through deprecated "split_input" versions. The refactoring simplifies the API by accepting a single prep_info_df parameter that contains all necessary columns (both sample and prep information) instead of requiring separate sample_info_df and prep_info_df parameters.

Changes:

  • Added new versions of cell count calculation functions that accept a single combined dataframe parameter
  • Deprecated the old "split_input" versions that accept separate sample_info and prep_info dataframes
  • Added comprehensive test coverage for both the new unified interface and the deprecated split interface

Reviewed changes

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

File Description
pysyndna/src/calc_cell_counts.py Refactored cell count functions to use unified dataframe input; added deprecation decorators to split_input versions; created new public API functions without split_input suffix
pysyndna/tests/test_calc_cell_counts.py Added tests for new unified functions; updated test names and imports; added helper method for creating combined sample+prep test data

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AmandaBirmingham AmandaBirmingham merged commit 483e9b6 into main Feb 25, 2026
2 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