ExtractTargetOnepairClusters: Extract Pairs from One Interaction

View source: R/TgView-prep.R

ExtractTargetOnepairClustersR Documentation

Extract Pairs from One Interaction

Description

This function returns one pair of interaction by giving names of 2 cell clusters.

Usage

ExtractTargetOnepairClusters(
  interact.pairs.acted,
  cluster.name.C,
  cluster.name.D,
  kClustersSplit,
  just.list = FALSE
)

Arguments

interact.pairs.acted

The result of network analysis.

cluster.name.C

Name of one cluster.

cluster.name.D

Name of the other cluster.

kClustersSplit

Letters to split 2 interacting clusters.

just.list

If set TRUE, no automatic removing of NA will be performed for data.

Details

The direction of this function is C-D, corresponding to coordinates X-Y in plot, and the subset options applied before will be inherited, which means that options applied on X-axis clusters will be also on C, so as options on Y-axis will be on D.

Value

A list.

  • clusters.name: names of clusters.

  • bt.pairs: a list of all interaction pairs between specified 2 clusters (given in clusters.name).

  • anno.infos: a list of lists. The sublists are

    • location.A: it records locations of A in gene pairs formatted as A-B

    • location.B: it records locations of B in gene pairs formatted as A-B

    • type.A: it records molecular functions of A in gene pairs formatted as A-B

    • type.B: it records molecular functions of B in gene pairs formatted as A-B


ZJUDBlab/InterCellDB documentation built on March 19, 2023, 4:56 p.m.