if params["n_pcs"] > 0 and adata.X.shape[1] > params["n_pcs"]:
sett.m(0, "preprocess using PCA with", params["n_pcs"], "PCs")
sett.m(0, "--> avoid this by setting n_pcs = 0")
dpca = pca(adata, n_comps=params["n_pcs"])
X = dpca["Y"]
else:
X = adata.X
// params for sklearn
After Change
sett.m(0,"compute tSNE")
sett.m(0,"... mind that this is not deterministic!")
// preprocessing by PCA
if "X_pca" in adata and adata["X_pca"].shape[1] > n_pcs:
X = adata["X_pca"]
sett.m(0, "using X_pca for tSNE")
else: