Get the object id of the most recent RunAPOTC run on a seurat object
Source:R/ApotcIndexing.R
getLastApotcDataId.Rd
A convenience function to get the object id of the most recent valid RunAPOTC run, to be used by APOTCPlot and AdjustAPOTC
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;_;_"
#> [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;_;_"
#> [1] "umap;CTgene;_;_"