KeyMixin-class {SeuratObject}R Documentation

A Mixin for Keyed objects

Description

A mixin (virtual class) for enabling keyed objects; provides consistent behavior for getting, setting, and validating keys

Usage

## S3 method for class 'character'
Key(object, ..., quiet = FALSE)

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

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

Arguments

object

An object

...

Ignored

quiet

Suppress warnings when updating characters to keys

value

A key to set

Details

Key.character: Update a character to a key

Key.KeyMixin: Get the key of a keyed object

Key<-: Set the key of a keyed object

Value

Key.character: object but as a syntactically-valid key

Key.KeyMixin: The key from object; if no key set, returns NULL

Key<-: object with the key set to value

Slots

key

A one-length character vector with the object's key; keys must be one or more alphanumeric characters followed by an underscore “_” (regex pattern “^[a-zA-Z][a-zA-Z0-9]*_$”)

See Also

.KeyPattern(), .RandomKey(), Key-validity


[Package SeuratObject version 5.1.0 Index]