While running TFvelo_run_demo.py with the dataset name 'pancreas', I encountered a TypeError indicating that an unexpected keyword argument write_knn_indices was passed to the compute_neighbors method in neighbors.py. Here's the specific error message:
TypeError: Neighbors.compute_neighbors() got an unexpected keyword argument 'write_knn_indices'
Upon investigation, it appears that the write_knn_indices=True argument in the compute_neighbors function call (in neighbors.py) is not recognized by the scanpy.Neighbors.compute_neighbors method, leading to this error.
As a temporary fix, I removed the write_knn_indices=True argument from the function call, which resolved the error and allowed the script to run successfully.
Could you please look into this issue? It may help to either update the documentation to reflect the current method parameters or adjust the function call in TFvelo to match the expected arguments of the scanpy.Neighbors.compute_neighbors method.
Additionally, I've attached the environment.yml file for my Conda environment to help with reproducing the issue. This should provide a clear view of all the packages and their versions used in my setup.
In addition to the previous issue, I encountered a problem related to matplotlib version compatibility. Specifically, the script raised an AttributeError due to the absence of mplDeprecation in matplotlib.cbook. Here is the exact error message:
AttributeError: module 'matplotlib.cbook' has no attribute 'mplDeprecation'
This issue suggests that the current code may not be fully compatible with the installed version of matplotlib. Adjusting the code to accommodate changes in matplotlib or specifying compatible version requirements might help avoid similar issues in the future.
I have also included details of my environment in the attached environment.yml file, which lists the version of matplotlib I used. This should aid in diagnosing the compatibility issue.
Thank you for your time and effort in developing and maintaining TFvelo.
Hello,
While running
TFvelo_run_demo.py
with the dataset name 'pancreas', I encountered aTypeError
indicating that an unexpected keyword argumentwrite_knn_indices
was passed to thecompute_neighbors
method inneighbors.py
. Here's the specific error message:Upon investigation, it appears that the
write_knn_indices=True
argument in thecompute_neighbors
function call (inneighbors.py
) is not recognized by thescanpy.Neighbors.compute_neighbors
method, leading to this error.As a temporary fix, I removed the
write_knn_indices=True
argument from the function call, which resolved the error and allowed the script to run successfully.Could you please look into this issue? It may help to either update the documentation to reflect the current method parameters or adjust the function call in
TFvelo
to match the expected arguments of thescanpy.Neighbors.compute_neighbors
method.Additionally, I've attached the
environment.yml
file for my Conda environment to help with reproducing the issue. This should provide a clear view of all the packages and their versions used in my setup.In addition to the previous issue, I encountered a problem related to
matplotlib
version compatibility. Specifically, the script raised anAttributeError
due to the absence ofmplDeprecation
inmatplotlib.cbook
. Here is the exact error message:This issue suggests that the current code may not be fully compatible with the installed version of
matplotlib
. Adjusting the code to accommodate changes inmatplotlib
or specifying compatible version requirements might help avoid similar issues in the future.I have also included details of my environment in the attached
environment.yml
file, which lists the version ofmatplotlib
I used. This should aid in diagnosing the compatibility issue.Thank you for your time and effort in developing and maintaining
TFvelo
.