Skip to content

Commit eeb7d3c

Browse files
committed
avoid showtext dependency
ggplot falls back to the default font if Noto Sans is unavailable. showtext started causing a cryptic segfault
1 parent a996935 commit eeb7d3c

3 files changed

Lines changed: 11 additions & 25 deletions

File tree

Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM condaforge/miniforge3:latest
22
LABEL io.github.snakemake.containerized="true"
3-
LABEL io.github.snakemake.conda_env_hash="966286962ebc1e35e9809cc85e2904bfefb462e6a14ee09730b81ab69eb4d441"
3+
LABEL io.github.snakemake.conda_env_hash="fb2a04b98efa75d8b830a16722a8717eb91a3c66659e3c78b90b0cee3a50db69"
44

55
# Step 2: Retrieve conda environments
66

@@ -117,12 +117,12 @@ COPY workflow/envs/quarto_render.yaml /conda-envs/96f3c1cec4b3ce5d72f708992272e9
117117

118118
# Conda environment:
119119
# source: workflow/envs/renv.yaml
120-
# prefix: /conda-envs/8ad6cdcf265d30289788da99d5bf9fff
120+
# prefix: /conda-envs/fe892aca096e6b2883923c8755f9ac77
121121
# channels:
122122
# - conda-forge
123123
# - bioconda
124124
# dependencies:
125-
# - r-base=4.3.2
125+
# - r-base=4.3.3
126126
# - r-tidyverse==2.0.0
127127
# - r-ggrepel==0.9.3
128128
# - r-ggpubr==0.6.0
@@ -133,10 +133,9 @@ COPY workflow/envs/quarto_render.yaml /conda-envs/96f3c1cec4b3ce5d72f708992272e9
133133
# - r-data.table==1.14.8
134134
# - r-future.apply==1.11.0
135135
# - r-scales==1.3.0
136-
# - r-showtext==0.9_6
137136
# - r-logger==0.2.2
138-
RUN mkdir -p /conda-envs/8ad6cdcf265d30289788da99d5bf9fff
139-
COPY workflow/envs/renv.yaml /conda-envs/8ad6cdcf265d30289788da99d5bf9fff/environment.yaml
137+
RUN mkdir -p /conda-envs/fe892aca096e6b2883923c8755f9ac77
138+
COPY workflow/envs/renv.yaml /conda-envs/fe892aca096e6b2883923c8755f9ac77/environment.yaml
140139

141140
# Conda environment:
142141
# source: workflow/envs/snpeff.yaml
@@ -185,7 +184,7 @@ RUN conda env create --prefix /conda-envs/9c24a867826615972cc288081976e7fc --fil
185184
conda env create --prefix /conda-envs/04a3347f94ddf7e21c34bc49e5246076 --file /conda-envs/04a3347f94ddf7e21c34bc49e5246076/environment.yaml && \
186185
conda env create --prefix /conda-envs/fb978640cd765c8a63bbcdc01f3a206b --file /conda-envs/fb978640cd765c8a63bbcdc01f3a206b/environment.yaml && \
187186
conda env create --prefix /conda-envs/96f3c1cec4b3ce5d72f708992272e9c1 --file /conda-envs/96f3c1cec4b3ce5d72f708992272e9c1/environment.yaml && \
188-
conda env create --prefix /conda-envs/8ad6cdcf265d30289788da99d5bf9fff --file /conda-envs/8ad6cdcf265d30289788da99d5bf9fff/environment.yaml && \
187+
conda env create --prefix /conda-envs/fe892aca096e6b2883923c8755f9ac77 --file /conda-envs/fe892aca096e6b2883923c8755f9ac77/environment.yaml && \
189188
conda env create --prefix /conda-envs/0adafb79cb1bec58ef4c77bf4cca4f95 --file /conda-envs/0adafb79cb1bec58ef4c77bf4cca4f95/environment.yaml && \
190189
conda env create --prefix /conda-envs/1f283441022c3c9d97669994a3c5e8bb --file /conda-envs/1f283441022c3c9d97669994a3c5e8bb/environment.yaml && \
191190
conda env create --prefix /conda-envs/81e46c677a6cc0618c93963d57d17d3f --file /conda-envs/81e46c677a6cc0618c93963d57d17d3f/environment.yaml && \

config/design_plots.R

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
1-
# Jordi Sevilla
2-
31
library(ggplot2)
4-
library(showtext)
5-
6-
# Ajustes ####
7-
showtext_auto(enable = FALSE)
8-
showtext_opts(dpi = 250)
9-
10-
# Tema
11-
font_add_google("Noto Sans", "Noto Sans")
12-
showtext_auto()
132

3+
# Theme
144
theme_set(theme_minimal())
15-
165
theme_update(
17-
text = element_text(size = 16, family = "Noto Sans"),
18-
axis.title = element_text(size = 16),
6+
text = element_text(size = 10, family = "Noto Sans"),
7+
axis.title = element_text(size = 12),
198
axis.line = element_line(
209
linewidth = 0.5,
2110
colour = "grey40",
22-
linetype = 1,
23-
arrow = arrow(length = unit(3, "mm"))
11+
linetype = 1
2412
),
2513
panel.grid = element_line(linewidth = 0.17, color = "lightgray")
2614
)

workflow/envs/renv.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ channels:
22
- conda-forge
33
- bioconda
44
dependencies:
5-
- r-base=4.3.2
5+
- r-base=4.3.3
66
- r-tidyverse==2.0.0
77
- r-ggrepel==0.9.3
88
- r-ggpubr==0.6.0
@@ -13,5 +13,4 @@ dependencies:
1313
- r-data.table==1.14.8
1414
- r-future.apply==1.11.0
1515
- r-scales==1.3.0
16-
- r-showtext==0.9_6
1716
- r-logger==0.2.2

0 commit comments

Comments
 (0)