updateApotc: Update APackOfTheClones objects to the latest format

View source: R/updateApotc.R

updateApotcR Documentation

Update APackOfTheClones objects to the latest format

Description

This generic function updates objects created by APackOfTheClones to the latest format or structure required by the package. It supports Seurat objects and ggplot objects generated by APackOfTheClones functions.

The current possible changes made by the function are:

  • when called on ggplots generated by vizAPOTC() / APOTCPlot(), layer names will be made unique.

Usage

updateApotc(x, verbose = TRUE, ...)

Arguments

x

An object to update. Supported types are Seurat objects and ggplot objects generated by APackOfTheClones.

verbose

Logical. Whether to print messages about the update process. Default is TRUE.

...

Additional arguments passed to methods. Currently unused.

Value

The updated object, or the original object if no update is required.

Examples

data("combined_pbmc")
apotc_plot <- vizAPOTC(combined_pbmc)
apotc_plot <- updateApotc(apotc_plot, verbose = TRUE)
apotc_plot


APackOfTheClones documentation built on Aug. 18, 2025, 5:36 p.m.