Skip to content
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

LP Fix #138

Merged
merged 13 commits into from
Aug 20, 2024
Merged

LP Fix #138

merged 13 commits into from
Aug 20, 2024

Conversation

dylanclam12
Copy link
Collaborator

Created a catch for no significant patterns found for lp_diff_discrete. Updated lp tests to use the sample MERFISH dataset and added a test to catch no significant patterns in the small_data dataset.

Added a catch if no significant patterns are found in lp
Changed lp tests to use the sample MERFISH data so significant patterns are found. Added a test to catch no significant patterns on the small dataset.
@dylanclam12
Copy link
Collaborator Author

Fixes #136

@dylanclam12 dylanclam12 linked an issue Jun 12, 2024 that may be closed by this pull request
@dylanclam12 dylanclam12 self-assigned this Jun 12, 2024
@dylanclam12 dylanclam12 marked this pull request as ready for review June 12, 2024 19:24
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

Attention: Patch coverage is 86.79245% with 21 lines in your changes missing coverage. Please review.

Project coverage is 66.24%. Comparing base (c343f79) to head (b3e38d4).
Report is 15 commits behind head on master.

Files Patch % Lines
bento/plotting/_lp.py 14.28% 6 Missing ⚠️
bento/_utils.py 44.44% 5 Missing ⚠️
bento/plotting/_signatures.py 0.00% 4 Missing ⚠️
bento/plotting/_multidimensional.py 0.00% 3 Missing ⚠️
bento/tools/_lp.py 95.23% 2 Missing ⚠️
bento/tools/_composition.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #138      +/-   ##
==========================================
+ Coverage   62.88%   66.24%   +3.36%     
==========================================
  Files          40       40              
  Lines        2258     2314      +56     
==========================================
+ Hits         1420     1533     +113     
+ Misses        838      781      -57     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dylanclam12 dylanclam12 requested a review from ckmah June 12, 2024 19:26
Copy link
Collaborator

@ckmah ckmah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are good, just use warnings instead of raising error.

bento/tools/_lp.py Outdated Show resolved Hide resolved
tests/test_lp.py Outdated Show resolved Hide resolved
Added a warning to indicate that no significant patterns were found when running lp()
Moved the detection of no significant patterns found to the top of the function
added a description of when this test happens (when there are no significant patterns found)
For lp_diff_discrete, change errors to warning and immediate returns for when no significant patterns are found and when phenotype dtype is numeric.
@dylanclam12 dylanclam12 requested a review from ckmah July 2, 2024 22:01
ckmah
ckmah previously approved these changes Jul 2, 2024
Copy link
Collaborator

@ckmah ckmah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix tests, otherwise lgtm

pinned dask version to >=2024.2.1
@ckmah
Copy link
Collaborator

ckmah commented Aug 20, 2024

use new spatialdata multitable api, addresses #140

@ckmah ckmah merged commit 7fdb42c into master Aug 20, 2024
8 checks passed
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.

lp_diff_discrete() fails on small data
2 participants