regress_out_from_embeddings: Regress out variables from cell embeddings

View source: R/generics.r

regress_out_from_embeddingsR Documentation

Regress out variables from cell embeddings

Description

Regress out variables from cell embeddings with a linear model

Usage

regress_out_from_embeddings(object, ...)

## Default S3 method:
regress_out_from_embeddings(object, vars)

## S3 method for class 'Seurat'
regress_out_from_embeddings(
  object,
  reduction,
  vars_to_regress,
  reduction.name = reduction,
  reduction.key = NULL
)

Arguments

object

An object

vars

Data frame of the variables to regress out

reduction

Name of the reduction object to use

vars_to_regress

Variables in the meta.data slot for regressing out

reduction.name

Name of the new reduction object

reduction, key

Key of the returned reduction


quadbiolab/simspec documentation built on March 8, 2024, 11:59 p.m.