Closed martinjzhang closed 2 years ago
I don't follow on (1): if i call sc.pp.neighbors(adata, n_pcs=10)
for an adata without precomputed PCs. Is this saying it will ignore the n_pcs parameter?
I don't follow on (1): if i call
sc.pp.neighbors(adata, n_pcs=10)
for an adata without precomputed PCs. Is this saying it will ignore the n_pcs parameter?
In this case, I think it will call sc.pp.pca
with its default parameters n_comps =min(50, min(adata.shape)-1)
, and then use all the computed PCs for sc.pp.neighbors(adata)
. I checked it in the script but I will try to create a minimal example to illustrate this.
sc.pp.pca
beforesc.pp.neighbors
(otherwise sc.pp.neighbors will use all PCs instead of the number specified byn_pcs
; we didn't find this before because we used all PCs for the toy data)sc.pp.pca
forcompute_downstream.py
scdrs
CLI (I checked that they are consistent)test_downstream_group_analysis
)?