Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

R Weekly Highlights

R Weekly Highlights artwork

Issue 2026-W46 Highlights

Nov 13, 202633 minAudio
ShareXLinkedInFacebookWhatsAppEmail

The flow of both data and analytical jobs just got smoother with mizu, opening the door for multiple agent harnesses in Positron, and an optimal statistical model tailored to complex experimental designs with a friendly R interface. Bonus: A glimpse into Eric's recent gaming adventures! Episode Links This week's curator: Jon Carroll - @jonocarroll@fosstodon.org (Mastodon) & @jonocarroll.fosstodon.org.ap.brid.gy (Bluesky) & @carroll_jono (X/Twitter) mizu: thread-speed parallel R and Python over shared memory Bring your own agent to Positron with the Positron MCP Modelling cell-type proportions in repeated-measures designs with sccomp: a TMA case study Entire issue available at rweekly.org/2026-W46 Supplement Resources Super Video Golf: https://store.steampowered.com/app/2173760/Super_Video_Golf/ Supporting the show Use the contact page at https://serve.podhome.fm/custompage/r-weekly-highlights/contact to send us your feedback R-Weekly Highlights on the Podcastindex.org - You can send a boost into the show directly in the Podcast Index. First, top-up with Alby, and then head over to the R-Weekly Highlights podcast entry on the index. A new way to think about value: https://value4value.info Get in touch with us on social media Eric Nantz: @rpodcast@podcastindex.social (Mastodon), @rpodcast.bsky.social (BlueSky) and @theRcast (X/Twitter) Mike Thomas: @mike_thomas@fosstodon.org (Mastodon), @mike-thomas.bsky.social (BlueSky), and @mike_ketchbrook (X/Twitter) Music credits powered by OCRemix Pricolescence - Tails and the Music Maker - zircon - https://ocremix.org/remix/OCR02176 Gurgling Desert Pond - Final Fantasy - blackguitar - https://ocremix.org/remix/OCR02555

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

Hello, friends. We are back of episode 248 of the Weekly Highlights podcast. This is the weekly ish podcast where we talk about the excellent highlights and other resources that have been shared in this week's issue of r weekly, which you can find at rweekly.org. My name is Eric Nance, and I'm delighted you joined us from wherever you are around the world. And, well, I have to be the bearer of some bad news in terms of this is yet another, solo episode, unfortunately.

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 ones. As always, famous last words. But before I get to the meat of the show, it could be a lot worse because, you know, there's a certain, cloud provider that's, going through it at the time of this recording.

Maybe, somebody in the, Microsoft server rooms got a little too, crazy with the servers, and maybe something like this happened. 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, hopefully, things are working well for you now. And again, 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.

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. Ironically, we do host our stuff on GitHub. I digress. But let's let's get it to the meat of the show, shall we? We have an awesome issue to talk about today, and this week's issue was curated by Jonathan Carroll, one of our o g, members of the r weekly team. 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.

And we lead off with another evolution, or you might call the next generation, of some state of the art tooling within data science for parallelization, high performance computing, and all the above. And what I'm referring to is the new framework that's hitting both the R and Python ecosystems, and that is called Mizu. And this has been authored by Charlie Gao, a very talented

software engineer on the POSIT team. He's helped a lot with Shiny. He's been helping a lot with the Tidy Models team across many teams. But Mizu is, you might say, a new framework for helping bring the best of asynchronous and parallel computing with optimal use of memory to both R and Python with interoperability promise throughout. So we'll get to some of the highlights of this announcement post that he's drafted here,

but, lead off with what's on the tin, so to speak. There are three components that Mizu is a part that comprises of. One is this core, if you will, the libmizu c library, and then you have the Mizu R package, which is now available on CRAN as of this recording, as well as the Python package PyMizu, and that is now on PyPy as well. So you can get these packages for R or Python from your usual sources.

Why the name Mizu, you ask? That's what I was asking too. It is our original word from Japanese meaning water. And why is that appropriate here? Because of how this this framework is letting the data and the analytics flow between these different processes, and as I alluded to, perhaps even between the different languages. So what was... What are some of the big, big highlights of the Mizu sweep?

