UpdateKey: Update a Seurat key

View source: R/zzz.R

UpdateKeyR Documentation

Update a Seurat key

Description

Attempts to validate a string to use as a Seurat key. Valid keys must match the regular expression ^[[:alnum:]]+_$; if key fails this regular expression, an attempt to modify it to said key will be made by removing all non-alphanumeric characters, collapsing the resulting vector, and appending “_”. If this stil fails, a random string of lowercase characters will be generated, followed by “_”, to be used as the key

Usage

UpdateKey(key)

Arguments

key

A key to validate and update

Value

key, updated if invalid

See Also

Key RandomName

Examples


SeuratDisk:::UpdateKey("RNA_")
SeuratDisk:::UpdateKey("potato")
SeuratDisk:::UpdateKey("*@)")



mojaveazure/seurat-disk documentation built on Nov. 5, 2023, 9:40 a.m.