Skip to content

Conversation

@Starlitnightly
Copy link
Collaborator

This pull request introduces several improvements and new features to the tracking and reporting of data changes in the dynamo package, as well as minor updates to tutorials and submodules. The main focus is on enhancing the monitoring of function calls and improving the detail and clarity of change reports for AnnData objects. Additionally, new monitoring decorators are applied to core functions, and tutorial documentation is updated.

Tracking and reporting enhancements:

  • Improved the _track.py monitoring system to capture and display column data types in obs and var instead of just column names, providing more informative reports on data changes. This includes a new _get_column_type helper and updates to _snapshot and _print_report to show type information. (dynamo/tools/_track.py) [1] [2]
  • Enhanced the change report for uns keys to include a symbol for added keys, making additions more visually distinct. (dynamo/tools/_track.py)

Monitoring and function instrumentation:

  • Added the @monitor decorator to the extvelo and pseudotime_velocity functions, enabling automatic tracking of changes to AnnData objects during their execution. (dynamo/tools/_extvelo.py, dynamo/tools/pseudotime_velocity.py) [1] [2]

Functionality improvements:

  • Updated pseudotime_velocity to automatically set use_for_dynamics and use_for_transition in adata.var, copying from use_for_pca if present, or defaulting to True otherwise, ensuring downstream compatibility. (dynamo/tools/pseudotime_velocity.py)

Documentation and tutorials:

  • Added a new tutorial notebook 202_extvelo to the conventional index, and updated the notebooks submodule to the latest commit. (docs/tutorials/index_conventional.md, docs/tutorials/notebooks) [1] [2]

… in snapshots

- Added a helper method _get_column_type to determine simplified type descriptions for DataFrame columns.
- Updated the _snapshot method to capture column types for 'obs' and 'var' in the snapshot dictionary, improving clarity in data structure comparisons.
- Modified print section methods to display column descriptions alongside keys for better visibility in output.
…velocity function

- Introduced the @monitor decorator to track function execution.
- Updated variable handling to set 'use_for_dynamics' and 'use_for_transition' based on the presence of 'use_for_pca' in adata.var, ensuring consistent behavior.
@Starlitnightly Starlitnightly merged commit 1e37ed6 into aristoteleo:master Nov 20, 2025
4 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.

1 participant