You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great paper and package. Thanks alot for making the code open source. I am trying to simulate the dataset for benchmarking cell-cell interaction tools following the Figure 1 f,g,h of the paper. I read the an adapted version of SVCA is being used for simulation. However I am unable to find the source code (or scripts for running SVCA) to generate or reproduce the ROC plots from the paper. It would be great to get some pointers to simulate the data as described.
Thanks for your question and patience. I didn't include simulation codes because it was mostly identical to SVCA. Please see the adapted codes below and refer to SVCA when needed. Note that you need to stack the simulated counts for each scenario afterwards. Also you need to turn the negatively correlated simulations to positive manually. We didn't explore other possibilities to simulate spatial interaction data, so it may not be the best approach especially after a year of submission.
Thanks for replying. Assuming "CellChatDB_db2.csv" is a standard cellchat database I assume the R1 and R2 are possible receptors? Am I right? I am actually trying to reproduce the plot in Figure 1f. Can you please share the script for that? Precisely I want to check the ROC score for a few different methods for benchamrking. Thanks!
Thank you for presenting this excellent package. I share a similar question to @hiraksarkar regarding the "CellChatDB_db2.csv" file. Should we consider this file as the standard CellChat database, and are R1 and R2 intended to represent possible receptors?
Would it be possible for you to provide the "CellChatDB_db2.csv" file as a reference for further clarification?
Furthermore, another problem is about the following code snippet,
sel = np.arange(phenotypes.shape[1])
sel = list(sel[pd.Series(protein_names[:,0]).isin(db.loc[protein_name,['R1', 'R2']].dropna().values).values])
kin_from = phenotypes[:, sel] # remove the selected pr
If protein_name can retrieve multiple rows, it seems that the code won't work since the db.loc[protein_name,['R1', 'R2']].dropna().values will return a two dimension matrix?
Could you please provide some clarification or guidance on this?
Activity
leeyoyohku commentedon Sep 17, 2023
Hi @hiraksarkar ,
Thanks for your question and patience. I didn't include simulation codes because it was mostly identical to SVCA. Please see the adapted codes below and refer to SVCA when needed. Note that you need to stack the simulated counts for each scenario afterwards. Also you need to turn the negatively correlated simulations to positive manually. We didn't explore other possibilities to simulate spatial interaction data, so it may not be the best approach especially after a year of submission.
hiraksarkar commentedon Sep 26, 2023
Hi @leeyoyohku
Thanks for replying. Assuming "CellChatDB_db2.csv" is a standard cellchat database I assume the R1 and R2 are possible receptors? Am I right? I am actually trying to reproduce the plot in Figure 1f. Can you please share the script for that? Precisely I want to check the ROC score for a few different methods for benchamrking. Thanks!
yujias424 commentedon Feb 23, 2025
Hi @leeyoyohku,
Thank you for presenting this excellent package. I share a similar question to @hiraksarkar regarding the "CellChatDB_db2.csv" file. Should we consider this file as the standard CellChat database, and are R1 and R2 intended to represent possible receptors?
Would it be possible for you to provide the "CellChatDB_db2.csv" file as a reference for further clarification?
Thank you very much for your time and assistance!
Best,
Larry
yujias424 commentedon Feb 23, 2025
Hi @leeyoyohku,
Furthermore, another problem is about the following code snippet,
sel = np.arange(phenotypes.shape[1])
sel = list(sel[pd.Series(protein_names[:,0]).isin(db.loc[protein_name,['R1', 'R2']].dropna().values).values])
kin_from = phenotypes[:, sel] # remove the selected pr
If protein_name can retrieve multiple rows, it seems that the code won't work since the db.loc[protein_name,['R1', 'R2']].dropna().values will return a two dimension matrix?
Could you please provide some clarification or guidance on this?
Thank you again for your help!
Best regards,
Larry