CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

netAnalysis_computeCentrality

Open surinderchd opened this issue 1 year ago • 4 comments

cellchat <- netAnalysis_computeCentrality(cellchat, slot.name = "netP") |++++++++++++++++++++++++ | 47% ~00s Error in igraph::page_rank(G) : At vendor/cigraph/src/centrality/prpack/prpack_igraph_graph.cpp:73 : Edge weights must not be negative. Invalid value

Please help me to solve this issue.

Thanking YOu, With Regards, Surinder Pal

surinderchd avatar Feb 26 '24 15:02 surinderchd

@surinderchd It seems that there are negative values in cellchat@net$prob

sqjin avatar Feb 27 '24 14:02 sqjin

Dear Jin, Thanks for your reply, But how can I remove these values? Or these values affect my data if I remove them?

Thanks and Regards, Surinder Pal

On Tuesday 27 February 2024, Suoqin Jin @.***> wrote:

@surinderchd https://github.com/surinderchd It seems that there are negative values in @.***$prob

— Reply to this email directly, view it on GitHub https://github.com/jinworks/CellChat/issues/90#issuecomment-1966706605, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5A5D2XQFMPXWIJ7XDUNWDYVXWHJAVCNFSM6AAAAABD2MHWW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRWG4YDMNRQGU . You are receiving this because you were mentioned.Message ID: @.***>

-- null

surinderchd avatar Feb 27 '24 16:02 surinderchd

@surinderchd This indicates the problem of your analysis. You should check your analysis and ensure that you use the normalized data without negative values as input of cellchat analysis/.

sqjin avatar Feb 27 '24 22:02 sqjin

Dear Jin, Thanks for your quick response, Do I need to normalise data after creating cell chat object, or it should be pre normalised single cell experiment data object?

Thanking you, With Regards, Surinder Pal

On Tuesday 27 February 2024, Suoqin Jin @.***> wrote:

@surinderchd https://github.com/surinderchd This indicates the problem of your analysis. You should check your analysis and ensure that you use the normalized data without negative values as input of cellchat analysis/.

— Reply to this email directly, view it on GitHub https://github.com/jinworks/CellChat/issues/90#issuecomment-1967850088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM5A5D4Z6NN3JB3QXM72DRTYVZQJVAVCNFSM6AAAAABD2MHWW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRXHA2TAMBYHA . You are receiving this because you were mentioned.Message ID: @.***>

-- null

surinderchd avatar Feb 28 '24 07:02 surinderchd