
The CellGraph class
CellGraph-class.RdThe CellGraph class is designed to hold information needed for working with PNA single-cell graphs.
Details
A CellGraph contains counts and a graph, and optionally layouts, layers,
metadata, or reductions.
Node-level variable names must be unique across the graph node table,
meta.data, and reduction embeddings, and must not overlap count or
layer features. Count and layer matrices are the exception: they may share
feature names because callers select a layer explicitly.
Slots
cellgraphA
tbl_graphobject corresponding to a cell graphnodesCharacter vector of node IDs in graph order. This is the map used to align counts, layouts, layers, metadata, and reductions. Those tables are stored in this order without copying the IDs as row names.
countsA
matrix-like object with marker counts (nodes x markers). Rows follownodes. The counts matrix can be extracted as the"counts"layer viaLayers/LayerData.layoutA named
listofdata.frameobjects with coordinates for cell layouts. Rows follownodes. Anamecolumn or explicit row names are accepted on input and used only to reorder; MPX bipartite layouts may omit-A/-Bsuffixes. Stored layouts keep coordinate columns (typicallyx,y,z). Layouts without node IDs still work if the number of rows matches the graph.layersA named
listof additional numeric node matrices (nodes x features), analogous to layers on a SeuratAssay5. A layer can be extracted viaLayers/LayerData.meta.dataA
data.frameof node-level metadata (one row per node). Rows follownodes. Columns may have mixed types.reductionsA named
listofNodeDimReducobjects