One of which is minimizing the time for a round trip, if you will. How long it takes to launch and hand off processes that these jobs are executing in what's called a pool. Well, there has been a huge gain in this going from one hundred milliseconds to an average of one millisecond for submitting a job or a task, if you will, in this pool of workers

and collecting the results. This is absolutely amazing. And while you may think, well, the previous marks on this of say a hundred milliseconds or so with MirrorEye and the like, that's nothing to sneeze at either, but when you put this at scale across different workflows, this will add up. So I alluded to earlier, a key concept is the idea of a pool, which is basically this

collection of worker processes that is dividing up the different tasks within its pool. And this is where Mizzou takes as optimized approach as possible to get these pools created for you. And, again, the interoperability comes to play within this pool, these workers in the pool, they don't even have to be in the same language as the host process that's running them. So you might need some Python jobs in that R process,

Mizu's got you covered. And it does support the more standard types of objects that can be passed back and forth, such as in frame data frames, perhaps with an Arrow back end of sorts that, you know, the Arrow project is, you know, very, very helpful with Parquet to help convert from back and forth on the Python side. The R side of things has a similar, mechanism as well. And the other thing that it promises is minimizing

the use of memory, I. E. Independent memory stacks that previous, frameworks are doing. Well, Mizu takes advantage of shared memory in the operating system so that these workers don't have to do a lot of copying of a lot of shared objects, such as shared data frames, shared other objects, and the like. Not everything is supported from the object side, but most of the types that you would expect, such as vectors, string,

lists, dictionaries, date, times, data frames, and data created with arrow, 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, but Mizu is very, very early, so I wouldn't be surprised if we get more support on this down the road. So the post concludes from Charlie about more of the motivation going from Mirai

to Mizu. And before I get too deep into that, just note that this isn't quite a replacement for MirrorEye. MirrorEye, I think, is always gonna have a place for especially working with HPC and cloud based worker environments. Mirai in the R side of things is top notch in that, and I don't see that changing anytime soon. More... You know, Mizu is actually an extension of another effort that we covered in the show.

Mori, but from the r side of things introduced this idea of shared memory for, you know, worker jobs or workers and pools that Mirai was supporting. Now with Mizu that it thought about, well, if these objects that Mori was piloting can be in shared memory, what about the actual instructions to run these jobs? Yes, it is, and that's where this comes from.

So now it's great to see that both R and Python users can benefit from this. Last but not least, Charlie... Achary is very transparent about this has been written with the help of AI. Well, I don't know if we need to keep calling this out too much anymore, although I appreciate his transparency, because the way he specifies this, I think, is actually quite good, and I'm glad he mentioned it,

because he did a lot of research in this. What kind of design principles were gonna be in play here? And it is very helpful that AI can help him get to some implementation of these tasks, but it's not the only thing. It still took careful attention, careful planning, and deliberate execution of the engineering. So I think it is a great use case of it and

I trust Charlie and the way he maintains his suite of software. I think we're in good hands and I can't wait to try Mizzou in my next projects that deal with HPC and other worker processes, not even so much of HPC. This can be within the same server. That does lead me to call out some of the future work that's ongoing. It will be with tighter integration with frameworks like the Tidy Models project as well as Shiny itself where I think this is gonna be

extremely valuable to eke out that extra bit of performance wherever you can. And in our next highlight, we're gonna stay with some of the recent happenings from the world of of the company Posit and talk about, speaking of AI,

we're gonna talk about some of the newer capabilities that have landed into Positron that will make the adoption of leveraging your AI agents in your respective organization or your own setup possibly a lot easier. As you have heard in previous episodes as well as the general, you know, talk within this year, POSIT introduced POSIT Assistant as their now current state of the art AI assistant harness

that you can implement inside both Positron and RStudio, and that has gotten a lot of positive traction. 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. Everything is integrated together, if you will. Posit assistant plays nicely with, of course, positron and the like. Now with that said,

