Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

added remove.isolate, keep color consistency, return vertex.receiver …#683

Open
alperdomo wants to merge 1 commit intosqjin:masterfrom
alperdomo:added_remove-isolate_color-consistency_return_vertex-receiver
Open

added remove.isolate, keep color consistency, return vertex.receiver …#683
alperdomo wants to merge 1 commit intosqjin:masterfrom
alperdomo:added_remove-isolate_color-consistency_return_vertex-receiver

Conversation

@alperdomo
Copy link

…steps

@alperdomo
Copy link
Author

alperdomo commented Sep 5, 2023

Dear Suoqin Jin,

One of the most used functions in currently published works using cellChat is netAnalysis_signalingRole_network().

We added the remove.isolate functionality to deal with data sets containing many cell states that do not display signaling roles, so the heatmap does not look quite empty where only a handful of cells display roles for an interesting pathway. For instance, if a data set has > 70 cell states, as the ones I handle. To preserve the color code across multiple pathways analyses within a single dataset, across datasets with the same cell states, but also across other functions from CellChat, for instance, netVisual_chord_gene(), the remove.isolate step was added after checking if is.null(color.use).

We additionally added one step to enable the return of the vertex.receiver indexes that are used in other functions from CellChat, for instance, netVisual_aggregate().

Best regards,

Alvaro

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant