getLastApotcDataId {APackOfTheClones}R Documentation

Get the object id of the most recent RunAPOTC run on a seurat object

Description

[Stable]

A convenience function to get the object id of the most recent valid RunAPOTC run, to be used by APOTCPlot and AdjustAPOTC

Usage

getLastApotcDataId(seurat_obj)

Arguments

seurat_obj

a seurat object that has had RunAPOTC ran on it before in order of the functions being called.

Value

a character of the object id of the last RunAPOTC call

Examples

# first run
pbmc <- RunAPOTC(
    seurat_obj = get(data("combined_pbmc")),
    reduction_base = "umap",
    clonecall = "strict",
    verbose = FALSE
)

getLastApotcDataId(pbmc)
#> [1] "umap;CTstrict;_;_"

# second run with a different clonecall
pbmc <- RunAPOTC(
    seurat_obj = pbmc,
    reduction_base = "umap",
    clonecall = "gene",
    verbose = FALSE
)

getLastApotcDataId(pbmc)
#> [1] "umap;CTgene;_;_"


[Package APackOfTheClones version 1.2.0 Index]