it is not always easy for a given organization to get into POSIT Assistant because it may not always support some of the local in house, so to speak, AI modeling, you know, implementations. Well, and that is where in this blog post, Jonathan McPherson, has been part of the long history of posit and before that RStudio, with the RStudio IDE and much, much more,

he introduces the positron MCP. Now, you know I can't resist this. When I hear about the MCP, I gotta tell you about the real MCP. End of line. This MCP, of course, stands for model contest protocol, and that is a huge component in a lot of tooling that's being put out there with giving your LLM harness the ability to integrate with other software.

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, implementation or documentation or running NICS commands to update my configuration. That's just one. There's many, many others. Well, what the positron MCP allows users of positron to do is to be able to hook up their agent harness of choice,

one of which could be something like ClawCode, you know, that can work well. And you may be wondering, well, wait a minute Eric, I can just install the Clogcode extension in positron and get on my way. You absolutely can, and it can work pretty well. But what it doesn't do is it doesn't have the actual tight integration that you get with posit assistant when you actually run R or Python code

and see things happening in your existing session. This is, again, a very helpful thing to have when you're in the middle of maybe a bigger task and you're getting some debugging. Instead of shelling out to an ancillary R process on your same machine, you can see this all happen in your IDE of choice, such as positron. So, what does this mean for you as a positron user once you enable this toggle

in recent builds of positron? That means you can see, it can see the context of your R workspace, that data frame you loaded, those functions you have in memory, and much more. It can be able to query that if you have a data specific query, as well as your visualizations. It can help you iterate on those, and instead of just, you know, making PNGs in a temp directory and then having it imported back in and then you reviewing it manually,

you can see it all within your interface. Of course, as I said, within your R console or Python console, with the positronmcp, that code that it generates can run-in that console pane. 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, I myself can get that in the command history instead of copy pasting it and whatnot.

So that's just a bit of the features. There's more that the blog post dives into, the Jonathan authors here. But, what does it work with right now? It has been tested with the aforementioned Clog code, as well as Codex, OpenCode, oh, that got my attention, Hero, Gemini, then the Copilot CLI, and they do say there's more in the documentation. So to get this up and running, as I said, there is a, command

that you can run-in the command palette called positron m c p add to coding agent, and that'll get you up and running. And there are other configurations you can make. 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, and there is a little status, message in your bottom toolbar, Repositron, that you can see. 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.

But, again, I think this is going to be a great way, again, for those that haven't had the ability to leverage posit... Positron, or I should say posit assistant, easy for me to say, within their infrastructure that has positron available, I think this is a good middle ground. Maybe for some companies this will be good enough, maybe for others it's a stop gap until they get into posit assistant. 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

of minimizing or eliminating the rather infamous vendor lock in issue, which, during the recent outage, we know that is a real thing. And rounding out our highlights today, I will admit this one gave me a bit of the way back feeling, if you will, of

times in my earlier career where I was at the intersection of statistics, you know, implementation of experimental designs, with very intricate and, you know, very kind of eye opening proteomic and biomarker data. And it is a great tutorial about just how important it is to have statistical modeling that takes full advantage of the traits of an experimental design and the associations

within your data. And this is actually a showcase of a package in this, in the R ecosystem dealing with bioinformatic, operations called SCCOMP, and this blog post is authored by Stefano Mangiola, hopefully I got that right. He is a group leader within the Resistance Prevention Program in CygenC, that's a big abbreviation, I believe that's based in Australia,

but nonetheless, this blog post is entitled Modeling Cell Type Proportions in Repeated Measures Designs with SC COMP, a TMA case study. So, we're about to dive into a unique blend of statistical experimental design and some of the implementation that this package offers. So this is centered around a real study that this was applied to, called the NEIL TRIP trial,

where it was exploring the use of IMC, which stands for Imaging Mass Cytometry, to look at basically cellular changes in the tissue of patients experiencing triple negative breast cancer and how it relates to neoadjuvant immunotherapy response. This was a phase three trial, and again, an oncology based trial, and they were able to obtain,

