Skip to contents

The `ShapeFrame` class

Usage

ShapeFrame(data = data.frame(), meta = Zattrs(), metadata = list(), ...)

# S4 method for class 'ShapeFrame'
dim(x)

# S4 method for class 'ShapeFrame'
length(x)

# S4 method for class 'ShapeFrame'
names(x)

# S4 method for class 'ShapeFrame'
x$name

# S4 method for class 'ShapeFrame,missing,ANY,ANY'
x[i, j, ..., drop = TRUE]

# S4 method for class 'ShapeFrame,ANY,missing,ANY'
x[i, j, ..., drop = TRUE]

# S4 method for class 'ShapeFrame,missing,missing,ANY'
x[i, j, ..., drop = TRUE]

# S4 method for class 'ShapeFrame,numeric,numeric,ANY'
x[i, j, ..., drop = TRUE]

Arguments

data

arrow-derived table for on-disk, data.frame for in-memory representation.

meta

Zattrs

metadata

optional list of arbitrary content describing the overall object.

...

optional arguments passed to and from other methods.

x

ShapeFrame

name

character string for extraction (see ?base::`$`).

Value

ShapeFrame

Examples

tf <- tempfile()
dir.create(tf)
base <- unzip_merfish_demo(tf)
#> returning path to cached zip
y <- file.path(base, "shapes", "cells")
(s <- readShape(y))
#> class: ShapeFrame
#> count: 2389 
#> data(3): geometry radius cell_id
plot(sf::st_as_sf(data(s)), cex=0.2)


y <- file.path(base, "shapes", "anatomical")
(s <- readShape(y))
#> class: ShapeFrame
#> count: 6 
#> data(1): geometry
plot(sf::st_as_sf(data(s)), cex=0.2)