Create a Molecules Object

CreateMolecules(coords, ...)

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

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

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

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

Value

A Molecules object