you know, the data from the published manuscript. But it's important to know just what the experimental design was to collect the biopsies to obtain this tissue. They record the measurements at baseline, first day of treatment, and then post treatment after the surgical excision, And then this was... These measurements for each patient were profiled with an IMC

panel for 43 markers, and then a hybrid approach of deep learning segmentation and semi supervised clustering to find additional phenotypes, 17 epithelial and 20 TME cell phenotypes to be exact. But another important note is that multiple regions of interest, they call it ROIs, which I admit has a much different abbreviation than what I usually deal with ROI in my job, They were imaged per biopsy.

So, the key take here is that each patient has several samples, but then the biopsies are nested in the patient and those regions of interest, those ROIs, are nested within the biopsy. So, ideally, you would have a method that can take advantage of these associations both within the patient and within the biopsy itself. So the manuscript itself utilized a more conventional

approach where they did a, you know, longitudinal type analysis looking at the average proportions of these phenotypes per patient and compare it between arms, between the different time points, and the response groups. We have a hybrid of Wilcoxon test or trend plots with weighted binomial general linear modeling, but those tests treated each phenotype in isolation of each other,

and they just did a strict average of those regions of interest markers to the patient before running the inference. So, why is that important? It's actually losing some information in that process. However, with the modeling that scComp supports, it can be run directly with, on the ROI level cell counts. Not doing those averages, taking them as the individual responses, those observations,

and accounting for the association within a patient's panel, within a biopsy panel, knowing that these several ROIs are sharing a specific biopsy time point combination. So, this is leveraging the state of the art, you know, Bayesian methodologies in a mixed effect design, which if you've done, you know, repeated measure design before, you know that there is like a random component that can be accounted for.

So now we've got that preamble out of the way, how does it actually look to use this package? First of which, they do have example code here, and there's a bunch of example code in this post of, in this case, taking a long form of this, ROI measurement, and it will look like a very tidy format, and that's by design. This package does support a longitudinal, long format of this data, where again that ROI region

is the unit of interest, but then we tack on the different cell groups that are different, as well as which phase of time, the patient ID, the treatment arm they're on, and the PCR quantification as well as a grouping. With the data at hand, there is a function called sccompestimate to look at those response associated change across treatment arms. 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,

it does have a parameter called formula composition where you can feed in that model, you know, derivation and that'll look pretty familiar if you've been in any statistics course about using R for modeling analyses, along with other domain specific parameters on what constitutes the unit of sample, what variable I should say, how the groupings are performed, is it a count or is it a percentage, what inference method to use, and to use multiple cores if you have the capability of doing it.

There are also additional derivations you can make, which is very common in this line of work, calculating fold changes between the different treatments or conditions, and they have a descriptive table showing that, along with a statement that actually is quite helpful as you're interpreting this, especially for the first time because fold change can be a confusing concept, but it's got some nice, output in the table for that. What is very standard in Bayesian methodologies

is to look for certain checks on how the modeling is performing, such as convergence, making sure that the model converges and then you see any, any oddities with the variability involved, and you get a nice table that summarizes that across the different parameters. As well as another advantage of the Bayesian methodologies is that you can generate what are called posterior probabilities, which in essence, instead of giving you an actual just simple estimate,

such as an average or a median that parametric models give you when you run the inference, you can get all those dynamic samples that make the posterior distribution and see what the variability is like from end to end for that particular effect. And is it showing what you expect? So that's a great diagnostic as well. You can do a lot more too. You can do hypothesis testing, leveraging what those posteriors have in play,

and also contrast, maybe comparing different phenotypes of another, different treatment groups of another, 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 and the lower and upper limits from, say, a prediction interval standpoint. There's much more. I'm getting a little winded here in explaining all this, but there is a healthy assortment of visualization, summary tables,

and much more that you can use as a starting point if you want to see how this great package can be used in a domain such as this when you have cellular changes that hopefully can help you pinpoint which of these markers in this panel, usually use the term biomarker for this, might lead to an indication of what is showing that bigger treatment effect. This is all very akin to trying to tailor these therapies, and I use that term intentionally,

