To better control the node size and edge weights of the inferred networks across different datasets, we compute the maximum number of cells per cell group and the maximum number of interactions (or interaction weights) across all datasets
getMaxWeight(
object.list,
slot.name = c("idents", "net"),
attribute = c("idents", "count")
)
List of CellChat objects
the slot name of object that is used to compute the maximum value.
When slot.name = "idents", 'attribute' should be "idents", which will compute the maximum number of cells per cell group across all datasets
When slot.name = "net", 'attribute' can be either "count" or "weight", which will compute he maximum number of interactions (or interaction weights) across all datasets
When slot.name = "net" or "netP", 'attribute' can be a single pathway name or a ligand-receptor pair name
the attribute to compute the maximum values. `attribute` should have the same length as `slot.name`.
`attribute` can only be "count", "weight","count.merged","weight.merged" or a single pathway name or a ligand-receptor pair name
A numeric vector