CellTalkDB icon indicating copy to clipboard operation
CellTalkDB copied to clipboard

Replacing CellPhoneDB database

Open blackturtle-bam opened this issue 4 years ago • 2 comments

Hi, thank you for developing this database. I have mouse single cells data and I want to use your database to do analysis using CellPhoneDB. CellPhoneDB needs protein, gene, complex, and interactions input file. I've downloaded the files from your download page but I'm not sure which file to use. Could you explain how to generate the database? Thank you.

blackturtle-bam avatar Mar 02 '21 01:03 blackturtle-bam

Hello, you can use mouse_lr_pairs.rds to replace the LR pairs in the CellPhoneDB input file and retain the complex pairs.

multitalk avatar Mar 06 '21 11:03 multitalk

Hi, thank you for answering the question. I tried to to replace the interaction file using the mouse_lr_pairs.rds by executing this commands:

cellphonedb database generate --user-interactions mouse_pair.csv --user-interactions-only

then I got the following error: KeyError: 'partner_a'

So, I renamed the header to partner_a and partner_b, but then another error occurred: KeyError: "['source'] not in index"

Do I need to modify other files as well?

blackturtle-bam avatar Mar 06 '21 22:03 blackturtle-bam