Skip to content

Commit

Permalink
adds params (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
Intron7 authored Nov 9, 2023
1 parent 387f657 commit 423df2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rapids_singlecell/preprocessing/_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ def pca(

adata.obsm["X_pca"] = X_pca
adata.uns["pca"] = {
"params": {
"zero_center": zero_center,
"use_highly_variable": use_highly_variable,
},
"variance": pca_func.explained_variance_,
"variance_ratio": pca_func.explained_variance_ratio_,
}
Expand Down

0 comments on commit 423df2f

Please sign in to comment.