Skip to content

[claude] Add CandidateCollection filtering, min_fragments, and z-score filter - #119

Open
GeorgWa wants to merge 1 commit into
add-scoring-featuresfrom
feature/rust-fdr-optimizations-v2
Open

[claude] Add CandidateCollection filtering, min_fragments, and z-score filter#119
GeorgWa wants to merge 1 commit into
add-scoring-featuresfrom
feature/rust-fdr-optimizations-v2

Conversation

@GeorgWa

@GeorgWa GeorgWa commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add filter_by_score and filter_by_keys to CandidateCollection to keep candidates in Rust-native format through the Python pipeline
  • Add filter_by_score to CandidateFeatureCollection
  • Add min_fragments parameter to SelectionParameters for apex fragment count cutoff during selection
  • Add zscore_filter_mask Python function for batched z-score computation via ndarray

Stacked on #118.

🤖 Generated with Claude Code


PR Stack

…z-score filter

- Add filter_by_score and filter_by_keys to CandidateCollection to avoid
  Rust-DataFrame round-trips in the Python pipeline
- Add filter_by_score to CandidateFeatureCollection
- Add min_fragments parameter to SelectionParameters for apex fragment count cutoff
- Add zscore_filter_mask function for batched z-score computation via ndarray
- Fix typo in candidate_scoring.py (competetive -> competitive)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Comment thread src/lib.rs
Comment on lines +100 to +107
py: Python,
features: PyReadonlyArray2<'_, f64>,
col_indices: Vec<usize>,
means: Vec<f64>,
stds: Vec<f64>,
signs: Vec<f64>,
threshold: f64,
) -> PyResult<PyObject> {

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.

what's the rustonic way of documenting function signatures? :-p

Comment thread src/lib.rs

let mut mask = Array1::<bool>::from_elem(n_rows, false);

const BATCH_SIZE: usize = 500_000;

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.

could/should this be a parameter?

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