R: 'Molecules' Methods

Molecules-methods {SeuratObject} | R Documentation

## `Molecules` Methods

### Description

Methods for `Molecules` objects

### Usage

    ## S3 method for class 'Molecules'
    Features(x, ...)

    ## S3 method for class 'Molecules'
    GetTissueCoordinates(object, features = NULL, ...)

    ## S3 method for class 'Molecules'
    subset(x, features = NULL, ...)

    ## S4 method for signature 'Molecules'
    show(object)

### Arguments

`x, object` | A `Molecules` object
`...` | Arguments passed to other methods
`features` | A vector of molecule names to keep; if `NULL`, defaults to all molecules

### Details

`Features`: Get spatially-resolved molecule names

`GetTissueCoordinates`: Get spatially-resolved molecule coordinates

`subset`: Subset a `Molecules` object to certain molecules

`show`: Display an object summary to stdout

### Value

`Features`: A vector of spatially-resolved molecule names; if no molecular information present, returns `NULL`

`GetTissueCoordinates`: A data frame with three columns:

- “`x`”: the x-coordinate of a molecule

- “`y`”: the y-coordinate of a molecule

- “`molecule`”: the molecule name

`subset`: `x` subsetted to the features specified by `features`

`show`: Invisibly returns `NULL`

### See Also

`Molecules-class`

[Package SeuratObject version 4.1.0 Index]