-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with model.initialize_archetypes() #41
Comments
I determined the cause of the issue. n_waypoint_eigs must be <= n_SEACells + 1. If this does not hold true, then at line 132 of palantir/core.py, no_iterations is set to 0 and the error is thrown (In that function, data.shape[1] = n_waypoint_eigs-1 and num_waypoints = n_SEACells). In this case, I had 8 SEACells and had set n_waypoint_eigs to 10, following the default number in the example notebooks. Could you please advise in general about how n_SEACells and n_waypoint_eigs should be set? In a tutorial notebook it says that it should be the number of cells / 75. However, I feel like I read somewhere else (I can't seem to find the source for where I read it) that the number of SEACells should be equal to the number of cells / 100. Also, I didn't really find any direction about best practices for how to set the value of n_waypoint_eigs. What's best practices for this? Does it scale on the size of the dataset? |
I have the same problem when my n_SEACells is 7 (I do not have enough cells) while keeping n_waypoint_eigs=10. Any updates? |
AttributeError Traceback (most recent call last) File ~/miniconda3/envs/seacells/lib/python3.8/site-packages/SEACells/core.py:129, in SEACells.initialize_archetypes(self) File ~/miniconda3/envs/seacells/lib/python3.8/site-packages/SEACells/core.py:245, in SEACells._get_greedy_centers(self, n_mcs) AttributeError: 'NoneType' object has no attribute 'shape' File ~/miniconda3/envs/seacells/lib/python3.8/site-packages/SEACells/core.py:129, in SEACells.initialize_archetypes(self) File ~/miniconda3/envs/seacells/lib/python3.8/site-packages/SEACells/core.py:245, in SEACells._get_greedy_centers(self, n_mcs) AttributeError: 'NoneType' object has no attribute 'shape' |
Could you help me solve this bug? I am stuck in this step for a long time. |
I have an AnnData object (adata) from which I am trying to create a SEACells model. The AnnData object has 593 rows corresponding to 593 cells.
I'm running into an error at this line of code which I pulled from one of the tutorial notebooks:
`
The error I'm getting is an IndexError seemed to be caused by Palantir:
I have the latest version of SEACells and my palantir version is 1.1
Some help debugging this would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: