Subsetting | R Documentation |
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 )
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 |
partner_b |
Interaction partner b (See |
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. |
Returns a new Matchmaker object.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.