Key: Get a key

Description Usage Arguments Examples

View source: R/generics.R

Description

Get a key

Set a key

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
Key(object, ...)

Key(object, ...) <- value

## S3 method for class 'Assay'
Key(object, ...)

## S3 method for class 'DimReduc'
Key(object, ...)

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

## S3 replacement method for class 'Assay'
Key(object, ...) <- value

## S3 replacement method for class 'DimReduc'
Key(object, ...) <- value

Arguments

object

An object

...

Arguments passed to other methods

value

Key value

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Get an Assay key
Key(object = pbmc_small[["RNA"]])

# Get a DimReduc key
Key(object = pbmc_small[["pca"]])

# Show all keys associated with a Seurat object
Key(object = pbmc_small)

# Set the key for an Assay
Key(object = pbmc_small[["RNA"]]) <- "newkey_"
Key(object = pbmc_small[["RNA"]])

# Set the key for DimReduc
Key(object = pbmc_small[["pca"]]) <- "newkey2_"
Key(object = pbmc_small[["pca"]])

lambdamoses/SeuratBasics documentation built on May 6, 2020, 9:32 a.m.