Hi, I'm having a problem running this code from the jupyter notebook you provided:
scv.pp.neighbors(adata)
adata_velo = adata[:, adata.var.loc[adata.var['velocity_genes'] == True].index]
exp_metrics["model_sto"] = utv.evaluate(adata_velo, cluster_edges, label, 'velocity')
One of the detailed error messages is:
File "/home/uu202110045/20241009/PHD/RNA Velocity/test1.py", line 30, in <module>
exp_metrics["model_sto"] = utv.evaluate(adata_velo, cluster_edges, label, 'velocity')
File "/home/uu202110045/.conda/envs/py310/lib/python3.10/site-packages/unitvelo/eval_utils.py", line 184, in evaluate
crs_bdr_crc = cross_boundary_correctness(adata, k_cluster, k_velocity, cluster_edges, True, x_emb)
File "/home/uu202110045/.conda/envs/py310/lib/python3.10/site-packages/unitvelo/eval_utils.py", line 83, in cross_boundary_correctness
if x_emb == "X_umap":
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
My version of python is 3.10.9, and version of unitvelo is 0.2.5.2. I'm not sure how this could be, is it because scvelo had a conflict after the update?
Thank you for your reply!
Hi, I'm having a problem running this code from the jupyter notebook you provided:
One of the detailed error messages is:
My version of python is 3.10.9, and version of unitvelo is 0.2.5.2. I'm not sure how this could be, is it because scvelo had a conflict after the update?
Thank you for your reply!