# SAR Matrix

**URL:** <https://community.datagrok.ai/t/sar-matrix/1314>\
**Category:** Features\
**Tags:** chem\
**Created:** [July 13, 2026, 2:56pm UTC](https://community.datagrok.ai/t/sar-matrix/1314 "2026-07-13T14:56:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtalagayev](https://community.datagrok.ai/user_avatar/community.datagrok.ai/vtalagayev/32/861_2.png) [@vtalagayev](https://community.datagrok.ai/u/vtalagayev)\
**Post date:** [July 13, 2026, 2:56pm UTC](https://community.datagrok.ai/t/sar-matrix/1314/1 "2026-07-13T14:56:17Z")

</div>

Hi everyone! We’ve been exploring a **SAR Matrix** analysis for the Chem package and put together an interactive prototype to gather feedback before building it. The idea is to combine two things Datagrok already has, **Matched Molecular Pairs** and **R-Groups Analysis** , into one view that organizes related compound series, colors them by potency, and proposes virtual analogs to make next.

Below is a short walkthrough of how it would work. We’d love to hear whether this would be useful in your projects and what you’d want it to do.

![SAMR_mockup_all_1](https://community.datagrok.ai/uploads/default/original/1X/ca318498f6ad69977c7011cf306360f33558079a.gif)

You start from any set of analogs with a measured activity, here a batch of kinase actives with structures and IC50 values, and Datagrok detects the molecule and numeric columns automatically. Running the analysis takes a few options: the molecule and activity columns, an activity scaling (pIC50, so substituent effects add up), how related two scaffolds must be to share a matrix (one bond keeps rows to closely related cores, ≤2 bonds groups more distant ones together), and whether to predict virtual analogs. From there it pulls the SAR out of the set on its own, rather than you defining a scaffold by hand.

![SAMR_mockup_all_2](https://community.datagrok.ai/uploads/default/original/1X/ecf8a020e506f28556b6c4ae68d172f7e124d902.gif)

The result is one matrix per group of related cores. The rows are the related scaffolds, grouped by MMP’s single-bond fragmentation; the columns are the substituents at a position, from R-Groups Analysis fragmentation; and each filled cell is a real compound shaded red to green by potency, so a trend reads at a glance down a column or across a row. Dashed cells are virtual analogs, combinations nobody has made yet, with a potency predicted by MMP’s local Free–Wilson model. Selecting any cell opens its details, including observed versus predicted potency and the core-plus-R breakdown, along with Matsy, a knowledge-based suggestion of which substituent tends to improve potency next.

![SAMR_mockup_all_3](https://community.datagrok.ai/uploads/default/original/1X/30a0beec0c324e6c6267a1161bdb6b3274de96b2.gif)

Because the R-group decomposition exposes every attachment point, you can view the SAR one position at a time, R¹, R², or both. That isolates the effect of a single vector while the others are held at a reference substituent, so it is easy to see, for example, that growing R¹ steadily improves potency.

![SAMR_mockup_all_4](https://community.datagrok.ai/uploads/default/original/1X/b3ae3ed408d4f4d895f1dba28e82df7ef0c5ea2f.gif)

A dataset usually yields many matrices, so they are ranked to bring the most informative ones to the top. You can sort by different criteria, for example matrices rich in potent compounds, ones showing sharp activity changes, or ones with a clearly preferred substituent. The left panel lists them all, split into individual analog series and cases of SAR transfer.

![SAMR_mockup_all_5](https://community.datagrok.ai/uploads/default/original/1X/0e756e3e6fe8654187cd2c3bacb93deff0846195.gif)

SAR transfer is the case where two related series show the same substituent changes producing parallel potency trends. When that happens, a modification proven in one series can be carried over to the other with more confidence, and the virtual analogs predicted in that matrix become safer bets. It is a quick way to borrow SAR across scaffolds instead of re-deriving it for each one.

Taken together, this makes it quick to decide what to make next by ranking the unmade virtual analogs on predicted potency, to borrow SAR across scaffolds through SAR transfer, to spot preferred substituents and activity cliffs at a glance, and to turn a hit series into a prioritized analog list without hand-building R-group tables.

This is still just a prototype, so your input genuinely shapes whether and how we build it. We’d love to know if something like this would fit into your day-to-day work, and if so, which part you’d reach for first: the matrix view itself, the virtual-analog predictions, the ranking, or SAR transfer. Is there anything you feel is missing, or that you’d want to work differently? Any and all feedback is very welcome, and we’re happy to dig into specific use cases if you have one in mind.

---

<div class="post-metadata">

**Author:** ![seritaka.gmail.com](https://community.datagrok.ai/user_avatar/community.datagrok.ai/seritaka.gmail.com/32/482_2.png) [@seritaka.gmail.com](https://community.datagrok.ai/u/seritaka.gmail.com)\
**Post date:** [July 25, 2026, 7:36am UTC](https://community.datagrok.ai/t/sar-matrix/1314/2 "2026-07-25T07:36:18Z")

</div>

Hi @vtalagayev ,

Thanks for your post. It seems really useful. I think export matrix and compounds function which is included virtual compounds will be useful.

And showing compound ID in each cell as an option will be useful (IMHO)  
Thanks!

Taka

---

<div class="post-metadata">

**Author:** ![vtalagayev](https://community.datagrok.ai/user_avatar/community.datagrok.ai/vtalagayev/32/861_2.png) [@vtalagayev](https://community.datagrok.ai/u/vtalagayev)\
**Post date:** [September 2, 2026, 3:25pm UTC](https://community.datagrok.ai/t/sar-matrix/1314/3 "2026-09-02T15:25:35Z")

</div>

Hey @seritaka.gmail.com,

Thank you very much for the suggestions 😃 I’ve spent the last couple of weeks implementing this feature in Datagrok so it can be tested out. I’ve also added an option for exporting molecules, and the input data is now linked to the matrix: you can trace a compound from the matrix back to the original dataframe and see all the information relevant to it. Here’s a GIF showing how it currently looks in Datagrok.

![sar_matrix_demo_no_init](https://community.datagrok.ai/uploads/default/original/1X/9e994a8789a7348278073039aa917b92bef91ba1.gif)

**How it works**

To run it, select **Chem → Analyze → SAR Matrix**. There you choose the activity column you want to analyze, along with additional settings, including the option to build matrices from predefined series via the optional **Series column**.

![SAR_demo_video2_02_09](https://community.datagrok.ai/uploads/default/original/1X/eed92779110b1d8416fc5f48168e03f5595a7192.gif)

This generates three tabs: **SAR Matrix** , **SAR Transfer** and **Make list**.

**SAR Matrix** cuts molecules into cores and substituents and groups them by shared core into individual series, so you can analyze how cores and substituents drive activity. Each matrix contains both compounds from the input dataframe and virtual analogs, which are molecules that aren’t in the data but could be made according to the information from the cores and substituents present in the series. Their potency is predicted from the existing compounds, which covers both genuinely new molecules and compounds that haven’t been tested yet.

 ![sar_matrix_overview](https://community.datagrok.ai/uploads/default/original/1X/378f8fe8e37a989611f7a5bac5ade83147d98a40.jpeg)

\*\*  
SAR Transfer\*\* looks across series rather than within one. It finds pairs of cores whose potency trends run in parallel across the substituents both have explored. Where the two rank the shared substituents the same way, an optimization learned on one core is expected to carry to the other, and the pairing proposes the analogs one core has never made.

 ![sar_matrix_transfer](https://community.datagrok.ai/uploads/default/original/1X/7dafda8af682c4d941225dbac47fd46fb5f7b559.png)

**Make list** is where the compounds of interest end up. It gathers them into one table showing whether each molecule came from the input dataframe or is a virtual analog, and whether its activity was measured or predicted.

 ![sar_matrix_make_list](https://community.datagrok.ai/uploads/default/original/1X/189df6e3d5ffb4de74fd38cae0b44343add6b503.png)

You’re welcome to try it out in the newest version of Datagrok. Here’s the tutorial, with a prepared dataset walking through each part in more detail:

> **[Datagrok](https://public.datagrok.ai/apps/Tutorials/Demo/Cheminformatics/SAR-Matrix)**

Hope you will like the new feature and suggestions and feedback is welcome. Thank you very much in advance 😃

Best wishes,  
Valerij

---

<div class="post-metadata">

**Author:** ![vtalagayev](https://community.datagrok.ai/user_avatar/community.datagrok.ai/vtalagayev/32/861_2.png) [@vtalagayev](https://community.datagrok.ai/u/vtalagayev)\
**Post date:** [October 26, 2026, 1:23pm UTC](https://community.datagrok.ai/t/sar-matrix/1314/4 "2026-10-26T13:23:31Z")

</div>

Hi everyone,

The newest version of the SAR Matrix with the newly implemented features 😃

**Summary tab**

The analysis now opens on a Summary page containing:

- **Key series** : the series to open first, with the reason each one is listed.

- **Best R-group, Best core, What improves potency** : which substituent wins, which core scores highest, and which swap improves potency the most. With your own R-group columns (see below), this becomes **What to change** , which ranks each part by its best value and best measured swap.

- **Worth making** : unmade analogs ranked by their predicted improvement, plus compounds in your table that were never assayed. **Add all to Make list** collects them in one click.

![sar-matrix-summary](https://community.datagrok.ai/uploads/default/original/1X/6f1c93970cc9df709f48853b62d85e840c1b9834.gif)

**Start from your own core and R-group columns**

As well as cutting the molecules itself, the analysis can now use core and R-group columns already in your table. PROTACs are a good example: with the **warhead** , **linker** and **E3 ligand** as three columns, one run ranks all three parts together, so you can see right away which part to change. To try it out do the following:

- In **Chem → Analyze → SAR Matrix** , select **Use existing R-groups**.

- Pick the **Core** column (for example the linker) and the **R-groups** columns (warhead, E3 ligand).

- In **Matrix columns** , choose which part runs across the matrix. You can switch it later on the SAR Matrix tab.

![protac-sar-matrix](https://community.datagrok.ai/uploads/default/original/1X/e2b2ffb397be590e71ada951b014c6e0af778e44.gif)

To try out the corresponding demo, open **Browse → Apps → Demo → Cheminformatics → PROTAC SAR Matrix**

@seritaka.gmail.com, both of your suggestions are also in: the Make list exports the selected compounds, virtual analogs included, through Add to workspace, and setting an ID column in the viewer’s properties labels each measured cell with its compound ID. Thank you very much for trying out the feature and giving suggestions 😃

Feedback is very welcome, especially from anyone trying it on their own R-group or PROTAC tables.

Best wishes,  
Valerij
