Skip to contents

Given a Seurat object obj, and an anndata object adata, calculates the intersection of cell names between colnames(obj) and adata.obs_names, and subsets both objects to their intersection.

Usage

intersect_seurat_adata(obj, adata)

Arguments

obj

A seurat object

adata

An anndata file.

Value

a Seurat object subset to cells that it has in common with adata.