Release Notes¶
Dynamo Ver 1.4.1¶
DEBUG¶
Debug and refactor scPotential (PR 624).
Replace deprecated
np.asscalar()withnp.ndarray.item()(PR 643).Create chunk option for normalization and gene selection (PR 598).
Debug
pd.state_graph()(PR 630).Debug
pl.jacobian_heatmap()(PR 653).Debug
pl.nneighbors()(PR 644).Retry codecov upload (PR 656).
Debug vectorfield given layer input (PR 619).
Debug simulation module (PR 658).
Extra filter after pearson residuals normalization (PR 665).
Add missing return value to deprecated functions (PR 663).
Debug networks plot (PR 657).
Implement
pl.plot_connectivity()(PR 652).Debug the preprocessing of integer matrix input (PR 664).
Missing return value in
pl.lap_min_time()(PR 668).Update matplotlib
Colorbar.draw_all()toColorbar._draw_all()(PR 669).Optimize code coverage tests (PR 605).
Debug
test_gradop()by (PR 677).Constraint on matplotlib version by (PR 679).
Upgrade code coverage to v4 (PR 684).
Init a branch for updating dependency (PR 690).
Replace
louvainwithleiden(PR 692).Debug
pl.highest_frac_genes()(PR 681).Deprecate more sparse matrix
.Aattributes (PR 695).Fix matplotlib version issues and a circular import issue (PR 686).
Debug
set_figure_params()(PR 698).Debug: shape and name mismatch in cell-wise alpha saving (PR 697).
Debug: The sizes of the scatter plots are not set correctly (PR 696).
Others¶
Refactor
pd.fate()with Trajectory class (PR 645).Reorganize estimation module (PR 662).
Refactor
pl.scatters()andpl.scatters_interactive()(PR 654).Refactor
vf.VectorField()function (PR 620).Docstring and type hints for the prediction module (PR 666).
Update docstr and type hints for External module (PR 661).
Add doctring and type hints for simulation module (PR 660).
Docstring and type hints for root folder python files (PR 667).
Dynamo Ver 1.4.0¶
Feature Changes¶
Shiny web application for in silico perturbation and least square action path analyses (PR 582).
More 3D plots (PR 597):
3D scatters with Plotly and Pyvista
dyn.pl.scatters_interactive().3D vectors with Plotly and Pyvista
dyn.pl.cell_wise_vectors_3d().3D topography with Plotly and Pyvista
dyn.pl.topography_3d().3D animation with Pyvista
dyn.mv.PyvistaAnim().
Saved the velocity parameters in
adata.varminstead ofadata.var(PR 579).DDRtree based pseudotime and graph learning (PR 564):
dyn.tl.order_cells(),dyn.tl.construct_velocity_tree().Integrated
hnswlibfast nearest neighbors method (PR 552).A helper functon to convert the AnnData object from Dynamo to Scvelo, or vice versa (PR 551).
The tools module has been reorganized (PR 625):
Deprecate files
dynamo_fitting.py,dynamo_bk.py,dynamics_deprecated.py,utils_moments_deprecated.py.Deprecate legacy functions in
construct_velocity_tree.py,pseudotime.py,moments.py,clustering.py.Merge
utils_markers.pyandmarkers.py.Merge
time_series.py(learns a direct principal graph by integrating the transition matrix between and DDRTree) andconstruct_velocity_tree.py(Integrate pseudotime ordering with velocity to automatically assign the direction of the learned trajectory.) toDDRTree_graph.py.Reorganize some functions to utils in the following file:
time_series.py,multiomics.py.Rename:
DDRTree_py.pytoDDRTree.py,psl_py.pytopsl.py.
Deprecate infomap clustering (PR 555).
DEBUG¶
Fixed the bug that the
dyn.pl.kinetic_heatmap()couldn’t be transposed caused by wrong initialization (PR 558) (PR 636).Fixed the bug that
dyn.pl.cell_wise_vectors()only output one color (PR 559).Debugged the sampling method in tools modules (PR 565).
Fixed the panda error in
dyn.tl.gene_wise_confidence()(PR 567).Fixed the bug that
pysalsubmodules were not imported explicitly (PR 568).Debugged
dyn.tl.score_cells()(PR 569).Debugged the ambiguous if statement in
dyn.tl.psl()(PR 573).Updated all the expired links of sample dataset (PR 577).
Fixed the bug that processed AnnData object couldn’t be saved under some cases (PR 580).
Debugged
pp/transform.py(PR 581).Debugged
dyn.tl.cell_velocities()(PR 585).Debugged
dyn.pl.kinetic_curves()(PR 587).Fixed the error caused by wrong type hints in
dyn.tl.BaseVectorField.find_fixed_points()(PR 597).Fixed the error caused by excessive memory usage in tests (PR 602).
Fixed the KeyError in
dyn.pp.convert2symbol()when all genes are found (PR 603).Fixed the issue that
dyn.pp.highest_frac_genes()didn’t support sparse input (PR 604).Debugged
dyn.tl.cell_growth_rate()(PR 606).Debugged the arclength sampling method in
dyn.pd.fate()(PR 592) (PR 610).Removed unnecessary import of pandas (PR 614).
Debugged the
dyn.pl.topography()when the color is not provided (PR 617).Fixed the error that list object doesn’t have to_list() method in
dyn.vf.hessian()(PR 623).Fixed the ambiguous if statement in the
dyn.tl.MarkovChain.is_normalized()(PR 626).Debugged the
dyn.pd.classify_clone_cell_type()(PR 627).Fixed the input of
minimize()indyn.pd.lap_T()(PR 628).Fixed the bug that average parameter didn’t work in
dyn.pd.fate()(PR 629).Debugged the
dyn.pl.line_integral_conv()(PR 639).
Others¶
Now available on conda forge.
Removed
cdlibdependency (PR 532).Removed
KDEpydependency (PR 533).Added code coverage report (PR 555).
Optimized the structure of the umap dimension reduction (PR 556).
Optimized the structure and supported sparse input in
tools/graph_calculus.py(PR 557).Updated
networkxAPI (PR 560).Replaced
python-igraphdependency withigraph(PR 563).Added docstrings for tools module (PR 570).
Removed duplicate size factor calculation (PR 596).
Implemented a helper function for saving the plots (PR 609) (PR 635).
Added docstrings for estimation module (PR 611).
Merged
dyn.pd.rank_cells()anddyn.pd.rank_cell_groups()(PR 613).Added the conda badge (PR 618).
Handled the duplicate files when downloading sample data (PR 621).
Debugged the ROC curve in Shiny app (PR 637).
Dynamo Ver 1.3.0¶
Feature Changes¶
The preprocessing module has been refactored:
Class Preprocessor is recommended for most preprocessing methods and recipes.
pp.recipe_monocle,pp.recipe_velocytohas been deprecated (PR 497) (PR 500). Check the tutorials here for more instructions.Normalization has been refactored (PR 474) (PR 475):
pp.normalize_cell_expr_by_size_factorshas been deprecated, and new APIs are:pp.normalize_cell_expr_by_size_factors->pp.calc_sz_factor, pp.normalize.
Gene selection has been refactored (PR 474). Now support genes selected by fano factors. APIs are
pp.select_genes_monocleandpp.select_genes_by_seurat_recipe.PCA has been refactored (PR 469).
dyn.pp.pca_monoclehas been deprecated. The new API is:pp.pca_monocle->pp.pca.
sctransform and pearson residuals recipe has been refactored (PR 510) (PR 512). Now those advanced methods will only be performed on X layer. Other layers will get normalized by size factors.
Calculation of
ntrrate andpp.cell_cycle_scoreshas been added to the Preprocessor (PR 513). To enable cell cycle scores, set parametercell_cycle_score_enabletoTruewhen initializing thepp.Preprocessor.Now the size factors normalization will normalize all layers with its own size factors by default (PR 521). To normalize the labeled data with total size factors, we need to set the
total_szfactortototal_Size_Factorexplicitly.Multiple new features added, includes genes selection by fano factors (PR 474), external data integration methods (PR 473) and
pp.regress_out(PR 470) (PR 483) (PR 484).Created more tests for preprocessing module (PR 485).
Replaced
adata.obsm["X"]withadata.obsm["X_pca"](PR 514).Removed some console output. They can still be displayed with
DEBUGlogging mode.Other deprecated APIs include:
pp.calc_sz_factor_legacy, pp.filter_cells_legacy,pp.filter_genes_by_outliers_legacy, pp.select_genes_monocle_legacy, pp.select_genes_by_dispersion_general,pp.cook_dist, pp.normalize_cell_expr_by_size_factors. More information can be found on our preprocessing tutorials.
DEBUG¶
Fixed the bug that save_show_or_return flags not working (PR 414).
Enabled the leiden algorithm to accept the resolution parameters (PR 441).
Fixed the wrong attribute name of anndata object in
utils_dimensionReduction.py(PR 458).Fixed the dimensionality issue in
moments.py(PR 461).Fixed part of the bug that h5ad file cannot be saved correctly (PR 467).
Fixed the bug that
pca_meanwill beNoneunder some circumstances (PR 482).Removing warning message for nxviz (PR 489).
Corrected the norm log-likelihood function (PR 495).
Removed deprecated parameters in gseapy functions (PR 496).
Fixed the bugs that functions will raise error when no fixed points are found in vector field by sampling (PR 501).
Removed unwanted operations in dimension reduction (PR 502).
Tutorial Updates on Readthedocs¶
Other Changes¶
Docstring and type hints update:
Dynamo Ver 1.1.0¶
Feature Changes¶
Following new function are added, exported or documented in API / class page:
Preprocessing:
pp.convert2symbol, pp.filter_cells, pp.filter_gene,pp.filter_genes_by_pattern, pp.normalize_cells, pp.scale, pp.log1p, pp.pcaKinetic parameters and RNA/protein velocity:
tl.recipe_deg_data, tl.recipe_kin_data,tl.recipe_mix_kin_deg_data, tl.recipe_one_shot_data, tl.velocity_NLabeling Velocity recipes:
tl.infomap, tl.leiden, tl.louvain, tl.sccClustering:
tl.run_scvelo, tl.run_velocyto, tl.vlm_to_adataConverter and helper:
vf.graphize_vecfld, vf.vector_field_functionVector field reconstruction:
vf.FixedPoints, vf.VectorField2D, vf.assign_fixedpointsBeyond RNA velocity:
vf.jacobian, vf.sensitivityVector field ranking:
vf.rank_cells, vf.rank_genes, vf.rank_expression_genes,vf.rank_jacobian_genes, vf.rank_s_divergence_genes, vf.rank_sensitivity_genesVector field clustering and graph:
vf.cluster_field, vf.streamline_clustersPrediction
pd.andecestor, pd.get_init_path, pd.least_action, pd.perturbation,pd.rank_perturbation_cell_clusters, pd.rank_perturbation_cells, pd.rank_perturbation_genes,pd.state_graph, pd.tree_modelPreprocessing plot:
pl.biplot, pl.loading, pl.highest_frac_genes, pl.bubbleSpace plot:
pl.spaceKinetics plot:
pl.sensitivity_kineticsVector field plots:
pl.cell_wise_vectors_3d, pl.plot_fixed_points_2ddifferential geometry plots:
pl.accelerationRegulatory network plots
pl.arcPlot, pl.circosPlot, pl.circosPlotDeprecated, pl.hivePlotfate plots
pl.fateheatmap plots
pl.causality, pl.comb_logic, pl.plot_hill_function, pl.responsePredictions plots
pl.lap_min_timeExternal functionality
ext.normalize_layers_pearson_residuals,ext.select_genes_by_pearson_residuals, ext.sctransform
More differential geometry analyses
include the
switchmode in rank_jacobian_genesadded calculation of
sensitivitymatrix and relevant ranking
most probable path and in silico perturbation prediction
implemented least action path optimization (can be done in high dimensional space) with analytical Jacobian
include genetic perturbation prediction by either changing the vector field function or simulate genetic perturbation via analytical Jacobian
preprocessor class implementation
extensible modular preprocess steps
support following recipes: monocle (dynamo), seurat (seurat V3 flavor), sctransform (seurat), pearson residuals and pearson residuals for feature selection, combined with monocle recipe (ensure no negative values)
following recipes tested on zebrafish dataset to make implemetation results consistent:
monocle, seurat, pearson residuals
CDlib integration
leiden, louvain, infomap community detection for cell clustering
wrappers in
dyn.tl.*for computing clusterswrappers in
dyn.pl.*for plotting
Tutorial Updates on Readthedocs¶
human HSC hematopoiesis RNA velocity analysis tutorials
in silico perturbation and least action path (LAP) predictions tutorials on HSC dataset
differential geometry analysis on HSC dataset
Molecular mechanism of megakaryocytes
Minimal network for basophil lineage commitment
Cell-wise analyses: dominant interactions
gallery: Pancreatic endocrinogenesis differential geometry
Sample Dataset Updates
CI/CD Updates¶
update dynamo testing and pytest structure
test building workflow on 3.7, 3.8, 3.9 (3.6 no longer tested on github building CI)
Performance Improvements
API Changes¶
preprocess
pp.pca->pca.pca_monocleNative implementation of various graphical calculus using Numpy without using igraph.
Other Changes¶
general code refactor and bug fixing
pl.scatters refactor