-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
correct shuffling of annotations in nhood enrichment #775
Conversation
updates: - [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.1](pre-commit/mirrors-mypy@v1.6.1...v1.7.1) - [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.3](pre-commit/mirrors-prettier@v3.0.3...v4.0.0-alpha.3) - [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.6](astral-sh/ruff-pre-commit@v0.1.4...v0.1.6)
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #775 +/- ##
==========================================
+ Coverage 69.86% 69.87% +0.01%
==========================================
Files 39 39
Lines 5479 5498 +19
Branches 1023 1031 +8
==========================================
+ Hits 3828 3842 +14
- Misses 1360 1363 +3
- Partials 291 293 +2
|
tests/graph/test_utils.py
Outdated
cluster_annotations = rng.choice([1, 2, 3, 4], size=(size,)) | ||
else: | ||
cluster_annotations = rng.choice(["X", "Y", "Z"], size=(size,)) | ||
rs = np.random.RandomState(seed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't you use your rng from above here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
Shuffled annotations. | ||
""" | ||
cluster_annotation_output = np.empty(libraries.shape, dtype=cluster_annotation.dtype) | ||
for c in libraries.cat.categories: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
categories will always be small, right? Or is there the need to vectorized?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
categories should always be small yes
IMPORTANT: Please search among the Pull requests before creating one.
Description
How has this been tested?
Closes