Subsetting: Subset Interactions

View source: R/matchmake.R

SubsettingR Documentation

Subset Interactions

Description

Subset the interactions based on cell type identity and interacting partners.

Usage

Subsetting(
  object,
  ident1 = NULL,
  ident2 = NULL,
  partner_a = NULL,
  partner_b = NULL,
  directed = FALSE
)

Arguments

object

Matchmaker object.

ident1

Cell type identity group 1 to subset.

ident2

Cell type identity group 2 to subset. Default is NULL, and all cell types will be used.

partner_a

Interaction partner a (See Screening) to subset. Defaulte is NULL, and all interactions will be selected.

partner_b

Interaction partner b (See Screening) to subset. Defaulte is NULL, and all interactions will be selected.

directed

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.

Value

Returns a new Matchmaker object.

Examples

## Not run: 
# subset all Macrophage related interactions
interaction.mac <- Subsetting(object, ident1 = "Macrophage")
# subset all CSF1 related interactions
interaction.csf <- Subsetting(object, partner_a = "CSF1")

## End(Not run)

stevexniu/scMatchmaker documentation built on June 2, 2022, 12:35 p.m.