run UMAP
runGiottoHarmony(
gobject,
spat_unit = NULL,
feat_type = NULL,
vars_use = "list_ID",
reduction = "cells",
dim_reduction_to_use = "pca",
dim_reduction_name = NULL,
dimensions_to_use = 1:10,
name = NULL,
set_seed = TRUE,
seed_number = 1234,
toplevel_params = deprecated(),
toplevel = 1L,
return_gobject = TRUE,
verbose = NULL,
...
)
giotto object
spatial unit
feature type
character vector. Which variable(s) in metadata for harmony to remove
reduction on cells or features
use another dimension reduction set as input
name of dimension reduction set to use
number of dimensions to use as input
arbitrary name for Harmony run
use of seed
seed number to use
deprecated
relative stackframe where call was made from
boolean: return giotto object (default = TRUE)
be verbose
additional HarmonyMatrix
parameters
giotto object with updated Harmony dimension reduction
This is a simple wrapper for the HarmonyMatrix function in the Harmony package doi:10.1038/s41592-019-0619-0 .
g <- GiottoData::loadGiottoMini("visium")
#> 1. read Giotto object
#> 2. read Giotto feature information
#> 3. read Giotto spatial information
#> 3.1 read Giotto spatial shape information
#> 3.2 read Giotto spatial centroid information
#> 3.3 read Giotto spatial overlap information
#> 4. read Giotto image information
#> python already initialized in this session
#> active environment : '/usr/bin/python3'
#> python version : 3.10
#> checking default envname 'giotto_env'
#> a system default python environment was found
#> Using python path:
#> "/usr/bin/python3"
runGiottoHarmony(g, vars_use = "leiden_clus")
#> Error: package 'harmony' is not yet installed
#>
#> To install:
#> install.packages(c("harmony"))