Format 10X Genomics GeoJson cell IDs

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

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

Value

Vector of formatted cell IDs