Skip to content

ValueError: Can't clean for JSON #41

@aboutfanfan

Description

@aboutfanfan

When I run:

from banksy.cluster_methods import run_Leiden_partition
seed = 1234
results_df, max_num_labels = run_Leiden_partition(
banksy_dict,
resolutions,
num_nn = 60, # k_expr: number of neighbours in expression (BANKSY embedding or non-spatial) space
num_iterations = -1, # run to convergenece
partition_seed = seed,
match_labels = False,
)

I get the following error:
ValueError: Can't clean for JSON: 13 labels, 55249 samples, ids: [ 0 1 2 3 4 5 6 7 8 9 10 11 12], counts: [7146 6929 6409 4985 4953 4218 3492 3481 3419 3211 2929 2059 2018]

I am not sure why this is happening; I get the same error even when setting match_labels = True.
Could you please offer some advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions