topas-editor and TopasAiD: tools for AI-driven analysis of diffraction and total scattering data

summary

The gist

We describe topas-editor and TOPilot, which provide a powerful interface to the TOPAS software suite and allow generative AI-driven automation of complex crystallographic tasks.<ref:2610.23512#pg1…

In short

The paper introduces topas-editor and TOPilot, tools designed to automate complex crystallographic analysis using generative AI. topas-editor is a VS Code extension for quickly creating and editing TOPAS input files (INP files). TOPilot is a set of rules that allows large language models to drive entire crystallographic workflows, from data indexing to refinement, by applying learned skills within the TOPAS software environment.

Key concepts

topas-editor
A VS Code extension that helps users rapidly create and edit TOPAS input files (INP files). It provides features like full syntax highlighting and interactive tooltips, allowing generative AI to build complex input files directly within a familiar coding environment.
TOPilot
A set of rules, examples, and scripts enabling large language models to automate complex crystallographic tasks. TOPilot uses a transferable skill called 'topas-inp-writer' to drive AI through all stages of analysis, such as indexing and refinement.
Generative AI in Crystallography
The approach of combining the reasoning power of large language models with the rigorous modeling capabilities of TOPAS software. This allows AI to perform sophisticated analyses on diffraction and total scattering data without needing extensive manual intervention for every step.
Topas-aware VS Code extension
A specialized editor extension built specifically for the TOPAS software suite. It integrates AI capabilities by allowing users to create complex INP files in a coding environment that understands the specific syntax and needs of crystallographic modeling.

Terminology used across episodes

This episode discusses

The paper

topas-editor and TopasAiD: tools for AI-driven analysis of diffraction and total scattering data · Read on arXiv

Department of Chemistry, University Science Site, Lower Mountjoy, Durham University · Bruker AXS SE

This paper describes topas-editor and TopasAId, which provide a powerful interface to the TOPAS software suite and allow generative AI-driven automation of complex crystallographic tasks. topas-editor is a TOPAS-aware VS Code extension designed for the rapid creation and editing of TOPAS input files and for interacting with the software. It knows TOPAS syntax, has crystallographic-aware editing features and provides in-line user guidance via hover tips and automated links to reference manuals. TopasAId is a collection of Python routines and machine-accessible reference documents that allow AI-driven automated analysis in TOPAS. It uses a transferable topas-inp-writer skill that can be applied in all TOPAS application areas. We demonstrate the power and reliability of the approach using examples including: a complex Rietveld refinement with sample- and data-related complications; automatic analysis of multiple data sets; a pipeline from indexing through structure solution to refinement; automatic identification of the phases present in a sample; single crystal and powder diffraction analysis of incommensurate structures; and fitting PDF data. TopasAId can be used directly alongside topas-editor, via a stand-alone topasaid-wizard, or via command line interfaces or desktop apps from major AI providers. TopasAId was developed and tested using Claude large language models, but can be configured to use other cloud or local models. topas-editor and TopasAId are freely available.

Transcript

Introduction to the show: ident: Condensed Matter. The day in condensed matter: materials, phases and the measurements under them.

Kai: We're looking at the paper: "topas-editor and TopasAiD".

Title and authors: Kai: So, we're talking about this paper now called "topas-editor and TopasAiD: tools for AI-driven analysis of diffraction and total scattering data". It sounds like they’re building some kind of system to help people analyze diffraction data using artificial intelligence.

Mira: Right. The authors are John S. O. Evans, Oliver J. Wagstaff, Ivana R. Evans, Arnt Kern, and Alan A. Coelhohoc from Durham University and Bruker AXS SE in Karlsruhe and Brisbane respectively; it’s a collaboration between university researchers and big industry players in materials science right there

Lev: It’s interesting they're focusing on diffraction data specifically, which is the bread and butter for many of these materials studies, especially when you're looking at powder or single crystal data from sources like X-ray or neutron machines

Kai: So what’s the big idea here? Essentially, they are proposing two tools: topas-editor and Topilot. The main point is to let a large language model drive complex crystallographic tasks automatically using these tools

Mira: That sounds like they’re trying to bridge the gap between the highly specialized TOPAS software—which can do really rigorous structural analysis—and the general reasoning power of these large language models

The paper's summary: Kai: The authors explain that topas-editor is a Visual Studio Code extension designed for making INP files, which are these plain text files where you put all the TOPAS keywords and settings to describe the analysis you want to run on your data

Mira: And then they have Topilot, which is this set of rules, examples, and scripts that lets a large language model actually drive that TOPAS software

Lev: So instead of a human having to manually write out every single step for an analysis—from indexing the data all the way to refining the structure—the AI can handle it by using these tools

Kai: The goal is to let this combination automatically perform complex crystallographic analyses of powder, single crystal, and PDF data, giving you INP files and reports that you can check later

Mira: It’s about making the process much more hands-off, letting the AI do the heavy lifting across steps like indexing through structure solution to refinement with very little direct input from a human operator

The paper's improvements: Kai: They actually detail some specific improvements they made. One key thing is integrating topas-editor so you can rapidly create and edit those TOPAS input files right inside your familiar coding environment using full syntax highlighting

Mira: And Topilot gets its power from a transferable skill, which they call the topas-inp-writer skill that can be applied across all the different areas of TOPAS analysis

Lev: That means the AI isn't just guessing; it’s using these rules to guide it through complex crystallographic workflows and minimizing user intervention during those analyses

Kai: They also made sure Topilot is reliable by using hard-coded algorithms for really important decisions, like symmetry, while letting the generative AI handle the rest of the less certain parts

Mira: That way, it avoids guessing missing information—like experimental details—and instead it asks you for what it needs rather than just making assumptions about what's missing

Lev: And they improved how well the AI understands these files by using a browsable data tree within TOPAS understanding so the model knows where specific keywords might appear and how to interpret those names in equations

Conclusion: Kai: So to wrap it up, this paper on "topas-editor and TopasAiD: tools for AI-driven analysis of diffraction and total scattering data" shows how you can couple general reasoning with specialized software like TOPAS

Mira: It suggests that by providing the AI with these specific tools, you can automate complex crystallographic analyses of powder, single crystal, and PDF data from indexing to refinement

Lev: From an engineering standpoint, it’s about making sure the AI doesn't just run wild; they put in hard-coded rules for key decisions like symmetry so the results are more predictable on real hardware

Kai: It seems like this approach is really useful because it lets us use the power of these large language models to speed up analysis tasks that used to take a lot of manual effort

Mira: And it opens up possibilities for doing much more complex analyses than what's feasible with a standard graphical interface, because you can leverage the full functionality through INP files

Lev: It’s about making sure we actually get results that are usable on real hardware, not just theoretical outputs from an AI

More episodes

← Home