Get any attribute from a CSNObject object

get_attribute(object, ...)

# S4 method for class 'CSNObject'
get_attribute(
  object,
  celltypes = NULL,
  active_network = NULL,
  attribute = c("genes", "tfs", "peaks", "regulators", "targets", "celltypes", "cells",
    "modules", "coefficients"),
  ...
)

Arguments

object

A CSNObject object

...

Additional arguments

celltypes

A character vector specifying the celltypes to get attributes for. If NULL, all celltypes are returned.

active_network

A character string specifying the active network to get attributes for.

attribute

A character string specifying the attribute to get. This can take any of the following choices:

genes

The original gene without any filtering.

tfs

The original transcription factors without any filtering.

peaks

The original peaks without any filtering.

regulators

The regulators of the network after inference CSN.

targets

The targets of the network after inference CSN.

cells

The cells of the network.

modules

The modules of the network.

coefficients

The coefficients of the network.

Value

A character vector of regulatory genes