Skip to contents

This function creates a sankey plot for a selected gene including transcription factor interactions.

Usage

plot_graph_sankey_tf(
  lrobj_tbl,
  pagerank_table,
  target = NULL,
  cluster = NULL,
  target_type = NULL,
  plt_name = NULL,
  threshold = 50,
  save_path = NULL
)

Arguments

lrobj_tbl

LRobject table with all data

target

gene

cluster

cluster

target_type

type of target

plt_name

plot title

threshold

top_n n value

Value

R default plot

Examples

paths <- c(
  "CTR" = system.file("extdata",
    "CTR_LR.csv",
    package = "CrossTalkeR"
  ),
  "EXP" = system.file("extdata",
    "EXP_LR.csv",
    package = "CrossTalkeR"
  )
)
output <- system.file("extdata", package = "CrossTalkeR")
genes <- c("TGFB1")

data <- generate_report(paths,
  genes,
  out_path = paste0(output, "/"),
  threshold = 0,
  out_file = "vignettes_example.html",
  output_fmt = "html_document",
  report = FALSE
)
#> Warning: file("") only supports open = "w+" and open = "w+b": using the former
#> Error in read.table(file = file, header = header, sep = sep, quote = quote,     dec = dec, fill = fill, comment.char = comment.char, ...): no lines available in input