@@ -46,6 +46,7 @@ def _sample_bootstrap_embedding(
4646 sample_idx : np .ndarray ,
4747 bootstrap_noise_model : str ,
4848 noise_scale : float ,
49+ sanity_n_posterior : int = 1000 ,
4950) -> tuple [np .ndarray , list [int ]]:
5051 assert meta .preprocess is not None
5152 assert meta .preprocess .embedding_method is not None
@@ -61,6 +62,8 @@ def _sample_bootstrap_embedding(
6162 cell_idx = np .asarray (boot_idx , dtype = np .int64 ),
6263 scale_before_pca = meta .preprocess .scale_before_pca ,
6364 n_pca_comps = meta .preprocess .n_pca_comps ,
65+ n_posterior = sanity_n_posterior ,
66+ ltq_var_scale = noise_scale
6467 )
6568 elif meta .preprocess .embedding_method == "diffmap" :
6669 if meta .preprocess .embedding_neighbors == "pca" :
@@ -69,6 +72,8 @@ def _sample_bootstrap_embedding(
6972 cell_idx = np .asarray (boot_idx , dtype = np .int64 ),
7073 scale_before_pca = meta .preprocess .scale_before_pca ,
7174 n_pca_comps = meta .preprocess .n_pca_comps ,
75+ n_posterior = sanity_n_posterior ,
76+ ltq_var_scale = noise_scale
7277 )
7378 assert meta .preprocess .diffmap_operator
7479 diffmap_operator = meta .preprocess .diffmap_operator
@@ -202,7 +207,7 @@ def compute_persistence_diagram_and_cocycles(
202207 meta : ScloopMeta ,
203208 thresh : Diameter_t | None = None ,
204209 bootstrap : bool = False ,
205- noise_scale : float = 1e3 ,
210+ noise_scale : float = 1e-3 ,
206211 ** nei_kwargs ,
207212) -> tuple [list , list , IndexListDistMatrix | None , csr_matrix ]:
208213 def _cap_infinite_deaths (diagrams : list , cap : float | None ) -> list :
0 commit comments