JinmiaoChenLab/GraphST

clustering bug

wdb-web opened this issue · 1 comments

When I use the following code:
adata.var_names_make_unique()
model = GraphST.GraphST(adata=adata, device='cpu')
adata = model.train()
radius = 50
n_clusters = 7
tool = 'leiden'
clustering(adata, n_clusters, radius=radius, method=tool, start=0.1, end=2.0, increment=0.01, refinement=False)
I get the following error:
self._partition = _c_leiden._new_RBConfigurationVertexPartition(pygraph_t,
BaseException: Could not construct partition: Weight vector not the same size as the number of edges.

Hi,

Thank you for your questions.

It seems it is the issue of inconsistent dimention. Could you help provide more details about the input adata.h5ad?

Best regards,
Yahui