Closed rachel662 closed 10 months ago
Hi @rachel662, thank you for using CellPhoneDB. Can't say what's up off the top of my head but can we quickly double check: a) The command you used to launch CellPhoneDB? b) That all your barcodes (cells) are in your meta file?
Hi there, thanks for getting back to me so quicly the command i used to launch cellphonedb after installing it via pip and activating an environment was
cellphonedb method statistical_analysis metadata.txt counts.txt
from opening the txt file I can see that the barcodes are in my meta file
Cheers, Rachel
Hi Rachel, the error is usually related to NA values in your cell type annotation (meta file). Can you double check that or is there a way you could share those files with us so we can check directly?
Hi there, I've noticed I have one fewer row in my metadata than columns in my counts - i think this could also be the issue? I had to convert from mouse to human ensembl gene names so perhaps this has caused the problem?
I have also checked and I do have 3 NAs in one of my metadata columns
Would you have any suggestions for how to remove these NAs?
Hi @rachel662 you can use python and pandas to read your metadata file as a csv (df = pd.read_csv('metadata.txt', sep='\t')
) and afterwards use df.dropna()
to remove any NAs there. Alternatively if you're using R you can use either na.omit(metadata.frame)
or drop_na(metadata)
if you're using tidyr.
hi there, I've done this and also deleted the relevant columns in the metadata but i still get theis error
AttributeError: Can only use .str accessor with string values!
would you be able to help at all? thanks, Rachel
I ve got exactly the same issue. I have no NA. I finally find out. One value for class in meta file was emtpy :/
Hi, I am also getting this error,
AttributeError: Can only use .str accessor with string values!
but it's related to my counts data not meta data. Has anyone figured out how to fix this issue? There are no NA's in my counts data.
@prete - do you have any suggestions?
@rachel662 @kfijan could you please double check that:
a) You don't have any N/A in your meta file b) You don't have any missing clusters/classes in your meta file c) All the clusters/classes in your meta file are strings (not just numbers)
Have you solved the problem? I got the same situation today. Thanks.
Hi @singlece, like the previous answer, have you checked that you don't have any N/A in your meta file and that all the clusters/classes in your meta file are strings (not just numbers — if they are 1,2,3 rename them as c1,c2,c3)
Hi there
I gotan unexpected error when trying to run cellphonedb, on my terminal it says the following
would anyone be able to advise me on what the issue is? Cheers Rachel