Learn R Programming

SeuratObject (version 5.0.2)

CreateMolecules: Create a Molecules Object

Description

Create a Molecules Object

Usage

CreateMolecules(coords, ...)

# S3 method for data.frame CreateMolecules(coords, key = "", ...)

# S3 method for Molecules CreateMolecules(coords, ...)

# S3 method for `NULL` CreateMolecules(coords, ...)

Value

A Molecules object

Arguments

coords

Spatial coordinates for molecules; should be a data frame with three columns:

  • x”: x-coordinates for each molecule

  • y”: y-coordinates for each molecule

  • gene”: gene name for each molecule

...

Arguments passed to other methods

key

A key to set for the molecules