Circos_plot: Circos plot

Description Usage Arguments

Description

Circos plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
CircosPlot(
  LRscorematrix,
  LRscore_conditions,
  LRloop_info,
  Ligand,
  Receptor,
  WhichLRscore,
  color_L,
  color_R,
  color_LR,
  width_same_ligand_cluster,
  width_different_ligand_cluster,
  width_ligand_receptor,
  width_same_receptor_cluster,
  width_different_receptor_cluster,
  cplotthresh,
  cex
)

Arguments

LRscorematrix

A matrix with columns "ligand", "receptor" and the condition names where the condition columns contain the LRscores of each ligand-receptor pairs in each condition

LRscore_conditions

A vector of conditions to be used when calculating the maximum or mean LR expr_score for each LR pair acorss conditions

LRloop_info

The list of collected info on the LRloop_network of interest resulted from the function "LRL_info_collection"

Ligand

'L1' or 'L2'.

Receptor

'R1' or 'R2'. Remark: Ligand and Receptor should be set in pairs as either Ligand = "L1", Receptor = "R1", or Ligand = "L2", Receptor = "R2"

WhichLRscore

The LR expr_score to be used in the plot, which is 'LRscore_max' (for each LR pair, the maximum LR expr_score across LRscore_conditions) or 'LRscore_mean' (for each LR pair, the average LR expr_score across LRscore_conditions)

color_L

A vector of colors of the ligand clusters, with the name of each element the name of the corresponding cluster

color_R

A vector of colors of the receptor clusters, with the name of each element the name of the corresponding cluster

color_LR

A vector of colors of the LR clusters, with the name of each element the name of the corresponding cluster

width_same_ligand_cluster

Gap width between ligand nodes in the same cluster

width_different_ligand_cluster

Gap width between different ligand clusters

width_ligand_receptor

Gap width between the ligand nodes and the receptor nodes

width_same_receptor_cluster

Gap width between receptor nodes in the same cluster

width_different_receptor_cluster

Gap width between different receptor clusters

cplotthresh

A number. Only plot L-R edges in the circos plot with LRscore > cplotthresh

cex

Font size


Pinlyu3/LRLoop documentation built on Jan. 7, 2022, 3:04 p.m.