-
Notifications
You must be signed in to change notification settings - Fork 28
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
error running pipeline #44
Comments
I know how to fix the error 1: |
I have updated the metrics.py from the scib in github. And the error 2 becomes:
But I don't know how to fix it. |
Hi, it seems like you might not be getting any values for the batch silhouette (batch ASW) score. Could you check what the result of the metric is on the integrated output that is causing the error? import scib
asw_batch = scib.me.silhouette_batch(
adata_int,
batch_key=batch_key,
group_key=label_key,
embed='X_emb',
return_all=True,
verbose=True,
) If If 'X_emb' is not available, try computing and using the PCA instead asw_batch = scib.me.silhouette_batch(
adata_int,
batch_key=batch_key,
group_key=label_key,
embed='X_pca',
return_all=True,
verbose=True,
) |
I changed the code so that you get NaN if the dataframe is empty. Feel free to update scib and rerun the pipeline. |
Hi! Thanks again for your excellent work!
I am running pipeline on my data, it has 4 study about myeloid cells from different labs. And their celltype are labeled based on different methods. For example, one study has celltype all as "myeloid cells", one as " TYPE1, TYPE2, TYPE3", one as" TAM1(PD-L1),TAM2".
I have get rid of "scanvi" and "scgen" methods in my config since they use celltype. But I keep the original celltype in the obs otherwise it will break in the embedding step.
So can I still run the pipeline with my data?
It has the errors like :
1.
And here is my config:
Could you help me with it? Does this error happen because of celltype issue or something else? Is it necessary to relabel their celltype?
Thank you for your time!!!!
The text was updated successfully, but these errors were encountered: