
CellGraph Methods
CellGraph-methods.Rd
Methods for CellGraph
objects for generics defined in other
packages
Usage
# S4 method for class 'CellGraph'
show(object)
# S3 method for class 'CellGraph'
subset(x, nodes, ...)
Examples
library(pixelatorR)
se <- ReadPNA_Seurat(minimal_pna_pxl_file(), verbose = FALSE)
se <- LoadCellGraphs(se, cells = colnames(se)[1], verbose = FALSE)
cg <- CellGraphs(se)[[1]]
# Show method
cg
#> A CellGraph object containing a bipartite graph with 43543 nodes and 97014 edges
#> Number of markers: 149
# Subset
cg_small <- subset(cg, nodes = rownames(cg@counts)[1:100])
cg_small
#> A CellGraph object containing a bipartite graph with 100 nodes and 53 edges
#> Number of markers: 149