Skip to content

Filter marker tables by AUC and adjusted p-value, with exact p-values for small groups - #24

Merged
parashardhapola merged 1 commit into
masterfrom
pr/09-marker-tables
Oct 23, 2026
Merged

parashardhapola merged 1 commit into
masterfrom
pr/09-marker-tables

Conversation

@parashardhapola

Copy link
Copy Markdown
Member

The default min_score=0.25 filter depended on the number of groups and on group size: 56 of 60 groups of a fine clustering returned no markers, and LILRA4 in pDCs (AUC 1.0) scored 0.125.

Changes

  • markers.load and markers.export_csv keep rows with AUC at least 0.6, adjusted p-value at most 0.05, and expressing fraction at least 0.2; min_score defaults to None, and sort_by orders rows.
  • Statistics are stored at full float64 precision with neg_log10_p_value, and groups that can be split from the other cells in at most 100,000 ways get exact p-values.
  • Groups of fewer than two cells are skipped with a warning instead of failing the search.
  • compare.compute_bulk drops columns without cells (or keeps them as NaN), can return each column's cell count, and validates its options.
  • Revision 2 of run_marker_search; tables of revision 1 still load under an explicit policy.

Behaviour changes

  • Default marker tables are longer; pass min_auc=0.8 for short lists.

@parashardhapola
parashardhapola force-pushed the pr/08-hvg-selection branch 2 times, most recently from 69c411f to 978a235 Compare October 23, 2026 07:03
… for small groups

The default `min_score=0.25` filter depended on the number of groups and on group size: 56 of 60 groups of a fine clustering returned no markers, and LILRA4 in pDCs (AUC 1.0) scored 0.125.
@parashardhapola
parashardhapola changed the base branch from pr/08-hvg-selection to master October 23, 2026 07:13
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@parashardhapola
parashardhapola merged commit 77e7271 into master Oct 23, 2026
24 checks passed
@parashardhapola
parashardhapola deleted the pr/09-marker-tables branch October 23, 2026 07:24
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