gene.degree: Degree Per Gene

Description Usage Arguments Examples

View source: R/tools.R

Description

This function allows you to calculate the in-degree and out-degree of each (selected) gene.

Usage

1
2
3
4
5
6
7
8
gene.degree(
  x,
  vertices = NULL,
  in.degree = TRUE,
  out.degree = TRUE,
  loops = FALSE,
  normalized = FALSE
)

Arguments

x

Graph object.

vertices

Vertices you want to analyze. Default: all vertices.

in.degree

Whether or not to analyze in-degree (optional). Default: TRUE.

out.degree

Whether or not to analyze out-degree (optional). Default: TRUE.

loops

Whether or not to consider loops (optional). Default: FALSE.

normalized

Whether or not to normalize degrees (optional). Default: FALSE.

Examples

1
mtx <- gene.degree(x)

rlebron-bioinfo/gnlearn documentation built on July 25, 2020, 12:38 p.m.