Merged
Conversation
…alidation Expanded mutation testing coverage to critical modules and implemented a comprehensive suite of robustness tests to address identified logic gaps. Key changes: Mutation Testing: Established cosmic-ray configurations and sessions for losses.py , splitting.py , dataset.py , and pathways.py . Bug Fix (Augmentation): Corrected operation mapping in apply_dihedral_to_tensor where vertical flips (op 5) were incorrectly handled as horizontal flips (op 4). Refactor (Normalization): Rewrote normalize_coordinates to use explicit grid-step detection (np.diff), ensuring robust coordinate scaling across different spatial transcriptomics datasets and environments. Robustness Suite: Added 12 new test cases across four modules: tests/test_dataset_logic.py : Validates spatial normalization and dihedral symmetry. tests/test_splitting_robust.py : Verifies strict patient isolation and CLI parameter integrity. tests/test_losses_robust.py : Confirms gradient flow for ZINB loss and numerical stability under extreme count values. tests/test_pathways_robust.py : Ensures integrity of gene-to-pathway adjacency matrix construction. Data Loading Fixes: Resolved a dimension permute error in HEST_Dataset and refined dataset validation logic.
- Improve test_dataset_logic.py with comprehensive verification for all 8 dihedral transformations and boundary conditions for coordinate normalization. - Implement test_dataset_mocks.py to verify HEST_Dataset and HEST_FeatureDataset integration logic (augmentations, neighborhood dropout, log1p) using mocks. - Fix RuntimeError in ZINBLoss.forward caused by incorrect mask expansion dimensions when using spatial padding.
…uests for all branches ("**").
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.
No description provided.