building tailored therapies for patients so that they can benefit the most. Certainly in my line of work in years past, I would have loved to have leveraged something like this, in my experimental design, but yeah, if you're in this line of work, I think the 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. And I did a quick look at the different posts on the TidyOmics blog.

There is a healthy assortment of great blog posts about different use cases as well as write ups of the EuroBioconductor Conference. And there's some great reading there. So highly recommend to check that out. And also, please check out the rest of our weekly. It never stops with just the highlights. We've got a lot more available to you to sync your your reading time into, to level up your journey of using R and data science.

There is a lot of great write ups about, you know, real use and visualization across different modeling types, different domains from the environment, love our academic type research, understanding key concepts like odds ratios. Man, those always gave me the fits when I was in grad school. Lots of interesting things across the board. And speaking of interesting, you know what we're interested in? Hearing from you, whoever that's in the R Weekly Project itself,

where you want to contribute that great new blog post, that great new showcase that you found, that great new R Package. We are just a poll request away. 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 where you'll find this issue as well as all the previous issues and send us a poll request hitting that fancy little Octocat that at least when I render this on my screen is still present. And you can click that, and you can send a little poll request with a template ready to go for you to complete.

We also love to hear from you out there as far as listeners of this Humble Little Podcast. We have a contact page at our weekly... At the episode show notes directly linked. Hit that link in your podcast player of choice, you'll be directly taken to that contact page to submit your feedback. And, also, you can get in touch with me on social media as well. 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.

I am also on Mastodon. Alright. At r podcast @podcastindex.social. And I'm on LinkedIn. You can search my name and you will find me there. 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 something based in R for this down the road. Those that know me know that during the pandemic, I had a boatload of fun being part of an online community led by some very well respected colleagues in the Linux world

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, you might see my adventures on there. 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. I've always been yearning to find another thing to sink my, my free time into. When I get a spare moment, I think I found it.

I have been as of a few months ago hitting the links virtually, that's an expression for hitting golf, with the very fun to play super video golf. It is on Steam, and I remember installing it earlier in the year, and I had a quick round on... During the flight to a conference. 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, and boy, I became hooked. 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

community of virtual golfers out there that have welcomed me of open arms. So this is a special shout out to the Super Video Club Golf Club of sorts, however we're called, especially, folks like they go by the handle your jaguar lover. There's mystic juicer, Tay, and countless others, including a developer of the game himself. He goes by mostly Hairless, I believe. 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

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, 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 of our weekly highlights. I thank you so much for joining me for this solo episode. We hope that Mike is back next week. 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

next week.

Open the transcript file

Hosts and Guests

Hosts

  • Eric Nantz Host Feed-stated

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Issue 2026-W47 Highlights

    Nov 20, 202648 minAudio

    Our takes on the increasing removal of friction in good and not-so-good ways thanks to AI, a visual tour of hot air balloon accident data, and a case study of novel image recognition with the rplatipus package. Episode...

    Credit the people on this episode

  2. Issue 2026-W45 Highlights

    Nov 6, 202644 minAudio

    What happens when that online data set isn't so easy to download anymore? We learn of two packages to ease the pain of obtaining these files and then some. Plus a visit to the visualization corner with a handy way to...

    Credit the people on this episode

  3. Issue 2026-W44 Highlights

    Oct 30, 202631 minAudio

    The celebration of rOpenSci's 15-year anniversary continues with the community sharing their perspectives, and a fun Shiny app that could be quite useful during celebrations on a weekend or the holidays. If you ever...

    Credit the people on this episode

  4. Issue 2026-W43 Highlights

    Oct 23, 202659 minAudio

    We learn about the variety of ways you can contribute back to the core of R, a roundup of the excellent choices available for package and environment reproducibility, and an amazing collection of Shiny applications and...

    Credit the people on this episode

  5. Issue 2026-W41 Highlights

    Oct 9, 202652 minAudio

    A roundtrip between formatted tables and spreadsheets is now very much possible, how {shinyreact} represents a new path for user interface development in Shiny, and a candid take on ownership of code and the products we...

    Credit the people on this episode