ventolab / cellphonedb-data

15 stars 7 forks source link

Missing id-cp-interaction field in interaction_input.csv #7

Open rdalbanus opened 1 year ago

rdalbanus commented 1 year ago

Hi folks,

I've recently switched to CPDB v4 and noticed that the id-cp-interaction field is now empty inside the interaction_input.csv file. Is this a bug, or is there a reason for that?

I can see this field inside the interaction_table.csv in the zip file, but the interactions are not in the same order as interaction_input.csv, and I couldn't find a way to map them directly.

How can one obtain all the CPDB IDs from a given gene programmatically from the database in the current version?

Thanks!

ktroule commented 1 year ago

Hi.

The id-cp-interaction is automatically created during the database build (conversion of input files to tables). To map them directly you can create a pseudo key by joining partner_a | partner_b | protein_name_a | protein_name_b columns.

Regards