Skip to content

Commit 83c6d4b

Browse files
committed
near-clean check
1 parent 12fdc09 commit 83c6d4b

9 files changed

Lines changed: 98 additions & 17 deletions

File tree

R/SDattrs.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#' @name SpatialDataAttrs
22
#' @title The `SpatialDataAttrs` class
33
#'
4+
#' @aliases region region<-
5+
#' @aliases regions regions<-
6+
#' @aliases instances instances<-
7+
#' @aliases region_key region_key<-
8+
#' @aliases feature_key feature_key<-
9+
#' @aliases instance_key instance_key<-
10+
#'
411
#' @param x element or list extracted from a OME-NGFF compliant .zattrs file.
512
#' @param name character string for extraction (see ?base::`$`).
613
#' @param type character string; either "array" (image/label) or "frame" (point/shape).

R/SpatialData.R

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
#' @name SpatialData
22
#' @title The `SpatialData` class
33
#'
4-
#' @description ...
4+
#' @aliases data meta layer element
5+
#' @aliases image label point shape table
6+
#' @aliases images labels points shapes tables
7+
#' @aliases image<- label<- point<- shape<- table<-
8+
#' @aliases images<- labels<- points<- shapes<- tables<-
9+
#' @aliases imageNames labelNames pointNames shapeNames tableNames
10+
#' @aliases imageNames<- labelNames<- pointNames<- shapeNames<- tableNames<-
11+
#' @aliases [[,SpatialData,character,ANY
12+
#' @aliases [[,SpatialData,numeric,ANY
13+
#'
14+
#' @description
15+
#' \code{SpatialData} provides an R interface to Python's \code{spatialdata},
16+
#' which enables the representation of diverse spatial omics datasets using
17+
#' the OME-NGFF (Next Generation File Format) standard. In R,
18+
#' \itemize{
19+
#' \item images and labels are \code{ZarrArray}s (\code{Rarr} package).
20+
#' \item points and shapes are managed using \code{duckspatial} tables.
21+
#' \item tables are \code{SingleCellExperiment}s (read with \code{anndataR}).}
522
#'
623
#' @param images list of \code{\link{SpatialDataImage}}s
724
#' @param labels list of \code{\link{SpatialDataLabel}}s

R/methods.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#' @importFrom utils .DollarNames
21
#' @export
2+
#' @importFrom utils .DollarNames
33
.DollarNames.SpatialData <- \(x, pattern="") grep(pattern, .LAYERS, value=TRUE)
44

5-
#' @rdname SpatialData
65
#' @exportMethod $
6+
#' @rdname SpatialData
77
setMethod("$", "SpatialData", \(x, name) attr(x, name))
88

9+
#' @export
910
#' @rdname SpatialData
1011
#' @importFrom methods callNextMethod
11-
#' @export
1212
setMethod("[[", c("SpatialData", "numeric"), \(x, i, ...) {
1313
i <- .LAYERS[i]
1414
callNextMethod(x, i)

R/sdArray.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#' @name SpatialDataArray
22
#' @title Methods for `SpatialDataArray`s
3+
#' @aliases data_type
34
#'
45
#' @param x \code{SpatialDataImage} or \code{SpatialDataLabel}.
56
#' @param k scalar index specifying which scale to extract.

R/sdFrame.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#' @name SpatialDataFrame
22
#' @title The `SpatialDataFrame` class
3-
#' @aliases SpatialDataPoint SpatialDataShape
3+
#' @aliases SpatialDataPoint SpatialDataShape geom_type
44
#'
5-
#' @description
6-
#' The \code{SpatialDataPoint} and \code{SpatialDataShape} classes store
7-
#' \code{SpatialData} elements from its \code{"points"} and
8-
#' \code{"shapes"} layers, respectively. These are represented
9-
#' as \code{duckspatial_df} (\code{data} slot) associated with
10-
#' .zattrs stored as \code{\link{SpatialDataAttrs}} (\code{meta} slot);
5+
#' @description
6+
#' The \code{SpatialDataPoint} and \code{-Shape} classes represent
7+
#' elements from a \code{SpatialData}'s \code{points/} and \code{shapes/}
8+
#' layers, respectively. In both cases, these are represented as a
9+
#' \code{duckspatial_df} (\code{data} slot), and associated with .zattrs
10+
#' represented as \code{\link{SpatialDataAttrs}} (\code{meta} slot);
1111
#' a list of \code{metadata} stores other arbitrary info.
1212
#'
1313
#' Currently defined methods (here, \code{x} is an \code{SpatialDataFrame}):

man/SpatialData.Rd

Lines changed: 43 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/SpatialDataArray.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/SpatialDataAttrs.Rd

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/SpatialDataFrame.Rd

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)