genes-methods: Get the number of genes for a 'GRN' object.

nGenesR Documentation

Get the number of genes for a GRN object.

Description

Return the number of genes (all or only non-filtered ones) that are defined in the GRN object.

Usage

nGenes(GRN, filter = TRUE)

Arguments

GRN

Object of class GRN

filter

TRUE or FALSE. Default TRUE. Should genes marked as filtered be included in the count?

Value

Integer. Number of genes that are defined in the GRN object, either by excluding (filter = TRUE) or including (filter = FALSE) genes that are currently marked as filtered.

Examples

# See the Workflow vignette on the GRaNIE website for examples
GRN = loadExampleObject()
nGenes(GRN, filter = TRUE)
nGenes(GRN, filter = FALSE)

chrarnold/GRaNIE documentation built on April 28, 2022, 2:18 a.m.