From 9709637ef8502ebec3bf6054fec2d8d024ad5883 Mon Sep 17 00:00:00 2001 From: George Chen <72078254+jiajic@users.noreply.github.com> Date: Wed, 22 May 2024 00:49:29 -0400 Subject: [PATCH] fix: add module options to zzz.R --- DESCRIPTION | 6 +++--- NEWS.md | 4 ++-- R/zzz.R | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 75c036e60..6f9e00cbb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: Giotto Title: Spatial Single-Cell Transcriptomics Toolbox -Version: 4.0.7 +Version: 4.0.8 Authors@R: c( person("Ruben", "Dries", email = "rubendries@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7650-7754")), @@ -41,8 +41,8 @@ Imports: dbscan (>= 1.1-3), ggplot2 (>= 3.1.1), ggrepel, - GiottoUtils (>= 0.1.7), - GiottoVisuals (>= 0.2.1), + GiottoUtils (>= 0.1.8), + GiottoVisuals (>= 0.2.2), igraph (>= 1.2.4.1), jsonlite, limma, diff --git a/NEWS.md b/NEWS.md index bff60bc5c..44f4f4e10 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,5 @@ -# Giotto 4.0.7 (2024/05/21) +# Giotto 4.0.8 (2024/05/22) ## Breaking changes * `crossSectionGenePlot()` removed. Use `crossSectionFeatPlot()` instead @@ -12,7 +12,7 @@ * updated `createCrossSections()`, `insertCrossSectionSpatPlot3D()`, `crossSectionPlot()`, `crossSectionFeatPlot3D()`, `insertCrossSectionFeatPlot3D()`, `crossSectionPlot3D()`, `crossSectionFeatPlot()` ## Changes -* GiottoVisuals (>= 0.2.1) and GiottoClass (>= 0.3.1) are now required. +* GiottoVisuals (>= 0.2.2), GiottoClass (>= 0.3.1), GiottoUtils (>= 0.1.8) are now required. # Giotto 4.0.6 (2024/05/13) diff --git a/R/zzz.R b/R/zzz.R index d15b5883c..ee9961f77 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -19,4 +19,28 @@ data.table::setDTthreads(threads = cores) options("giotto.check_core" = FALSE) } + + # options # + + # GiottoVisuals # + # ------------- # + # colors continuous + init_option("giotto.color_cd_pal", c("blue", "white", "red")) + init_option("giotto.color_cs_pal", "viridis") + init_option("giotto.color_c_rev", FALSE) + + # colors discrete + init_option("giotto.color_d_pal", "distinct") + init_option("giotto.color_d_rev", FALSE) + init_option("giotto.color_d_strategy", "interpolate") + + # image resampling + init_option("giotto.plot_img_max_sample", 5e5) + init_option("giotto.plot_img_max_crop", 1e8) + init_option("giotto.plot_img_max_resample_scale", 100) + + # GiottoUtils # + # ----------- # + init_option("giotto.verbose", TRUE) + }