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

netVisual_diffInteraction for each individual cell-type #669

Closed
abulislam opened this issue Aug 11, 2023 · 1 comment
Closed

netVisual_diffInteraction for each individual cell-type #669

abulislam opened this issue Aug 11, 2023 · 1 comment

Comments

@abulislam
Copy link

Following this tutorial to compare two data-sets

https://htmlpreview.github.io/?https://github.com/sqjin/CellChat/blob/master/tutorial/Comparison_analysis_of_multiple_datasets.html

object.list <- list(OA = cellchat.OA, WT = cellchat.WT)

cellchat <- mergeCellChat(object.list, add.names = names(object.list))

netVisual_diffInteraction(cellchat, weight.scale = T, measure = "count")

above code is giving interactions for all the cell types. But I want to have differential interaction count figure individually for each cell types. For example

netVisual_diffInteraction(cellchat, measure = "count", sources.use="HS1")

Error in i_set_edge_attr(x, attr(value, "name"), index = value, value = attr(value, :
Length of new attribute value must be 1 or 35, the number of target edges, not 19

How can I do that?

thanks

@abulislam
Copy link
Author

netVisual_diffInteraction(cellchat, measure = c("count"), weight.scale = T, comparison = c(1,2), sources.use = c(11), targets.use = c(1:10))

Needed to define the all other cells as target. Without target specification it doesn't work on all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant