Get sub-network centered around one TF.

get_tf_network(object, ...)

# S4 method for class 'CSNObject'
get_tf_network(
  object,
  celltypes = NULL,
  tfs = NULL,
  features = NULL,
  network = DefaultNetwork(object),
  graph = "module_graph",
  order = 3,
  keep_all_edges = FALSE,
  verbose = TRUE,
  cores = 1,
  ...
)

Arguments

object

The input data, a csn object.

...

Arguments for other methods

celltypes

Celltypes to plot. If NULL, all celltypes are plotted.

tfs

The transcription factors to center around.

features

Features to use. If NULL uses all features in the graph.

network

Name of the network to use.

graph

Name of the graph.

order

Integer indicating the maximal order of the graph.

keep_all_edges

Logical, whether to maintain all edges to each leaf or prune to the strongest overall connection.

verbose

Logical. Whether to print messages.

cores

Logical. Whether to parallelize the computation with foreach.

Value

A CSNObject object.