Learn R Programming

SeuratObject (version 4.0.1)

Tool: Get and set additional tool data

Description

Use Tool to get tool data. If no additional arguments are provided, will return a vector with the names of tools in the object.

Usage

Tool(object, ...)

Tool(object, ...) <- value

# S3 method for Seurat Tool(object, slot = NULL, ...)

# S3 method for Seurat Tool(object, ...) <- value

Arguments

object

An object

...

Arguments passed to other methods

value

Information to be added to tool list

slot

Name of tool to pull

Value

If no additional arguments, returns the names of the tools in the object; otherwise returns the data placed by the tool requested

Examples

Run this code
# NOT RUN {
Tool(object = pbmc_small)

# }
# NOT RUN {
sample.tool.output <- matrix(data = rnorm(n = 16), nrow = 4)
# must be run from within a function
Tool(object = pbmc_small) <- sample.tool.output
# }

Run the code above in your browser using DataLab