Feat: compute-features command#171
Merged
Merged
Conversation
BioGeek
approved these changes
Apr 1, 2026
| winnow compute-features | ||
|
|
||
| # Paths and output file | ||
| winnow compute-features dataset.spectrum_path_or_directory=data/spectra.ipc dataset.predictions_path=data/preds.csv dataset_output_path=results/features.csv |
Contributor
There was a problem hiding this comment.
Shouldn't this command use the example data?
|
|
||
| dataset: | ||
| # Dataset paths (same as train): | ||
| spectrum_path_or_directory: examples/example_data/spectra.ipc |
Contributor
There was a problem hiding this comment.
Don't forget to change this to spectra.mgf later if you also merge #173
d627dc9 to
fad4c6e
Compare
fad4c6e to
9fe7a11
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This branch introduces a feature-only pipeline: load a dataset the same way as training, run the calibrator’s configured feature stack via
ProbabilityCalibrator.compute_features, and write enriched metadata to a single CSV. It does not fit the MLP or save a calibrator checkpoint.Description
winnow compute-features- Hydra entry point usingcompute_features.yaml(defaults mirror training settings:residues,calibrator,data_loader).winnow config compute-features- print the resolved config without running the pipeline.dataset_output_path, optionalfilter_empty_predictions, and labelled mode (with validation: e.g.RetentionTimeFeatureis rejected for unlabelled runs; labelled runs require asequencecolumn).docs/configuration.mdanddocs/cli.mdfor the new command and config layout.Motivation
Lets users export calibration features for inspection or downstream use without paying the cost of full model training.