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.
PR Checklist
Description of changes
Implements a fixture for the Augur tests as requested in issue #380.
Instead of loading the pre-calculated dataset
sc_sim.h5ad
that was stored in the tests/tools folder, the tests now use a fixture to load thesc_sim_augur
dataset via the pertpy dataloader.This only affects the tests for Augur and not the user directly.
Technical details
To ensure all tests still run (the results they expect are based on the pre-calculated
sc_sim.h5ad
dataset with 200 cells), thesc_sim_augur
dataset (comprising 600 cells) is subsampled so that it contains the exact same 200 cells as thesc_sim.h5ad
one (some brute-force testing might have been involved in finding the right random state for the subsampling...). That way, no changes in the actual tests were necessary, the fixture was simply added and used in all tests.Performance-wise, there is no big difference (tested on my personal computer):