gene_spec: 'GeneSpec' Constructor

View source: R/GeneSpec-class.R

gene_specR Documentation

GeneSpec Constructor

Description

[Experimental]

Creates a new GeneSpec object.

Usage

gene_spec(genes = NULL, fun = NULL, fun_name = deparse(substitute(fun)))

Arguments

genes

(named character or NULL)
the gene IDs, where the names are used as labels if available.

fun

(function or NULL)
summary function. If NULL is used then multiple genes are not summarized but returned as a matrix from the extract method.

fun_name

(string)
name of the summary function.

Value

A new GeneSpec object.

Examples

gene_spec("GeneID:11185")
gene_spec(c("GeneID:11185", "GeneID:10677", "GeneID:101928428"), fun = colMeans)

insightsengineering/hermes documentation built on Sept. 19, 2024, 9:06 p.m.