Skip to content

Commit

Permalink
update for pca.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanliwei-genomics-cn committed Oct 25, 2023
1 parent e3afd32 commit 67e5d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stereo/core/st_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ def pca(self,
from ..algorithm.dim_reduce import pca
res = pca(data.exp_matrix, n_pcs, svd_solver=svd_solver)
self.result[res_key] = pd.DataFrame(res['x_pca'])
self.result.set_value(f'{res_key}_variance_ratio', res['variance_ratio'])
self.result[f'{res_key}_variance_ratio'] = res['variance_ratio']
key = 'pca'
self.reset_key_record(key, res_key)

Expand Down

0 comments on commit 67e5d42

Please sign in to comment.