Skip to contents

Create an annotation project

Usage

at_project(image, layers = list(), ..., call = rlang::caller_env())

Arguments

image

An annot_image the annotations refer to.

layers

An annot_layer, a list of them, or an empty list (default).

...

Additional named project metadata (e.g. name, description).

call

The calling environment, for error reporting.

Value

An annot_project bundling the image, layers, metadata, and provenance (creation time, annotatR version, R version, author, and an edit log).

Examples

# An annot_image comes from at_read_image() or at_example_image():
# proj <- at_project(at_example_image("tissue"),
#                    at_layer("tissue", labels = "tissue"))