is_data_expr: Determine if an object is a data_expr in sens of GWENA

View source: R/utils.R

is_data_exprR Documentation

Determine if an object is a data_expr in sens of GWENA

Description

Check an object to be a data.frame or a matrix compatible of genes and samples.

Usage

is_data_expr(data_expr)

Arguments

data_expr

matrix or data.frame, expression data with genes as column and samples as row.

Value

list, a boolean as first element and in second element NULL or the reason why boolean is set to FALSE

Examples

expr <- matrix(runif(15*40), 15)
colnames(expr) <- paste0("gene_", seq_len(ncol(expr)))
rownames(expr) <- paste0("gene_", seq_len(nrow(expr)))
is_data_expr(expr)


Kumquatum/GWENA documentation built on July 7, 2023, 3:41 p.m.