add_embedding: add_embedding

View source: R/loom.R

add_embeddingR Documentation

add_embedding

Description

Add the given embedding as a column attribute and meta data related to the given embeddding to the given .loom file handler.

Usage

add_embedding(loom, embedding, name, is.default = F, trajectory = NULL)

Arguments

loom

The loom file handler.

embedding

A M-by-2 data.frame of the embeddings with M cells. If the given trajectory is not NULL, it should correspond to the projection of the cells onto the given trajectory.

name

The name of the given embedding.

is.default

Default embedding to use in the .loom file.

trajectory

A named list with the node names, the edges, and the x and y coordinates of the nodes of trajectory. Use the function create_trajectory().


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