رونوشت 🔗
WEBVTT
NOTE
Transcription provided by Podhome.fm
Created: 11/13/2026 19:56:40
Duration: 1998.345
Channels: 1
1
00:00:02.879 --> 00:00:06.399
Hello, friends. We are back of episode 248
2
00:00:06.399 --> 00:00:08.400
of the Weekly Highlights podcast.
3
00:00:08.720 --> 00:00:12.480
This is the weekly ish podcast where we talk about the excellent highlights
4
00:00:12.805 --> 00:00:19.685
and other resources that have been shared in this week's issue of r weekly, which you can find at rweekly.org.
5
00:00:20.005 --> 00:00:24.244
My name is Eric Nance, and I'm delighted you joined us from wherever you are around the world.
6
00:00:24.725 --> 00:00:32.350
And, well, I have to be the bearer of some bad news in terms of this is yet another, solo episode, unfortunately.
7
00:00:32.910 --> 00:00:46.975
My awesome host, Mike Thomas, he's under a tight deadline, so he needs the extra bit of focus time. So I'm gonna do my best to prevent this episode from becoming one of those, you know, catastrophic
8
00:00:46.975 --> 00:00:47.614
ones.
9
00:00:47.934 --> 00:00:49.535
As
10
00:00:52.254 --> 00:00:57.855
always, famous last words. But before I get to the meat of the show, it could be a lot worse
11
00:00:58.230 --> 00:00:59.030
because,
12
00:00:59.510 --> 00:01:04.630
you know, there's a certain, cloud provider that's, going through it at the time of this recording.
13
00:01:05.110 --> 00:01:09.110
Maybe, somebody in the, Microsoft server rooms
14
00:01:09.270 --> 00:01:14.165
got a little too, crazy with the servers, and maybe something like this happened.
15
00:01:17.525 --> 00:01:28.619
If you don't know what I'm talking about, it is the, at least what seems to be somewhat getting stable Microsoft three six five outage that has affected a lot of people from around the world. So,
16
00:01:29.420 --> 00:01:32.380
hopefully, things are working well for you now. And again,
17
00:01:33.100 --> 00:01:41.905
shout out to any of the poor engineers at Microsoft that have had to stay up all night trying to get to the bottom of this, but, yeah, I'll just leave it at that.
18
00:01:42.305 --> 00:01:50.545
But luckily, what doesn't depend on Microsoft services is this podcast. Right? And I am delighted that our weekly itself is a community endeavor.
19
00:01:51.250 --> 00:01:54.450
Ironically, we do host our stuff on GitHub. I digress.
20
00:01:54.689 --> 00:01:59.490
But let's let's get it to the meat of the show, shall we? We have an awesome issue to talk about today,
21
00:01:59.810 --> 00:02:04.289
and this week's issue was curated by Jonathan Carroll, one of our o g,
22
00:02:04.770 --> 00:02:06.210
members of the r weekly team.
23
00:02:06.715 --> 00:02:23.300
And as I say every episode, we are always happy to have more contributors come on board. We'll say more about that at the end. But as always, yeah, tremendous help from our fellow R Weekly team members and contributors like you around the world with your poll requests and other wonderful suggestions.
24
Load full transcript
00:02:24.420 --> 00:02:27.700
And we lead off with another evolution,
25
00:02:27.700 --> 00:02:29.860
or you might call the next generation,
26
00:02:30.500 --> 00:02:32.740
of some state of the art tooling
27
00:02:32.980 --> 00:02:34.819
within data science
28
00:02:35.075 --> 00:02:36.995
for parallelization,
29
00:02:36.995 --> 00:02:38.595
high performance computing,
30
00:02:39.075 --> 00:02:40.355
and all the above.
31
00:02:40.754 --> 00:02:42.355
And what I'm referring to
32
00:02:42.754 --> 00:02:48.194
is the new framework that's hitting both the R and Python ecosystems,
33
00:02:48.830 --> 00:02:51.310
and that is called Mizu.
34
00:02:51.630 --> 00:02:56.190
And this has been authored by Charlie Gao, a very talented
35
00:02:56.430 --> 00:02:59.150
software engineer on the POSIT team.
36
00:02:59.390 --> 00:03:04.030
He's helped a lot with Shiny. He's been helping a lot with the Tidy Models team across many teams.
37
00:03:04.775 --> 00:03:07.575
But Mizu is, you might say,
38
00:03:08.055 --> 00:03:09.975
a new framework
39
00:03:10.215 --> 00:03:13.975
for helping bring the best of asynchronous
40
00:03:13.975 --> 00:03:15.655
and parallel computing
41
00:03:16.215 --> 00:03:18.215
with optimal use of memory
42
00:03:18.790 --> 00:03:21.430
to both R and Python
43
00:03:21.590 --> 00:03:23.350
with interoperability
44
00:03:23.350 --> 00:03:24.870
promise throughout.
45
00:03:25.590 --> 00:03:30.550
So we'll get to some of the highlights of this announcement post that he's drafted here,
46
00:03:30.950 --> 00:03:39.185
but, lead off with what's on the tin, so to speak. There are three components that Mizu is a part that comprises of.
47
00:03:39.504 --> 00:03:41.425
One is this core,
48
00:03:41.425 --> 00:03:42.145
if you will,
49
00:03:42.385 --> 00:03:43.665
the libmizu
50
00:03:43.665 --> 00:03:44.945
c library,
51
00:03:45.825 --> 00:03:49.260
and then you have the Mizu R package,
52
00:03:49.340 --> 00:03:52.220
which is now available on CRAN as of this recording,
53
00:03:52.780 --> 00:03:55.180
as well as the Python package
54
00:03:55.260 --> 00:03:56.460
PyMizu,
55
00:03:56.620 --> 00:04:04.185
and that is now on PyPy as well. So you can get these packages for R or Python from your usual sources.
56
00:04:04.985 --> 00:04:08.505
Why the name Mizu, you ask? That's what I was asking too.
57
00:04:08.745 --> 00:04:11.785
It is our original word from Japanese
58
00:04:11.785 --> 00:04:12.985
meaning water.
59
00:04:13.570 --> 00:04:15.490
And why is that appropriate here?
60
00:04:15.810 --> 00:04:17.490
Because of how
61
00:04:17.890 --> 00:04:23.730
this this framework is letting the data and the analytics flow
62
00:04:23.970 --> 00:04:30.365
between these different processes, and as I alluded to, perhaps even between the different languages.
63
00:04:31.245 --> 00:04:31.885
So
64
00:04:32.205 --> 00:04:37.725
what was... What are some of the big, big highlights of the Mizu sweep?
65
00:04:38.044 --> 00:04:39.565
One of which is
66
00:04:39.820 --> 00:04:40.860
minimizing
67
00:04:41.020 --> 00:04:41.980
the time
68
00:04:42.300 --> 00:04:44.860
for a round trip, if you will.
69
00:04:45.260 --> 00:04:48.860
How long it takes to launch and hand off
70
00:04:49.180 --> 00:04:50.140
processes
71
00:04:50.300 --> 00:04:53.740
that these jobs are executing in what's called a pool.
72
00:04:54.300 --> 00:04:57.345
Well, there has been a huge gain in this
73
00:04:57.585 --> 00:05:00.225
going from one hundred milliseconds
74
00:05:00.545 --> 00:05:03.665
to an average of one millisecond
75
00:05:03.745 --> 00:05:05.265
for submitting
76
00:05:05.345 --> 00:05:08.865
a job or a task, if you will, in this pool of workers
77
00:05:09.409 --> 00:05:11.570
and collecting the results.
78
00:05:12.129 --> 00:05:14.770
This is absolutely amazing.
79
00:05:15.330 --> 00:05:20.289
And while you may think, well, the previous marks on this of say a hundred
80
00:05:20.530 --> 00:05:26.225
milliseconds or so with MirrorEye and the like, that's nothing to sneeze at either,
81
00:05:26.465 --> 00:05:30.145
but when you put this at scale across different workflows,
82
00:05:30.625 --> 00:05:32.384
this will add up.
83
00:05:33.025 --> 00:05:37.824
So I alluded to earlier, a key concept is the idea of a pool,
84
00:05:38.440 --> 00:05:40.120
which is basically this
85
00:05:40.280 --> 00:05:41.160
collection
86
00:05:41.160 --> 00:05:43.080
of worker processes
87
00:05:43.400 --> 00:05:47.960
that is dividing up the different tasks within its pool.
88
00:05:48.680 --> 00:05:55.905
And this is where Mizzou takes as optimized approach as possible to get these pools created for you.
89
00:05:56.465 --> 00:05:58.225
And, again, the interoperability
90
00:05:58.225 --> 00:05:59.345
comes to play
91
00:05:59.665 --> 00:06:00.705
within
92
00:06:00.785 --> 00:06:03.505
this pool, these workers in the pool,
93
00:06:03.825 --> 00:06:09.240
they don't even have to be in the same language as the host process that's running them.
94
00:06:09.640 --> 00:06:13.240
So you might need some Python jobs in that R process,
95
00:06:13.480 --> 00:06:15.160
Mizu's got you covered.
96
00:06:15.640 --> 00:06:20.440
And it does support the more standard types of objects that can be passed back and forth,
97
00:06:21.055 --> 00:06:23.455
such as in frame data frames,
98
00:06:24.175 --> 00:06:28.335
perhaps with an Arrow back end of sorts that, you know, the Arrow
99
00:06:28.575 --> 00:06:29.295
project
100
00:06:29.615 --> 00:06:30.255
is,
101
00:06:30.575 --> 00:06:33.055
you know, very, very helpful with Parquet
102
00:06:33.419 --> 00:06:37.020
to help convert from back and forth on the Python side.
103
00:06:37.180 --> 00:06:39.420
The R side of things has a similar,
104
00:06:39.900 --> 00:06:41.180
mechanism as well.
105
00:06:42.300 --> 00:06:45.419
And the other thing that it promises is minimizing
106
00:06:45.419 --> 00:06:46.539
the use of memory,
107
00:06:47.215 --> 00:06:48.815
I. E.
Independent
108
00:06:48.815 --> 00:06:50.175
memory stacks
109
00:06:50.414 --> 00:06:51.535
that previous,
110
00:06:51.775 --> 00:06:53.135
frameworks are doing.
111
00:06:53.375 --> 00:06:55.055
Well, Mizu takes
112
00:06:55.055 --> 00:06:58.735
advantage of shared memory in the operating system
113
00:06:59.070 --> 00:07:03.790
so that these workers don't have to do a lot of copying of a lot of shared
114
00:07:03.950 --> 00:07:11.550
objects, such as shared data frames, shared other objects, and the like. Not everything is supported from the object side,
115
00:07:12.145 --> 00:07:16.865
but most of the types that you would expect, such as vectors, string,
116
00:07:17.344 --> 00:07:18.145
lists,
117
00:07:18.145 --> 00:07:19.264
dictionaries,
118
00:07:19.344 --> 00:07:20.705
date, times,
119
00:07:21.185 --> 00:07:22.384
data frames,
120
00:07:22.465 --> 00:07:24.384
and data created with arrow,
121
00:07:24.544 --> 00:07:34.910
those are working well. There might be some intricate things with list objects or maybe, you know, certain classes of objects that don't quite play nicely yet,
122
00:07:35.150 --> 00:07:37.550
but Mizu is very,
123
00:07:37.630 --> 00:07:42.755
very early, so I wouldn't be surprised if we get more support on this down the road.
124
00:07:43.555 --> 00:07:44.195
So
125
00:07:44.595 --> 00:07:50.115
the post concludes from Charlie about more of the motivation going from Mirai
126
00:07:50.115 --> 00:07:57.300
to Mizu. And before I get too deep into that, just note that this isn't quite a replacement for MirrorEye.
127
00:07:57.539 --> 00:08:00.260
MirrorEye, I think, is always gonna have a place
128
00:08:00.500 --> 00:08:05.060
for especially working with HPC and cloud based worker environments.
129
00:08:05.825 --> 00:08:09.665
Mirai in the R side of things is top notch in that,
130
00:08:09.985 --> 00:08:13.265
and I don't see that changing anytime soon.
131
00:08:13.905 --> 00:08:14.945
More... You know,
132
00:08:15.345 --> 00:08:20.305
Mizu is actually an extension of another effort that we covered in the show.
133
00:08:21.100 --> 00:08:21.900
Mori,
134
00:08:22.060 --> 00:08:26.220
but from the r side of things introduced this idea of shared memory
135
00:08:26.380 --> 00:08:32.220
for, you know, worker jobs or workers and pools that Mirai was supporting.
136
00:08:32.700 --> 00:08:33.580
Now
137
00:08:33.834 --> 00:08:35.435
with Mizu
138
00:08:35.915 --> 00:08:36.635
that
139
00:08:37.035 --> 00:08:42.795
it thought about, well, if these objects that Mori was piloting
140
00:08:42.955 --> 00:08:44.714
can be in shared memory,
141
00:08:45.274 --> 00:08:47.595
what about the actual instructions
142
00:08:47.595 --> 00:08:50.020
to run these jobs? Yes,
143
00:08:50.180 --> 00:08:52.980
it is, and that's where this comes from.
144
00:08:53.620 --> 00:08:54.260
So
145
00:08:54.740 --> 00:08:55.540
now
146
00:08:55.540 --> 00:08:59.220
it's great to see that both R and Python users
147
00:08:59.380 --> 00:09:00.660
can benefit from this.
148
00:09:01.395 --> 00:09:02.755
Last but not least,
149
00:09:03.635 --> 00:09:04.355
Charlie...
150
00:09:04.435 --> 00:09:06.515
Achary is very transparent
151
00:09:06.755 --> 00:09:10.435
about this has been written with the help of AI.
152
00:09:10.915 --> 00:09:15.795
Well, I don't know if we need to keep calling this out too much anymore, although I appreciate his transparency,
153
00:09:16.750 --> 00:09:17.550
because
154
00:09:18.029 --> 00:09:23.070
the way he specifies this, I think, is actually quite good, and I'm glad he mentioned it,
155
00:09:23.870 --> 00:09:24.430
because
156
00:09:24.750 --> 00:09:26.589
he did a lot of research
157
00:09:26.750 --> 00:09:30.509
in this. What kind of design principles were gonna be in play here?
158
00:09:31.615 --> 00:09:33.135
And it is
159
00:09:33.375 --> 00:09:37.615
very helpful that AI can help him get to some implementation
160
00:09:38.095 --> 00:09:39.454
of these tasks,
161
00:09:40.095 --> 00:09:44.175
but it's not the only thing. It still took careful attention,
162
00:09:44.720 --> 00:09:46.080
careful planning,
163
00:09:46.720 --> 00:09:47.920
and deliberate
164
00:09:47.920 --> 00:09:48.800
execution
165
00:09:48.800 --> 00:09:50.240
of the engineering.
166
00:09:50.720 --> 00:09:54.240
So I think it is a great use case of it and
167
00:09:54.400 --> 00:09:55.920
I trust Charlie
168
00:09:56.080 --> 00:09:58.640
and the way he maintains his suite of software.
169
00:09:59.265 --> 00:10:05.985
I think we're in good hands and I can't wait to try Mizzou in my next projects that deal with HPC
170
00:10:06.145 --> 00:10:08.065
and other worker processes,
171
00:10:08.305 --> 00:10:09.985
not even so much of HPC.
172
00:10:10.225 --> 00:10:12.385
This can be within the same server.
173
00:10:12.930 --> 00:10:17.250
That does lead me to call out some of the future work that's ongoing.
174
00:10:17.650 --> 00:10:20.290
It will be with tighter integration
175
00:10:20.290 --> 00:10:23.090
with frameworks like the Tidy Models project
176
00:10:23.330 --> 00:10:27.090
as well as Shiny itself where I think this is gonna be
177
00:10:27.745 --> 00:10:31.665
extremely valuable to eke out that extra bit of performance
178
00:10:31.745 --> 00:10:32.785
wherever you can.
179
00:10:48.209 --> 00:10:53.170
And in our next highlight, we're gonna stay with some of the recent happenings
180
00:10:53.170 --> 00:10:56.610
from the world of of the company Posit and talk about,
181
00:10:57.125 --> 00:10:58.565
speaking of AI,
182
00:10:58.725 --> 00:11:03.285
we're gonna talk about some of the newer capabilities that have landed into Positron
183
00:11:03.445 --> 00:11:07.445
that will make the adoption of leveraging your AI agents
184
00:11:07.445 --> 00:11:09.205
in your respective
185
00:11:09.285 --> 00:11:10.165
organization
186
00:11:10.165 --> 00:11:11.524
or your own setup
187
00:11:11.730 --> 00:11:13.810
possibly a lot easier.
188
00:11:14.610 -->
00:11:18.370
As you have heard in previous episodes as well as the general,
189
00:11:18.610 --> 00:11:20.610
you know, talk within this year,
190
00:11:21.570 --> 00:11:24.290
POSIT introduced POSIT Assistant
191
00:11:24.290 --> 00:11:25.890
as their now current
192
00:11:26.125 --> 00:11:29.645
state of the art AI assistant harness
193
00:11:29.725 --> 00:11:34.685
that you can implement inside both Positron and RStudio,
194
00:11:35.085 --> 00:11:37.725
and that has gotten a lot of positive traction.
195
00:11:38.490 --> 00:11:48.650
I will be transparent. I have used posit assistant in some recent projects helping out with the r pharma conference, and it actually was an elegant experience.
196
00:11:49.050 --> 00:11:51.770
Everything is integrated together, if you will.
197
00:11:52.090 --> 00:11:53.530
Posit assistant
198
00:11:53.735 --> 00:11:57.415
plays nicely with, of course, positron and the like.
199
00:11:57.815 --> 00:11:59.255
Now with that said,
200
00:12:00.135 --> 00:12:04.375
it is not always easy for a given organization
201
00:12:04.375 --> 00:12:06.775
to get into POSIT Assistant
202
00:12:07.015 --> 00:12:09.255
because it may not always support
203
00:12:09.790 --> 00:12:11.230
some of the local
204
00:12:11.870 --> 00:12:12.670
in house,
205
00:12:12.990 --> 00:12:15.630
so to speak, AI modeling,
206
00:12:15.630 --> 00:12:17.310
you know, implementations.
207
00:12:18.190 --> 00:12:22.270
Well, and that is where in this blog post, Jonathan McPherson,
208
00:12:22.350 --> 00:12:27.635
has been part of the long history of posit and before that RStudio,
209
00:12:27.715 --> 00:12:30.515
with the RStudio IDE and much, much more,
210
00:12:30.835 --> 00:12:32.115
he introduces
211
00:12:32.195 --> 00:12:33.795
the positron
212
00:12:34.035 --> 00:12:35.075
MCP.
213
00:12:35.795 --> 00:12:39.700
Now, you know I can't resist this. When I hear about the MCP,
214
00:12:39.700 --> 00:12:43.300
I gotta tell you about the real MCP.
215
00:12:43.460 --> 00:12:44.660
End of line.
216
00:12:45.140 --> 00:12:48.740
This MCP, of course, stands for model contest protocol,
217
00:12:49.140 --> 00:12:56.754
and that is a huge component in a lot of tooling that's being put out there with giving your LLM
218
00:12:56.754 --> 00:12:57.555
harness
219
00:12:57.875 --> 00:13:01.154
the ability to integrate with other software.
220
00:13:01.795 --> 00:13:11.340
In fact, this, server I'm talking to you on right now has a few MCPs running already to help with things like NICS package,
221
00:13:11.580 --> 00:13:12.540
implementation
222
00:13:12.620 --> 00:13:14.060
or documentation
223
00:13:14.300 --> 00:13:17.660
or running NICS commands to update my configuration.
224
00:13:18.060 --> 00:13:19.180
That's just one.
225
00:13:19.420 --> 00:13:20.780
There's many, many others.
226
00:13:21.555 --> 00:13:23.235
Well, what the positron
227
00:13:23.235 --> 00:13:24.195
MCP
228
00:13:24.595 --> 00:13:27.315
allows users of positron
229
00:13:27.315
--> 00:13:30.595
to do is to be able to hook up
230
00:13:30.915 --> 00:13:33.795
their agent harness of choice,
231
00:13:34.275 --> 00:13:36.595
one of which could be something like ClawCode,
232
00:13:37.410 --> 00:13:39.330
you know, that can
233
00:13:40.450 --> 00:13:47.010
work well. And you may be wondering, well, wait a minute Eric, I can just install the Clogcode extension in positron
234
00:13:47.010 --> 00:13:49.730
and get on my way. You absolutely can,
235
00:13:50.255 --> 00:13:51.855
and it can work pretty well.
236
00:13:52.575 --> 00:13:58.815
But what it doesn't do is it doesn't have the actual tight integration
237
00:13:59.214 --> 00:14:01.695
that you get with posit assistant
238
00:14:01.695 --> 00:14:04.815
when you actually run R or Python code
239
00:14:05.079 --> 00:14:08.200
and see things happening in your existing
240
00:14:08.200 --> 00:14:09.000
session.
241
00:14:09.560 --> 00:14:12.760
This is, again, a very helpful thing to have
242
00:14:13.160 --> 00:14:17.880
when you're in the middle of maybe a bigger task and you're getting some debugging.
243
00:14:18.565 --> 00:14:23.685
Instead of shelling out to an ancillary R process on your same machine,
244
00:14:24.084 --> 00:14:26.165
you can see this all happen
245
00:14:26.404 --> 00:14:29.524
in your IDE of choice, such as positron.
246
00:14:30.005 --> 00:14:30.324
So,
247
00:14:31.070 --> 00:14:35.870
what does this mean for you as a positron user once you enable this toggle
248
00:14:36.030 --> 00:14:38.670
in recent builds of positron?
249
00:14:39.390 --> 00:14:40.270
That means
250
00:14:40.510 --> 00:14:43.710
you can see, it can see the context
251
00:14:43.870 --> 00:14:45.150
of your R workspace,
252
00:14:45.665 --> 00:14:49.265
that data frame you loaded, those functions you have in memory,
253
00:14:49.505 --> 00:14:50.785
and much more.
254
00:14:51.185 --> 00:14:57.745
It can be able to query that if you have a data specific query, as well as your visualizations.
255
00:14:58.065 --> 00:15:03.800
It can help you iterate on those, and instead of just, you know, making PNGs
256
00:15:03.800 --> 00:15:09.639
in a temp directory and then having it imported back in and then you reviewing it manually,
257
00:15:09.959 --> 00:15:12.279
you can see it all within your interface.
258
00:15:12.680 --> 00:15:17.015
Of course, as I said, within your R console or Python console,
259
00:15:17.335 --> 00:15:19.415
with the positronmcp,
260
00:15:19.654 --> 00:15:22.214
that code that it generates can run-in
261
00:15:22.214 --> 00:15:23.735
that console pane.
262
00:15:23.975 --> 00:15:33.750
Again, I really, really like that. That way, if I want to run the commands that it did man... That it built as part of its debugging or its implementation,
263
00:15:34.310 --> 00:15:37.030
I myself can get that in the command history
264
00:15:37.030 --> 00:15:39.430
instead of copy pasting it and whatnot.
265
00:15:40.390 --> 00:15:46.765
So that's just a bit of the features. There's more that the blog post dives into, the Jonathan authors here.
266
00:15:47.085 --> 00:15:47.645
But,
267
00:15:47.965 --> 00:15:53.085
what does it work with right now? It has been tested with the aforementioned Clog code,
268
00:15:53.660 --> 00:15:55.180
as well as Codex,
269
00:15:55.660 --> 00:15:56.700
OpenCode,
270
00:15:56.700 --> 00:15:58.220
oh, that got my attention,
271
00:15:58.540 --> 00:15:59.340
Hero,
272
00:15:59.420 --> 00:16:00.300
Gemini,
273
00:16:00.460 --> 00:16:04.700
then the Copilot CLI, and they do say there's more in the documentation.
274
00:16:05.834 --> 00:16:09.514
So to get this up and running, as I said, there is a,
275
00:16:10.235 --> 00:16:11.035
command
276
00:16:11.274 --> 00:16:14.315
that you can run-in the command palette called
277
00:16:14.555 --> 00:16:19.355
positron m c p add to coding agent, and that'll get you up and running.
278
00:16:20.060 --> 00:16:22.140
And there are other configurations
279
00:16:22.140 --> 00:16:23.100
you can make.
280
00:16:23.740 --> 00:16:32.060
And once you have it configured, you don't have to, like, do a separate process to launch this every time. It should be taken care of automatically,
281
00:16:32.060 --> 00:16:33.580
and there is a little status,
282
00:16:34.060 --> 00:16:34.779
message
283
00:16:35.095 --> 00:16:37.895
in your bottom toolbar, Repositron,
284
00:16:38.055 --> 00:16:39.095
that you can see.
285
00:16:39.815 --> 00:16:48.135
So, they do encourage for feedback. They have a link in the blog post of the discussion forum to see how the Positron MCP is working with you.
286
00:16:48.759 --> 00:16:53.000
But, again, I think this is going to be a great way, again,
287
00:16:53.240 --> 00:16:57.880
for those that haven't had the ability to leverage posit... Positron,
288
00:16:57.880 --> 00:17:04.200
or I should say posit assistant, easy for me to say, within their infrastructure that has positron available,
289
00:17:04.735 --> 00:17:06.815
I think this is a good middle ground.
290
00:17:07.215 --> 00:17:12.014
Maybe for some companies this will be good enough, maybe for others it's a stop gap until
291
00:17:12.095 --> 00:17:14.414
they get into posit assistant.
292
00:17:15.135 --> 00:17:21.679
So, I'm not here to tell you which one to run, and it's just great to see that POSIT is keeping with the spirit
293
00:17:22.000 --> 00:17:23.120
of minimizing
294
00:17:23.120 --> 00:17:24.479
or eliminating
295
00:17:24.879 --> 00:17:25.519
the
296
00:17:25.679 --> 00:17:27.279
rather infamous
297
00:17:27.600 --> 00:17:29.440
vendor lock in issue,
298
00:17:29.440 --> 00:17:29.679
which,
299
00:17:30.240 --> 00:17:31.679
during the recent outage,
300
00:17:32.145 --> 00:17:33.745
we know that is a real thing.
301
00:17:50.920 --> 00:17:57.560
And rounding out our highlights today, I will admit this one gave me a bit of the way back feeling, if you will, of
302
00:17:58.045 --> 00:18:01.725
times in my earlier career where I was at the
intersection
303
00:18:02.205 --> 00:18:03.565
of statistics,
304
00:18:03.805 --> 00:18:04.845
you know, implementation
305
00:18:05.325 --> 00:18:07.245
of experimental designs,
306
00:18:07.805 --> 00:18:12.045
with very intricate and, you know, very kind of eye opening
307
00:18:12.600 --> 00:18:14.919
proteomic and biomarker data.
308
00:18:15.160 --> 00:18:17.159
And it is a great tutorial
309
00:18:17.160 --> 00:18:19.480
about just how important it is
310
00:18:19.799 --> 00:18:22.039
to have statistical modeling
311
00:18:22.200 --> 00:18:24.279
that takes full advantage
312
00:18:24.440 --> 00:18:26.600
of the traits of an experimental
313
00:18:26.600 --> 00:18:27.240
design
314
00:18:27.535 --> 00:18:29.215
and the associations
315
00:18:29.215 --> 00:18:30.654
within your data.
316
00:18:31.215 --> 00:18:33.375
And this is actually a showcase
317
00:18:33.375 --> 00:18:34.575
of a package
318
00:18:34.895 --> 00:18:38.735
in this, in the R ecosystem dealing with bioinformatic,
319
00:18:39.135 --> 00:18:40.015
operations
320
00:18:40.510 --> 00:18:42.669
called SCCOMP,
321
00:18:42.990 --> 00:18:45.389
and this blog post is authored
322
00:18:45.470 --> 00:18:46.190
by
323
00:18:47.150 --> 00:18:48.109
Stefano
324
00:18:48.270 --> 00:18:49.390
Mangiola,
325
00:18:49.390 --> 00:18:50.909
hopefully I got that right.
326
00:18:51.150 --> 00:18:55.470
He is a group leader within the Resistance Prevention Program
327
00:18:55.765 --> 00:18:56.485
in
328
00:18:56.804 --> 00:18:58.004
CygenC,
329
00:18:58.245 --> 00:19:01.364
that's a big abbreviation, I believe that's based in Australia,
330
00:19:01.684 --> 00:19:02.965
but nonetheless,
331
00:19:03.205 --> 00:19:05.124
this blog post is entitled
332
00:19:05.525 --> 00:19:07.765
Modeling Cell Type Proportions
333
00:19:07.765 --> 00:19:09.845
in Repeated Measures Designs
334
00:19:10.050 --> 00:19:13.250
with SC COMP, a TMA
335
00:19:13.250 --> 00:19:14.450
case study.
336
00:19:15.090 --> 00:19:19.170
So, we're about to dive into a unique blend of statistical
337
00:19:19.170 --> 00:19:19.970
experimental
338
00:19:19.970 --> 00:19:20.770
design
339
00:19:21.170 --> 00:19:24.050
and some of the implementation that this package offers.
340
00:19:24.805 --> 00:19:27.684
So this is centered around a real study
341
00:19:28.005 --> 00:19:29.845
that this was applied to,
342
00:19:30.725 --> 00:19:32.885
called the NEIL TRIP trial,
343
00:19:33.365 --> 00:19:35.684
where it was exploring the use of
344
00:19:35.925 --> 00:19:36.885
IMC,
345
00:19:36.885 --> 00:19:39.205
which stands for Imaging Mass Cytometry,
346
00:19:39.990 --> 00:19:42.710
to look at basically cellular
347
00:19:42.710 --> 00:19:43.669
changes
348
00:19:44.230 --> 00:19:45.590
in the tissue
349
00:19:45.830 --> 00:19:47.750
of patients experiencing
350
00:19:47.750 --> 00:19:49.990
triple negative breast cancer
351
00:19:50.470 --> 00:19:53.669
and how it relates to neoadjuvant
352
00:19:53.750 --> 00:19:54.870
immunotherapy
353
00:19:54.870 --> 00:19:55.510
response.
354
00:19:56.195 --> 00:20:00.595
This was a phase three trial, and again, an oncology based trial,
355
00:20:01.315 --> 00:20:03.554
and they were able to obtain,
356
00:20:03.715 --> 00:20:05.235
you know, the data
357
00:20:05.235 --> 00:20:07.315
from the published manuscript.
358
00:20:07.715 --> 00:20:10.035
But it's important to know just what
359
00:20:10.330 --> 00:20:13.530
the experimental design was to collect the biopsies
360
00:20:13.770 --> 00:20:15.370
to obtain this tissue.
361
00:20:16.250 --> 00:20:17.930
They record the measurements
362
00:20:18.970 --> 00:20:20.090
at baseline,
363
00:20:20.570 --> 00:20:21.850
first day of treatment,
364
00:20:22.170 --> 00:20:25.530
and then post treatment after the surgical excision,
365
00:20:26.225 --> 00:20:29.825
And then this was... These measurements for each patient
366
00:20:30.065 --> 00:20:31.265
were profiled
367
00:20:32.065 --> 00:20:33.825
with an IMC
368
00:20:34.065 --> 00:20:36.304
panel for 43 markers,
369
00:20:37.265 --> 00:20:41.600
and then a hybrid approach of deep learning segmentation
370
00:20:41.840 --> 00:20:44.400
and semi supervised clustering
371
00:20:44.720 --> 00:20:46.320
to find additional
372
00:20:46.320 --> 00:20:47.440
phenotypes,
373
00:20:48.160 --> 00:20:49.120
17
374
00:20:49.120 --> 00:20:50.559
epithelial
375
00:20:50.640 --> 00:20:52.240
and 20 TME
376
00:20:52.455 --> 00:20:54.455
cell phenotypes to be exact.
377
00:20:54.855 --> 00:21:00.215
But another important note is that multiple regions of interest, they call it ROIs,
378
00:21:00.215 --> 00:21:03.495
which I admit has a much different abbreviation
379
00:21:03.495 --> 00:21:08.549
than what I usually deal with ROI in my job, They were imaged per biopsy.
380
00:21:08.550 --> 00:21:11.270
So, the key take here is that
381
00:21:12.070 --> 00:21:13.190
each patient
382
00:21:13.350 --> 00:21:14.870
has several samples,
383
00:21:15.190 --> 00:21:18.470
but then the biopsies are nested in the patient
384
00:21:18.775 --> 00:21:23.495
and those regions of interest, those ROIs, are nested within the biopsy.
385
00:21:23.895 --> 00:21:24.855
So, ideally,
386
00:21:25.335 --> 00:21:32.455
you would have a method that can take advantage of these associations both within the patient and within the biopsy itself.
387
00:21:33.670 --> 00:21:36.230
So the manuscript itself
388
00:21:36.630 --> 00:21:37.670
utilized
389
00:21:37.670 --> 00:21:39.510
a more conventional
390
00:21:39.910 --> 00:21:40.789
approach
391
00:21:41.110 --> 00:21:45.029
where they did a, you know, longitudinal type analysis
392
00:21:45.270 --> 00:21:48.950
looking at the average proportions of these phenotypes
393
00:21:49.485 --> 00:21:50.684
per patient
394
00:21:50.925 --> 00:21:55.485
and compare it between arms, between the different time points, and the response groups.
395
00:21:55.725 --> 00:21:59.725
We have a hybrid of Wilcoxon test or trend plots
396
00:22:00.525 --> 00:22:03.645
with weighted binomial general linear modeling,
397
00:22:05.020 --> 00:22:06.460
but those tests
398
00:22:06.780 --> 00:22:09.899
treated each phenotype in isolation
399
00:22:09.900 --> 00:22:11.100
of each other,
400
00:22:11.740 --> 00:22:18.140
and they just did a strict average of those regions of interest markers to the patient before running the inference.
401
00:22:19.525 --> 00:22:20.164
So,
402
00:22:20.645 --> 00:22:24.884
why is that important? It's actually losing some information in that process.
403
00:22:25.365 --> 00:22:27.845
However, with the modeling that scComp
404
00:22:27.845 --> 00:22:28.644
supports,
405
00:22:29.125 --> 00:22:30.885
it can be run directly
406
00:22:31.880 --> 00:22:35.400
with, on the ROI level cell counts.
407
00:22:35.720 --> 00:22:37.400
Not doing those averages,
408
00:22:37.640 --> 00:22:40.440
taking them as the individual responses,
409
00:22:40.440 --> 00:22:41.800
those observations,
410
00:22:42.280 --> 00:22:43.480
and accounting for
411
00:22:44.065 --> 00:22:45.345
the association
412
00:22:45.345 --> 00:22:49.184
within a patient's panel, within a biopsy panel,
413
00:22:49.585 --> 00:22:54.304
knowing that these several ROIs are sharing a specific biopsy
414
00:22:54.385 --> 00:22:55.585
time point combination.
415
00:22:56.660 --> 00:23:02.100
So, this is leveraging the state of the art, you know, Bayesian methodologies
416
00:23:02.100 --> 00:23:04.100
in a mixed effect design,
417
00:23:04.660 --> 00:23:07.700
which if you've done, you know, repeated measure design before,
418
00:23:07.940 --> 00:23:10.900
you know that there is like a random component
419
00:23:10.595 --> 00:23:12.434
that can be accounted for.
420
00:23:12.995 --> 00:23:18.835
So now we've got that preamble out of the way, how does it actually look to use this package?
421
00:23:18.995 --> 00:23:24.195
First of which, they do have example code here, and there's a bunch of example code in this post
422
00:23:24.820 --> 00:23:28.179
of, in this case, taking a long form
423
00:23:28.580 --> 00:23:31.380
of this, ROI measurement,
424
00:23:31.780 --> 00:23:37.460
and it will look like a very tidy format, and that's by design. This package does support a longitudinal,
425
00:23:38.315 --> 00:23:39.595
long format
426
00:23:39.995 --> 00:23:42.795
of this data, where again that ROI
427
00:23:42.795 --> 00:23:43.835
region
428
00:23:44.075 --> 00:23:46.955
is the unit of interest, but then we tack on
429
00:23:47.115 --> 00:23:49.195
the different cell groups
430
00:23:49.195 --> 00:23:49.995
that are different,
431
00:23:50.710 --> 00:23:54.630
as well as which phase of time, the patient ID,
432
00:23:54.950 --> 00:23:56.550
the treatment arm they're on,
433
00:23:56.950 --> 00:23:57.910
and the
434
00:23:58.230 --> 00:23:59.990
PCR quantification
435
00:23:59.990 --> 00:24:01.190
as well as a grouping.
436
00:24:02.465 --> 00:24:07.424
With the data at hand, there is a function called sccompestimate
437
00:24:07.665 --> 00:24:10.065
to look at those response
438
00:24:10.065 --> 00:24:12.865
associated change across treatment arms.
439
00:24:13.505 --> 00:24:25.749
And you've got a pretty robust set of parameters, so certainly it does require some domain knowledge to get the hang of, but if you're familiar of how to specify models in R for these type of approaches,
440
00:24:25.990 --> 00:24:29.029
it does have a parameter called formula composition
441
00:24:29.269 --> 00:24:32.710
where you can feed in that model, you know, derivation
442
00:24:32.914 --> 00:24:39.315
and that'll look pretty familiar if you've been in any statistics course about using R for modeling analyses,
443
00:24:39.875 --> 00:24:44.515
along with other domain specific parameters on what constitutes the unit of sample,
444
00:24:45.040 --> 00:24:48.960
what variable I should say, how the groupings are performed,
445
00:24:49.120 --> 00:24:51.600
is it a count or is it a percentage,
446
00:24:51.760 --> 00:24:55.519
what inference method to use, and to use multiple cores
447
00:24:55.680 --> 00:24:57.840
if you have the capability of doing it.
448
00:24:58.985 --> 00:25:01.225
There are also additional derivations
449
00:25:01.225 --> 00:25:05.785
you can make, which is very common in this line of work, calculating
450
00:25:06.025 --> 00:25:07.305
fold changes
451
00:25:07.305 --> 00:25:10.025
between the different treatments or conditions,
452
00:25:10.585 --> 00:25:16.500
and they have a descriptive table showing that, along with a statement that actually is quite helpful
453
00:25:16.660 --> 00:25:19.780
as you're interpreting this, especially for the first time
454
00:25:20.100 --> 00:25:22.980
because fold change can be a confusing concept,
455
00:25:23.300 --> 00:25:25.860
but it's got some nice, output in the table for that.
456
00:25:27.245 --> 00:25:30.205
What is very standard in Bayesian methodologies
457
00:25:30.205 --> 00:25:34.125
is to look for certain checks on how the modeling is performing,
458
00:25:34.525 --> 00:25:35.885
such as convergence,
459
00:25:36.125 --> 00:25:39.245
making sure that the model converges and then you see any,
460
00:25:40.080 --> 00:25:43.039
any oddities with the variability involved,
461
00:25:43.200 --> 00:25:48.080
and you get a nice table that summarizes that across the different parameters.
462
00:25:48.799 --> 00:25:52.240
As well as another advantage of the Bayesian methodologies
463
00:25:52.934 --> 00:25:55.974
is that you can generate what are called posterior
464
00:25:56.294 --> 00:25:57.254
probabilities,
465
00:25:57.815 --> 00:26:01.735
which in essence, instead of giving you an actual just simple estimate,
466
00:26:01.735 --> 00:26:07.255
such as an average or a median that parametric models give you when you run the inference,
467
00:26:07.820 --> 00:26:10.620
you can get all those dynamic
468
00:26:10.620 --> 00:26:11.659
samples
469
00:26:11.900 --> 00:26:14.460
that make the posterior
distribution
470
00:26:14.780 --> 00:26:19.659
and see what the variability is like from end to end for that particular effect.
471
00:26:19.980 --> 00:26:21.820
And is it showing what you expect?
472
00:26:22.575 --> 00:26:25.134
So that's a great diagnostic as well.
473
00:26:25.534 --> 00:26:28.575
You can do a lot more too. You can do hypothesis
474
00:26:28.575 --> 00:26:29.455
testing,
475
00:26:29.855 --> 00:26:32.894
leveraging what those posteriors have in play,
476
00:26:33.375 --> 00:26:34.815
and also contrast,
477
00:26:34.815 --> 00:26:35.855
maybe comparing
478
00:26:36.350 --> 00:26:40.110
different phenotypes of another, different treatment groups of another,
479
00:26:40.430 --> 00:26:47.309
you can construct that however you see fit and you get a nice table here in the blog post that show what are the estimates
480
00:26:47.550 --> 00:26:49.630
and the lower and upper limits
481
00:26:49.870 --> 00:26:50.190
from,
482
00:26:50.715 --> 00:26:52.715
say, a prediction interval standpoint.
483
00:26:53.355 --> 00:26:59.674
There's much more. I'm getting a little winded here in explaining all this, but there is a healthy assortment
484
00:26:59.835 --> 00:27:01.195
of visualization,
485
00:27:01.674 --> 00:27:02.955
summary tables,
486
00:27:03.434 --> 00:27:09.729
and much more that you can use as a starting point if you want to see how this great package
487
00:27:09.889 --> 00:27:15.809
can be used in a domain such as this when you have cellular changes
488
00:27:16.049 --> 00:27:18.529
that hopefully can help you pinpoint
489
00:27:18.769 --> 00:27:20.849
which of these markers
490
00:27:20.929 --> 00:27:21.970
in this panel,
491
00:27:22.715 --> 00:27:25.115
usually use the term biomarker for this,
492
00:27:25.675 --> 00:27:30.154
might lead to an indication of what is showing that bigger treatment effect.
493
00:27:30.635 --> 00:27:36.395
This is all very akin to trying to tailor these therapies, and I use that term intentionally,
494
00:27:37.070 --> 00:27:40.190
building tailored therapies for patients
495
00:27:40.270 --> 00:27:42.110
so that they can benefit the most.
496
00:27:42.590 --> 00:27:47.470
Certainly in my line of work in years past, I would have loved to have leveraged something like this,
497
00:27:48.030 --> 00:27:53.845
in my experimental design, but yeah, if you're in this line of work, I think the
498
00:27:54.165 --> 00:28:03.924
SC Comp Package is a great fit. So kudos to Stefano for this terrific write up. It is manuscript worthy to say the very least.
499
00:28:04.405 --> 00:28:08.165
And I did a quick look at the different posts on the TidyOmics blog.
500
00:28:08.620 --> 00:28:10.859
There is a healthy assortment
501
00:28:11.100 --> 00:28:11.820
of
502
00:28:11.980 --> 00:28:14.299
great blog posts about different
503
00:28:15.260 --> 00:28:16.379
use cases
504
00:28:17.419 --> 00:28:20.380
as well as write ups of the EuroBioconductor
505
00:28:20.380 --> 00:28:21.020
Conference.
506
00:28:21.695 --> 00:28:25.455
And there's some great reading there. So highly recommend to check that out.
507
00:28:25.934 --> 00:28:30.815
And also, please check out the rest of our weekly. It never stops with just the highlights.
508
00:28:31.054 --> 00:28:34.495
We've got a lot more available to you to sync your
509
00:28:34.920 --> 00:28:39.880
your reading time into, to level up your journey of using R and data science.
510
00:28:40.280 --> 00:28:44.280
There is a lot of great write ups about, you know, real use
511
00:28:44.360 --> 00:28:45.640
and visualization
512
00:28:46.040 --> 00:28:49.160
across different modeling types, different domains
513
00:28:49.425 --> 00:28:50.705
from the environment,
514
00:28:51.025 --> 00:28:53.585
love our academic type research,
515
00:28:53.985 --> 00:28:57.905
understanding key concepts like odds ratios. Man, those always
516
00:28:58.065 --> 00:29:00.785
gave me the fits when I was in grad school.
517
00:29:01.265 --> 00:29:03.665
Lots of interesting things across the board.
518
00:29:04.370 --> 00:29:05.970
And speaking of interesting,
519
00:29:05.970 --> 00:29:11.970
you know what we're interested in? Hearing from you, whoever that's in the R Weekly Project itself,
520
00:29:12.450 --> 00:29:18.850
where you want to contribute that great new blog post, that great new showcase that you found, that great new R Package.
521
00:29:19.265 --> 00:29:21.585
We are just a poll request away.
522
00:29:21.985 --> 00:29:29.585
Right now, as of this recording, I haven't gotten to that friendly app yet, but it is on my list to do. You can head to rweekly.org
523
00:29:29.585 --> 00:29:32.945
where you'll find this issue as well as all the previous issues
524
00:29:33.380 --> 00:29:40.100
and send us a poll request hitting that fancy little Octocat that at least when I render this on my screen is still present.
525
00:29:40.340 --> 00:29:47.060
And you can click that, and you can send a little poll request with a template ready to go for you to complete.
526
00:29:47.735 --> 00:29:52.455
We also love to hear from you out there as far as listeners of this Humble Little Podcast.
527
00:29:52.855 --> 00:29:58.135
We have a contact page at our weekly... At the episode show notes directly linked.
528
00:29:58.455 --> 00:30:04.950
Hit that link in your podcast player of choice, you'll be directly taken to that contact page to submit your feedback.
529
00:30:05.750 --> 00:30:09.989
And, also, you can get in touch with me on social media as well.
530
00:30:10.950 --> 00:30:19.724
You find our handles in the show notes, but I'll just say them here. If you wanna find me on blue sky, I am at rpodcast@bsky.social.
531
00:30:19.965 --> 00:30:21.884
I am also on Mastodon.
532
00:30:21.884 --> 00:30:23.884
Alright. At r podcast
533
00:30:23.965 --> 00:30:26.044
@podcastindex.social.
534
00:30:26.365 --> 00:30:29.245
And I'm on LinkedIn. You can search my name and you will find me there.
535
00:30:29.970 --> 00:30:37.489
And before I
close-up shop here, I want to send a special shout out. This is not related to R and data science, although I probably am going to engineer
536
00:30:37.650 --> 00:30:40.210
something based in R for this down the road.
537
00:30:40.850 --> 00:30:43.490
Those that know me know that during the pandemic,
538
00:30:43.490 --> 00:30:47.804
I had a boatload of fun being part of an online community
539
00:30:48.125 --> 00:30:52.525
led by some very well respected colleagues in the Linux world
540
00:30:52.765 --> 00:31:02.720
for a certain racing league called Hotshot Racing. I had great fun with that. If you find that, Wimpy's World of Hotshot Racing on YouTube,
541
00:31:03.039 --> 00:31:05.359
you might see my adventures on there.
542
00:31:05.840 --> 00:31:13.120
Well, it's been many years since then. That group, unfortunately, has gone its separate ways, not because of any bad intentions, just that we've all been busy.
543
00:31:13.835 --> 00:31:17.035
I've always been yearning to find another thing to sink my,
544
00:31:17.675 --> 00:31:20.875
my free time into. When I get a spare moment,
545
00:31:21.035 --> 00:31:22.475
I think I found it.
546
00:31:22.795 --> 00:31:26.635
I have been as of a few months ago hitting the links virtually,
547
00:31:26.795 --> 00:31:28.635
that's an expression for hitting golf,
548
00:31:29.380 --> 00:31:32.019
with the very fun to play
549
00:31:32.500 --> 00:31:34.499
super video golf.
550
00:31:34.740 --> 00:31:36.100
It is on Steam,
551
00:31:36.260 --> 00:31:39.379
and I remember installing it earlier in the year,
552
00:31:39.780 --> 00:31:43.299
and I had a quick round on... During the flight to a conference.
553
00:31:44.015 --> 00:31:50.495
And it was kind of intriguing. I did put it down after that, but then I started picking it back up again during the recent travels of Pozikoff,
554
00:31:50.815 --> 00:31:52.495
and boy, I became hooked.
555
00:31:52.735 --> 00:32:00.390
It's got everything I like and what I did not know back then, and I do know now, is that we have a very enthusiastic
556
00:32:00.390 --> 00:32:04.630
community of virtual golfers out there that have welcomed me of open arms.
557
00:32:04.790 --> 00:32:09.029
So this is a special shout out to the Super Video Club Golf
558
00:32:09.030 --> 00:32:11.110
Club of sorts, however we're called,
559
00:32:12.005 --> 00:32:12.804
especially,
560
00:32:13.125 --> 00:32:17.204
folks like they go by the handle your jaguar lover.
561
00:32:17.684 --> 00:32:19.524
There's mystic juicer,
562
00:32:19.684 --> 00:32:20.404
Tay,
563
00:32:20.485 --> 00:32:24.644
and countless others, including a developer of the game himself.
564
00:32:26.005 --> 00:32:26.965
He goes by
565
00:32:27.940 --> 00:32:29.620
mostly Hairless, I believe.
566
00:32:29.860 --> 00:32:39.060
Very fun group to be a part of. I definitely invite you to check that out if you want to, you know, spend a little bit of, needed downtime to
567
00:32:39.765 --> 00:32:50.645
brush up your video golfing skills. And I'm happy to say that after some recent shots, I have became SVG famous with a couple hole in ones, so that was super fun. Anyway,
568
00:32:50.885 --> 00:32:57.070
I just wanted to give a special shout out to that group. So with that, we're gonna close-up shop for this episode 248
569
00:32:57.070 --> 00:32:58.749
of our weekly highlights.
570
00:32:58.990 --> 00:33:03.389
I thank you so much for joining me for this solo episode. We hope that Mike is back next week.
571
00:33:03.710 --> 00:33:15.964
But, yeah, until then, we hope you have a great rest of your day. We thank we thank you so much for listening. And, yes, one way or another, we or I will be back with another episode of our weekly highlights
572
00:33:16.125 --> 00:33:16.845
next week.