Skip to content

subsetCellChat recalculated @netP consistency - #467

Open
40YTGan wants to merge 1 commit into
jinworks:mainfrom
40YTGan:patch-1
Open

40YTGan wants to merge 1 commit into
jinworks:mainfrom
40YTGan:patch-1

Conversation

@40YTGan

@40YTGan 40YTGan commented Aug 22, 2026

Copy link
Copy Markdown

subsetCellChat() used to recalculate object@netP$centr from net$prob, a ligand-target level interaction data instead of a pathway-level aggregated one. The output centrality score is therefore inconsistent with $prob and $pathway at pathway level.
The PR changed netAnalysis_computeCentrality() input to netP$prob.
Might be relevant to the issue in #214 (subset leads to mismatch between netP$pathway and netP$centr, and crashes plotting)

Changed internal `netAnalysis_computeCentrality()` input to `netP$prob` so that output netP have pathway, prob, centr fields consistently at pathway level, not ligand-target level.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant