-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2025-09-15_一切皆结核.qmd
More file actions
148 lines (101 loc) · 4.12 KB
/
2025-09-15_一切皆结核.qmd
File metadata and controls
148 lines (101 loc) · 4.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
---
title: 一切皆结核
date: 2025-09-15
toc-depth: 4
toc-expand: true
lang: en
---
## 1. 一个小短文
看到一个科学小短文[@Robert2025],题目是:
> Everything Is Tuberculosis: The History and Persistence of Our Deadliest Infection
> 一切皆结核:人类最致命传染病的历史与顽疾
里面有一句概括的结论,笔者眼前一亮,所以分享:
<center>
> <mark>Tuberculosis has killed about one in seven people who have ever lived.</mark>
> <mark>结核病已夺走了大约每七名曾生活在地球上的人中一人的生命。</mark>
</center>
这个小短文主要是提及一本书*Everything is Tuberculosis*/《一切皆结核》。
写这个推文时,也留意到这本书亦被柳叶刀系列杂志[@Burki2025]提及。
## 2.《一切皆结核》
<center>
{width="50%"}
</center>
这本书面向普通读者。
## 3. John Green
<center>
{width="50%"}
</center>
## 4. 结核分枝杆菌感染(*Mtb*,结核的主要病原菌)的地球
### 4.1 下载地球
1. 从https://bioicons.com/?query=earth通过点击复制“earth”矢量图。
2. 在Adobe Illustrator中新建A4文档。
3. 粘贴该brain到A4文档。
4. 通过画板工具调整空白区域。
5. 导出为png图片(150 ppi、消除锯齿:无、背景色:透明)。
<center>
{width="50%"}
</center>
### 4.2 下载结核分枝杆菌
1. 从https://bioart.niaid.nih.gov/discover?q=tuberculosis&sort=relevance通过下载结核分枝杆菌矢量图素材。
2. 用Adobe Illustrator打开。
3. 去掉多余的元素,只留下结核分枝杆菌的矢量图,并调整分枝杆菌的填充色为红色。
4. 通过画板工具调整空白区域。
5. 导出为png图片(150 ppi、消除锯齿:无、背景色:透明)。
<center>
{width="50%"}
</center>
### 4.3 结核分枝杆菌感染的地球(just for fun)
1. 加载包
```{r}
#| message: false
#| warning: false
library(tidyverse) # for ggplot2
library(tidyplots) # for plotting
library(terra) # for putting earch and mycobacterium tuberculosis on the plot
library(grid) # for putting earch and mycobacterium tuberculosis on the plot
```
2. 生成一个数据,目的是为了产生一个空plot
```{r}
df <- as_tibble(
data.frame(x = 1:100, y = 1:100)
)
```
3. 读取地球
```{r}
#| message: false
#| warning: false
earch <- terra::rast("images/earth.png") # read earth
earth <- terra::flip(earch, direction = "vertical") # flip
earth |> dim() # check dimensions
earth <- terra::as.array(earth)/255 # convert to array and normalize to [0, 1], the original values are 0-255 (8 bit image)
earth <- grid::rasterGrob(earth) # convert to raster grob
```
4. 读取结核分枝杆菌
```{r}
#| message: false
#| warning: false
mtb <- terra::rast("images/Tuberculosis0001-grey.png") # read mtb
mtb <- terra::flip(mtb, direction = "vertical") # flip
mtb |> dim() # check dimensions
mtb <- terra::as.array(mtb)/255 # convert to array and normalize to [0, 1], the original values are 0-255 (8 bit image)
mtb <- grid::rasterGrob(mtb) # convert to raster grob
```
5. 在这个空plot上绘制地球和结核分枝杆菌
```{r}
df |>
tidyplot(x = x, y = y) |>
add(ggplot2::annotation_custom(
earth, xmin = 2, xmax = 98, ymin = 2, ymax = 98
)) |>
add(ggplot2::annotation_custom(
mtb, xmin = 10, xmax = 90, ymin = 10, ymax = 90
)) |>
add_data_points(alpha = 0) |> # do not show data points
add(ggplot2::labs(title = "The earth infected by" ~ italic("Mtb"))) |>
adjust_title(fontsize = 12) |>
adjust_size(width = 10, height = 10, unit = "cm")
```
*Mtb*是胞内菌[@RankineWilson2021],即其可生活在细胞内。
*Mtb*感染地球这幅图即暗含结核病依然很严峻,又暗含*Mtb*感染细胞(想象地球是个细胞)。
[给我买杯茶🍵](给我买杯茶.qmd)
## References