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

Description Usage Arguments Value Examples

View source: R/utils.R

Description

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

Usage

1
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

1
2
3
4
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)

GWENA documentation built on Feb. 17, 2021, 2:01 a.m.