Skip to content

Simplified functions in tutorials and updated some tutorials #718

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

Merged
merged 26 commits into from
Jun 11, 2025

Conversation

Starlitnightly
Copy link
Contributor

  • Fixed a SciPy version compatibility error when using multivelo.
  • Added the multi_brain_5k dataset loader to dynamo.sample_data.
  • Introduced dyn.pl.trends for plotting gene expression trends (Updated of dynamo 1.4.2 #706).
  • Deprecated additional .A attributes on sparse matrices (Updated of dynamo 1.4.2 #706).
  • Resolved AnnData version conflicts and added dyn.pl.style() for controlling plot styles.
  • Added dyn.pl.jacobian_on_gene_axis to visualize the Jacobian between receptors and effectors (Updated of dynamo 1.4.2 #706).
  • Updated the analysis of most probable path predictions.

@Starlitnightly
Copy link
Contributor Author

We can compare how the tutorial differs before and after the “Most probable path predictions” update:

Copy link

codecov bot commented May 28, 2025

Codecov Report

Attention: Patch coverage is 14.06250% with 990 lines in your changes missing coverage. Please review.

Project coverage is 36.80%. Comparing base (0887291) to head (836f788).
Report is 11 commits behind head on master.

Files with missing lines Patch % Lines
dynamo/prediction/least_action_path.py 5.66% 383 Missing ⚠️
dynamo/prediction/_tf_eval.py 10.36% 173 Missing ⚠️
dynamo/multivelo/dynamical_chrom_func.py 0.00% 144 Missing ⚠️
dynamo/plot/_trends.py 30.92% 67 Missing ⚠️
dynamo/sample_data.py 10.00% 54 Missing ⚠️
dynamo/pl.py 12.50% 49 Missing ⚠️
dynamo/plot/scVectorField.py 0.00% 24 Missing ⚠️
dynamo/plot/_jacobian.py 17.85% 23 Missing ⚠️
dynamo/utils.py 20.00% 16 Missing ⚠️
dynamo/tools/_enum.py 69.56% 14 Missing ⚠️
... and 10 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #718      +/-   ##
==========================================
- Coverage   37.01%   36.80%   -0.21%     
==========================================
  Files         182      182              
  Lines       34935    35027      +92     
==========================================
- Hits        12931    12892      -39     
- Misses      22004    22135     +131     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Starlitnightly Starlitnightly requested a review from Xiaojieqiu May 28, 2025 18:18
@Starlitnightly Starlitnightly requested a review from Copilot May 29, 2025 14:48
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request primarily improves documentation, adds new plotting functions (trends and jacobian_on_gene_axis), updates compatibility with newer SciPy versions, and simplifies function signatures by removing direct MuData type annotations.

  • Fixed compatibility issues (e.g. SciPy version‐based array conversion)
  • Added new plotting functionality and deprecated certain attributes
  • Simplified type annotations in multiomic functions and updated documentation

Reviewed Changes

Copilot reviewed 33 out of 33 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
dynamo/plot/_trends.py Added a new function for plotting gene expression trends.
dynamo/plot/_jacobian.py Introduced a new visualization function to display the Jacobian on gene axis.
dynamo/plot/init.py Updated exports to include the new trends and jacobian plotting functions.
dynamo/pl.py Added styling settings and a one-time logo print (ensure prints are intentional).
dynamo/multivelo/old_MultiomicVectorField.py Simplified the MultiomicVectorField constructor signature; check the isinstance usage.
dynamo/multivelo/old_MultiVelocity.py Removed MuData type annotations; adjusted related function calls accordingly.
dynamo/multivelo/dynamical_chrom_func.py Updated sparse matrix access based on SciPy version with appropriate array conversion.
dynamo/MultiVelo.py and other multiomic modules Updated type annotations and inline MuData imports for consistency.
dynamo/configuration.py Added documentation improvements and fixed minor comments; check for typos.
docs/conf.py Added module path debug prints; ensure these prints are not intended for production.
Various GitHub workflows and docs Updated Python version compatibility and added dynamo-release in requirements.

@Starlitnightly Starlitnightly self-assigned this May 29, 2025
@Xiaojieqiu Xiaojieqiu merged commit ce3c4a6 into aristoteleo:master Jun 11, 2025
6 of 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.

2 participants