Open markddesimone opened 2 years ago
Hello, thanks for your feedback. This issue is due to an upgrade to the function scipy.spatial.distance.cdist
in Python. We have uploaded the newest version to https://github.com/nanawei11/Secuer/. You can also find it at https://pypi.org/project/secuer/1.0.11/.
Here is an example:
from secuer.secuer import secuer
from secuer.secuerconsensus import secuerconsensus
import scanpy as sc
data = sc.read('./data/Biase_pca.h5ad')
print(data)
res = secuer(fea= fea,
p=1000)
res = secuerconsensus(fea= fea,
Knn=5,
p=1000
M=5)
obs: 'celltype', 'n_genes_by_counts', 'total_counts', 'total_counts_ercc', 'pct_counts_ercc'
var: 'dropouts', 'highly_variable', 'means', 'dispersions', 'dispersions_norm', 'mean', 'std', 'ercc', 'n_cells_by_counts', 'mean_counts', 'pct_dropout_by_counts', 'total_counts'
uns: 'hvg', 'log1p', 'pca'
obsm: 'X_pca'
varm: 'PCs'
[2022-11-04 19:05:15] [INFO] Selecting representatives...
[2022-11-04 19:05:15] [INFO] Approximate KNN...
[2022-11-04 19:05:15] [INFO] Estimating the number of clustering...
[2022-11-04 19:05:15] [INFO] Bipartite graph partitioning...
[2022-11-04 19:05:51] [INFO] Running secuer 1
[2022-11-04 19:05:51] [INFO] Running secuer 2
[2022-11-04 19:05:51] [INFO] Running secuer 4
[2022-11-04 19:05:51] [INFO] Running secuer 3
[2022-11-04 19:05:51] [INFO] Running secuer 5
Thank you for providing the update and for your prompt response, it works now
Hi, I have installed seceur:
I am accessing seceur directly within python using scanpy
My obsm['X_pca'] is:
I am using all default arguments according to
seceur_console.py
I call:
and get the following error:
how to resolve? thank you