Subset the interactions based on cell type identity and interacting partners.
Subsetting(
object,
ident1 = NULL,
ident2 = NULL,
partner_a = NULL,
partner_b = NULL,
directed = FALSE
)
Matchmaker object.
Cell type identity group 1 to subset.
Cell type identity group 2 to subset. Default is NULL, and all cell types will be used.
Interaction partner a (See Screening
) to subset. Defaulte is NULL, and all interactions will be selected.
Interaction partner b (See Screening
) to subset. Defaulte is NULL, and all interactions will be selected.
Logic, if TRUE subset only ident1 with ligands (partner_a) and ident2 with receptor (partner_b). If FALSE, ident2 with ligands and ident1 with receptor will be included. Default is TRUE.
Returns a new Matchmaker object.
if (FALSE) {
# subset all Macrophage related interactions
interaction.mac <- Subsetting(object, ident1 = "Macrophage")
# subset all CSF1 related interactions
interaction.csf <- Subsetting(object, partner_a = "CSF1")
}