Skip to content

harmonizing differential expression output - #273

Merged
vbrennsteiner merged 5 commits into
mainfrom
harmonize_diff_exp_outputs
Sep 2, 2026
Merged

vbrennsteiner merged 5 commits into
mainfrom
harmonize_diff_exp_outputs

Conversation

@vbrennsteiner

@vbrennsteiner vbrennsteiner commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator

PR for harmonizing differential expression output

As discussed with @lucas-diedrich, differential expression results should be standardized to allow integrating the new empirical Bayes moderated t-test implementation, as well as standardized downstream visuals that consume differential expression outputs.

Right now, differential expression functions have diverging output formats. This is a bad starting point for implementing new differential expression modules, and a problem for downstream visualizations depending on standardized results.

  • ttest returns the dataframe directly result_df
  • AlphaQuant returns the tuple (comparison_name, results_dict), where the dict contains "protein" "proteoform" and "peptide" result dataframes.
  • Current EBayes returns the tuple (comparison_name, results_df)

The goal of this PR is to apply minimal changes to harmonize all three methods to return a single dataframe with standardized columns + method specific columns (like e.g. proteoform values for AlphaQuant)

… the comparison string and return the dataframe only; adjust tests and notebook calls accordingly
@vbrennsteiner vbrennsteiner self-assigned this Sep 1, 2026
@vbrennsteiner vbrennsteiner changed the title adjust ttest docstring and adjuste ebayes.py output signature to omit… harmonizing differential expression output Sep 1, 2026
@vbrennsteiner vbrennsteiner added breaking-change Breaking change that changes the API duplicate This issue or pull request already exists labels Sep 1, 2026
@vbrennsteiner
vbrennsteiner requested review from lucas-diedrich and mschwoer and removed request for lucas-diedrich September 1, 2026 11:41

@lucas-diedrich lucas-diedrich left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks for standardizing!

Comment thread src/alphapepttools/tl/diff_exp/alphaquant_wrapper.py Outdated
Comment thread src/alphapepttools/tl/diff_exp/alphaquant_wrapper.py
Comment thread tests/integration/test_alphaquant_pipeline.py
@vbrennsteiner
vbrennsteiner merged commit 32ceebf into main Sep 2, 2026
14 checks passed
@vbrennsteiner
vbrennsteiner deleted the harmonize_diff_exp_outputs branch September 2, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Breaking change that changes the API duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants