If you find yourself repeating the same steps while preparing or analyzing molecular models, the challenge is not only the time spent clicking. Repeating a workflow also makes it harder to remember exactly what you did, and harder for someone else to follow the same process later.
SAMSON’s automation and extension tools offer two different ways to address that friction: use Python for scripted work, or add capabilities through extensions. Choosing the right starting point can keep a small task from turning into an unnecessary development project.
First, identify what is repeating
Before reaching for a script, write down the task in plain language. Which steps do you perform more than once? Are you trying to automate work inside SAMSON, keep a scripted workflow with a document, or add a capability that is not already available to you? These are different needs, and the documentation points to different paths for each.
- Repeated work or a reproducible procedure: start with Scripting.
- A script or app that should be embedded in a document: also start with Scripting.
- Installing more capabilities or exploring development and distribution: go to Extending SAMSON.
This simple distinction is useful: scripting is the route for automating a workflow; extensions are the route for managing or developing added capabilities. You do not need to study both paths if your task only calls for one.
Turn a repeated task into a clear workflow
A practical first step is to describe the workflow as a short sequence before you try to automate it. Note its purpose, the actions you repeat, and what you expect to have at the end. This is not a SAMSON-specific scripting recipe; it is a way to make the problem easier to understand before consulting the scripting guide.
- Choose one task. Start with a specific, repeated activity rather than trying to automate an entire modeling process at once.
- Write down the sequence. Make the current procedure explicit enough that you could explain it to a colleague.
- Decide whether it belongs with a document. If the workflow should travel with a document, the documentation identifies embedded scripts or apps as a scripting use case.
- Follow the scripting guide. It covers the integrated Python environment, package management, running scripts, and embedding scripts or apps in documents.
- Reassess the goal. If the need is to install or develop an extension rather than automate steps, switch to the extension guide.
Breaking the task down this way helps you avoid two common mismatches: looking for an extension when a script is the relevant tool, or beginning an extension-development path when you only need to automate a workflow.
Keep reproducibility in view
Automation is most useful when it makes a procedure easier to repeat and understand, not merely faster to perform once. If another person may need to use the result, consider whether the scripted workflow should be packaged with a document. The documentation explicitly includes reproducibility and document-embedded Python workflows among the reasons to start with scripting.
Likewise, avoid assuming that every repeated action should be automated immediately. First identify the stable, meaningful sequence you want to repeat. Then use the documentation to learn how SAMSON’s integrated Python environment and scripting features support that work. The page does not prescribe a particular script or molecular workflow, so the scripting guide is the place to consult for the practical details.
When extensions are the better fit
Extensions serve a different purpose from a one-off automation script. If your goal is to add capabilities, manage extensions, or understand the SDK and extension distribution path, the relevant next step is Extending SAMSON. If you only need built-in capabilities and are not managing extensions, you can leave that path for later.
And if your scripted work leads into modeling, path generation, or analysis pipelines, the documentation points next to Simulate and analyze. For distributing scripted documents or collaborating around them, see Share and collaborate.
To choose your next step—or see the complete recommended reading order—visit the Automate and extend documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
