This function creates a sankey plot for a selected gene including transcription factor interactions.
Source:R/plot.R
plot_graph_sankey_tf.Rd
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
)
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