assert_is_valid_sumexp: Assert that x is a valid SummarizedExperiment

View source: R/1_assertions.R

assert_is_valid_sumexpR Documentation

Assert that x is a valid SummarizedExperiment

Description

Assert that x is a valid SummarizedExperiment

Usage

assert_is_valid_sumexp(x, .xname = get_name_in_parent(x))

Arguments

x

SummarizedExperiment

.xname

see get_name_in_parent

Value

TRUE or FALSE

Examples

# VALID
    file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
    x <- read_metabolon(file)
    assert_is_valid_sumexp(x)
# NOT VALID
    rownames(SummarizedExperiment::colData(x)) <- NULL
    # assert_is_valid_sumexp(x)

bhagwataditya/importomics documentation built on Oct. 29, 2024, 3:19 p.m.