Skip to contents

Prints the available spatial networks that are attached to the Giotto object

Usage

showGiottoSpatNetworks(gobject, nrows = 4)

Arguments

gobject

a giotto object

nrows

number of rows to print

Value

prints names and small subset of available spatial network info

Examples

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 : '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"

showGiottoSpatNetworks(g)
#> └──Spatial unit "cell"
#>    ├──S4 spatialNetworkObj "Delaunay_network"   (1770 rows)
#>    │                      from                 to sdimx_begin sdimy_begin sdimx_end
#>    │                    <char>             <char>       <num>       <num>     <num>
#>    │     1: AAAGGGATGTAGCAAG-1 TCAAACAACCGCGTCG-1        5477       -4125      5340
#>    │     2: AAAGGGATGTAGCAAG-1 ACGATCATACATAGAG-1        5477       -4125      5546
#>    │     3: AAAGGGATGTAGCAAG-1 TATGCTCCCTACTTAC-1        5477       -4125      5408
#>    │     4: AAAGGGATGTAGCAAG-1 TTGTTCAGTGTGCTAC-1        5477       -4125      5615
#>    │        sdimy_end distance      weight
#>    │            <num>    <num>       <num>
#>    │     1:     -4125 137.0000 0.007299270
#>    │     2:     -4244 137.5573 0.007269700
#>    │     3:     -4244 137.5573 0.007269700
#>    │     4:     -4125 138.0000 0.007246377
#>
#>    └──S4 spatialNetworkObj "spatial_network"   (3288 rows)
#>                           from                 to sdimx_begin sdimy_begin sdimx_end
#>                         <char>             <char>       <int>       <int>     <int>
#>          1: AAAGGGATGTAGCAAG-1 TCAAACAACCGCGTCG-1        5477       -4125      5340
#>          2: AAAGGGATGTAGCAAG-1 ACGATCATACATAGAG-1        5477       -4125      5546
#>          3: AAAGGGATGTAGCAAG-1 TATGCTCCCTACTTAC-1        5477       -4125      5408
#>          4: AAAGGGATGTAGCAAG-1 TTGTTCAGTGTGCTAC-1        5477       -4125      5615
#>             sdimy_end distance      weight
#>                 <int>    <num>       <num>
#>          1:     -4125 137.0000 0.007246377
#>          2:     -4244 137.5573 0.007217233
#>          3:     -4244 137.5573 0.007217233
#>          4:     -4125 138.0000 0.007194245
#>