Post

Giotto: comprehensive toolbox for spatial data analysis

Giotto ๐Ÿ“„ Dries, Ruben, et al. โ€œGiotto: a toolbox for integrative analysis and visualization of spatial expression data.โ€ Genome biology 22 (2021): 1-31.

๐Ÿ”— Homepage: https://giottosuite.readthedocs.io/en/master/ {.prompt-tip}

Installation

Requirements

  • R (>= 3.5.1)
  • Python (>= 3.0)
  • Windows, MacOS or Linux specific installation tools

R ์ด๋ž‘ Python ๋‘˜ ๋‹ค ํ•„์š”ํ•˜๋‹ˆ ๋ช…์‹ฌํ•˜์ž

step01. Install Giotto R packages

prerequisites

  • a major dependency terra needs GDAL (>= 2.2.3), GEOS (>= 3.4.0), PROJ (>= 4.9.3), sqlite3 on linux

์„ค์น˜ ๋ผ์žˆ๋Š”์ง€ ๋จผ์ € ํ™•์ธ

1
2
3
4
gdal-config --version #GDAL
geos-config --version #GEOS
proj --version #PROJ
sqlite3 --version #sqlite3

Install Terra

๐Ÿ‘‡GDAL/GEOS/PROJ/SQLite3 ์„ค์น˜๋Š” ์—ฌ๊ธฐ ์ฐธ์กฐ

๐Ÿ”—GDAL, GEOS, PROJ installation from source code without sudo permission

1
install.packages('terra', repos='https://rspatial.r-universe.dev')

Install Giotto

1
2
# install.packages("pak")
pak::pak("drieslab/Giotto")

Install magick

๐ŸšจERROR: dependency โ€˜magickโ€™ is not available for package โ€˜Giottoโ€™

1
2
3
4
5
6
7
8
9
10
wget https://imagemagick.org/archive/ImageMagick.tar.gz
tar -xvzf ImageMagick.tar.gz 
cd ImageMagick-7.1.1-36
./configure --prefix=/source/ImageMagick-7.1.1-36/
make -j 10 & make install

# update ~/.bash_profile
PATH=/source/ImageMagick-7.1.1-36/bin:$PATH
LD_LIBRARY_PATH=/source/ImageMagick-7.1.1-36/lib:$LD_LIBRARY_PATH
PKG_CONFIG_PATH=/source/ImageMagick-7.1.1-36/lib/pkgconfig:$PKG_CONFIG_PATH
1
install.packages("magick")

This post is licensed under CC BY 4.0 by the author.

ยฉ Subin Cho. Some rights reserved.

Using the Chirpy theme for Jekyll.