Closed maven0708 closed 1 year ago
thanks for this question. Looks to me somehow the step of uniformly sampling along the initial path is failed because either arclen
or X
has only one element.
Have you tried passing two different start
and end
cells? Do you still have the same issue? otherwise, providing me some sample data that can reproduce this bug will be helpful
Thank you for your reply! Sorry for my delay in getting back to this. I have tried a number of ways to modify this, including your suggestion. I believe the issue might be in how the fixed_points are chosen? I'm not quite sure I understand that part of it. Specifically this line of code:
fixed_points = np.array(
[
[8.45201833, 9.37697661],
[14.00630381, 2.53853712],
[17.30550636, 6.81561775],
[18.06891717, 11.9840678],
[14.13613403, 15.22244713],
[9.72644402, 14.83745969],
]
)
Thank you!
Edit: as an update, I realized one of my fixed_points was off the screen and when I corrected that I was able to continue in my analysis without the numpy error. But my question still remains of how to identify the best fixed points? Is there a command, or is it based off subjective choosing? Thank you!
Thank you for your reply! Sorry for my delay in getting back to this. I have tried a number of ways to modify this, including your suggestion. I believe the issue might be in how the fixed_points are chosen? I'm not quite sure I understand that part of it. Specifically this line of code:
fixed_points = np.array( [ [8.45201833, 9.37697661], [14.00630381, 2.53853712], [17.30550636, 6.81561775], [18.06891717, 11.9840678], [14.13613403, 15.22244713], [9.72644402, 14.83745969], ] )
Thank you!
Edit: as an update, I realized one of my fixed_points was off the screen and when I corrected that I was able to continue in my analysis without the numpy error. But my question still remains of how to identify the best fixed points? Is there a command, or is it based off subjective choosing? Thank you!
you may run dyn.pl.topography
first to find the fixed points, and then get them by checking
print(adata.uns['VecFld_umap']['Xss'])
# -1 -- stable
# 0 -- saddle
# 1 -- unstable
print(adata.uns['VecFld_umap']['ftype'] )
whose order corresponds to the fixed points in hte topography figure.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days
Hello! I am following the LAP tutorial, and keep running into an issue with
dyn.pd.least_action
. Please let me know if I should provide more information, and I hope there is an easy solution. I did have to change the "adj_key" for each to match the obsp that I had in my object. I get the following output (and error) when I try to run it:If it helps, here is the object I am working with: