Open AndrewSkelton opened 2 years ago
Likely what's happening here is that your precomputed distance matrix is read-only because it's being accessed through reticulate. The fix would likely involve identifying when/if this is a problem and creating a copy of the matrix at the relevant point in the python code.
Hello, I also experience the same error as above, and would be curious to know if you have found a solution. Thanks for your help!
Describe the bug When running in pre-computed mode, the method errors, but works with a numeric matrix.
To Reproduce Run phate function with parameter:
knn.dist.method = "precomputed"
Expected behavior Phate embedding computed from affinity matrix
Actual behavior
Verbose Output
System information:
Output of
sessionInfo()
:Output of
reticulate::py_discover_config(required_module = "phate")
:Output of
phateR::check_pyphate_version()
:TRUE
Additional context Add any other context about the problem here.