Skip to contents

Function to guess a default feature type. Also see activeFeatType() in methods-instructions.R for a way to manually assign this default

Usage

set_default_feat_type(gobject, feat_type = NULL, spat_unit)

Arguments

gobject

giotto object

feat_type

feature type (e.g. "rna", "dna", "protein")

spat_unit

spatial unit (e.g. "cell")

Value

character

Examples

g <- createGiottoObject()
#> python already initialized in this session
#>  active environment : 'giotto_env'
#>  python version : 3.10
#> checking default envname 'giotto_env'
#> a system default python environment was found
#> Using python path:
#>  "/usr/share/miniconda/envs/giotto_env/bin/python"

set_default_feat_type(gobject = g, spat_unit = "cell", feat_type = "rna")
#> [1] "rna"