Closed schroeme closed 3 weeks ago
Hello @schroeme,
Thank you for reporting! What is the content of terminal_states
? This might help us trace the cause of this issue.
The content of terminal_states
is
bi006.pfcm.rxn1_GCTTGGGCACATTACG MOL dtype: object
Thanks!
I'll also note that if I plot that cell's coordinate on the UMAP, it is in the correct spot and in adata_ol_ctx
.
Hi @schroeme,
I can't determine the data type of your terminal_states
. It appears similar to a pandas Series but lacks an index. Please ensure terminal_states
is one of the supported data types (see the documentation: Palantir Core).
For example, you could use a dictionary:
terminal_states = {
"your_branch_name": "bi006.pfcm.rxn1_GCTTGGGCACATTACG",
}
Edit: I think I misread your post, and terminal_states
is indeed a pandas series, like terminal_states = pd.Series({"bi006.pfcm.rxn1_GCTTGGGCACATTACG":"MOL"})
. However, it seems the cell name is in the index and the branch name is the value of the Series. Try flipping the two as suggested above.
Hi @katosh, sorry about that. terminal_states
is a pandas Series, and the index is the barcode. Additionally, if I remove terminal_states=terminal_states
, the command still fails with the same error.
Thank you for the clarification. Another reason for this error could be non-unique cell barcodes. If multiple cells in your anndata adata_ol_ctx
have the same name. You could inspect, e.g., adata_ol_ctx.obs_names.value_counts()
to see if any names come up more than one time. If this is the case, then you could make them unique with adata_ol_ctx .obs_names_make_unique()
or consider remove if they are duplicates of the same cell.
Please let me know if this helps or if you have any further questions!
That fixed the issue, thanks so much!
Hi! I am running Palantir as below:
and am getting the following error:
adata_ol_ctx
has shape 8975 × 256 andms_data
has shape(8975, 2)
. I will note that rather than gene symbols, eachadata.var
has a name from 1 to 256 as strings (there are 256 features). The MAGIC imputation ran fine. Might I be violating some other input requirements? Can you please advise?Thanks, Margaret