write_meta {clustifyr} | R Documentation

## Function to write metadata to object

### Description

Function to write metadata to object

### Usage

    write_meta(object, ...)

    ## S3 method for class 'Seurat'
    write_meta(object, meta, ...)

    ## S3 method for class 'SingleCellExperiment'
    write_meta(object, meta, ...)

### Arguments

`object` | object after tsne or umap projections and clustering
`...` | additional arguments
`meta` | new metadata dataframe

### Value

object with newly inserted metadata columns

### Examples

    obj <- write_meta(
        object = s_small3,
        meta = seurat_meta(s_small3)
    )
    obj <- write_meta(
        object = sce_small,
        meta = object_data(sce_small, "meta.data")
    )

[Package clustifyr version 1.6.0 Index]