check_spe: Check input spe

View source: R/check_spe.R

check_speR Documentation

Check input spe

Description

This function checks that the spe object has the appropriate structure. For more details please check the vignette documentation.

Usage

check_spe(
  spe,
  variables = c("sum_umi", "sum_gene", "expr_chrM", "expr_chrM_ratio")
)

Arguments

spe

A SpatialExperiment-class object. See fetch_data() for how to download some example objects or read10xVisiumWrapper() to read in spaceranger --count output files and build your own spe object.

variables

A character() vector of variable names expected to be present in colData(spe).

Value

The input object if all checks are passed.

Author(s)

Brenda Pardo, Leonardo Collado-Torres

See Also

Other Check input functions: check_modeling_results(), check_sce(), check_sce_layer()

Examples


if (enough_ram()) {
    ## Obtain the necessary data
    if (!exists("spe")) spe <- fetch_data("spe")

    ## Check the object
    check_spe(spe)
}

LieberInstitute/spatialLIBD documentation built on July 31, 2024, 12:10 p.m.