coefNames-methods: Get coefficient names

coefNamesR Documentation

Get coefficient names

Description

Get coefficient names

Usage

coefNames(obj)

## S4 method for signature 'dreamletResult'
coefNames(obj)

Arguments

obj

A dreamletResult object

Value

array storing names of coefficients

Examples

library(muscat)
library(SingleCellExperiment)

data(example_sce)

# create pseudobulk for each sample and cell cluster
pb <- aggregateToPseudoBulk(example_sce,
  assay = "counts",
  cluster_id = "cluster_id",
  sample_id = "sample_id",
  verbose = FALSE
)

# voom-style normalization
res.proc <- processAssays(pb, ~group_id)

# Differential expression analysis within each assay,
# evaluated on the voom normalized data
res.dl <- dreamlet(res.proc, ~group_id)

# show coefficients estimated for each cell type
coefNames(res.dl)


GabrielHoffman/dreamlet documentation built on Nov. 23, 2024, 12:28 a.m.