Learn R Programming

Seurat (version 5.4.0)

Format10X_GeoJson_CellID: Format 10X Genomics GeoJson cell IDs

Description

Format 10X Genomics GeoJson cell IDs

Usage

Format10X_GeoJson_CellID(ids, prefix = "cellid_", suffix = "-1", digits = 9)

Value

Vector of formatted cell IDs

Arguments

ids

Vector of cell IDs to format

prefix

Optional prefix string

suffix

Optional suffix string

digits

Number of digits to zero-pad

A helper function to format cell IDs from the segmentation GeoJson to the same type as in the matrix.h5 The GeoJson has cell IDs as integers (eg 1). They need to be in the format cellid_000000001-1