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

Save velocity parameters to .varm instead .var #579

Merged
merged 22 commits into from
Oct 9, 2023

Conversation

Sichao25
Copy link
Collaborator

Use a matrix called vel_params in .varm to replace all velocity parameters in .var. Column names will be saved in .uns as vel_params_names. Cell-wise velocity will remain the same. Helper functions to read and update the parameters are created.

@codecov-commenter
Copy link

codecov-commenter commented Sep 29, 2023

Codecov Report

Merging #579 (353219b) into master (7a45dec) will increase coverage by 0.42%.
Report is 29 commits behind head on master.
The diff coverage is 23.80%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master     #579      +/-   ##
==========================================
+ Coverage   22.32%   22.75%   +0.42%     
==========================================
  Files         158      160       +2     
  Lines       26356    26474     +118     
==========================================
+ Hits         5885     6024     +139     
+ Misses      20471    20450      -21     
Files Coverage Δ
dynamo/tools/__init__.py 100.00% <ø> (ø)
dynamo/prediction/tscRNA_seq.py 20.00% <50.00%> (+2.05%) ⬆️
dynamo/tools/pseudotime_velocity.py 13.08% <0.00%> (ø)
dynamo/plot/utils_dynamics.py 2.33% <25.00%> (-0.01%) ⬇️
dynamo/tools/dynamics.py 16.49% <0.00%> (-0.12%) ⬇️
dynamo/tools/recipes.py 7.83% <12.50%> (-0.11%) ⬇️
dynamo/plot/scatters.py 50.30% <9.09%> (-0.63%) ⬇️
dynamo/tools/velocyto_scvelo.py 10.44% <0.00%> (-0.76%) ⬇️
dynamo/plot/dynamics.py 2.39% <4.00%> (-0.02%) ⬇️
dynamo/tools/utils.py 32.93% <33.89%> (+0.77%) ⬆️

... and 7 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

dynamo/tools/pseudotime_velocity.py Outdated Show resolved Hide resolved
Comment on lines -746 to 750
if i in var_columns:
del adata.var[i]
if i in vel_params_df.columns:
del vel_params_df[i]

Copy link
Collaborator

Choose a reason for hiding this comment

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

what adata.uns["vel_params_names"]?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The adata.uns["vel_params_names"] will be updated later with update_vel_params(adata, params_df=vel_params_df).

dynamo/tools/utils.py Outdated Show resolved Hide resolved
dynamo/tools/utils.py Outdated Show resolved Hide resolved
dynamo/tools/utils.py Outdated Show resolved Hide resolved
dynamo/tools/utils.py Outdated Show resolved Hide resolved
@Xiaojieqiu Xiaojieqiu merged commit 50d050d into aristoteleo:master Oct 9, 2023
5 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.

3 participants