get_cell_annotation: get_cell_annotation

View source: R/loom.R

get_cell_annotationR Documentation

get_cell_annotation

Description

Get cell annotations from the given loom file

Usage

get_cell_annotation(loom, annotations.columns = NULL)

Arguments

loom

.loom file name

Value

data.frame containing the cell annotations in the given loom (cells as rows, annotation variables as columns).

Examples

loomPath <-  file.path(system.file('extdata', package='SCopeLoomR'), "example.loom")
loom <- open_loom(loomPath)

cell_annotations <- get_cell_annotation(loom)
head(cellAnnots)

aertslab/SCopeLoomR documentation built on April 19, 2022, 11:25 a.m.