In molecular modeling, a task that takes only a few minutes once can become a drain when it must be repeated across structures, documents, or stages of a project. Repeating the same manual steps also makes it harder to keep a workflow consistent. SAMSON’s scripting tools offer a way to approach this pain: use Python automation for repeated work, and keep scripts with documents when you want a workflow to be easier to revisit or share.
Start with the task that repeats
Before writing a script, identify the part of your work that feels repetitive. Is it a sequence of actions you perform regularly? Is the goal to make a workflow reproducible, or to embed Python scripts in a document? These are good reasons to begin with the Scripting guide. It covers the integrated Python environment, package management, running scripts, and embedding scripts or apps in documents.
Thinking about the task first helps keep automation practical. Write down the steps you currently repeat and the outcome you need. That outline can serve as a small specification for a script, and later as a reminder of what the script is intended to do. Start with one well-defined task rather than trying to automate an entire modeling process at once.
Choose where the script belongs
A script run in SAMSON can help automate work in the application. If you want the workflow to travel with a document, the documentation also points to embedding scripts or apps in documents. That distinction is useful when planning how you will revisit or distribute your work: consider whether you need a script for your own repeated use, or whether the script should be part of a document shared with others.
For a reproducible scripted workflow, the recommended path is still to begin with Scripting. The documentation identifies reproducibility and document-embedded Python workflows as reasons to start there. It also covers managing packages, so package setup is worth considering when planning a script that depends on additional software. Avoid assuming someone else’s environment is identical to yours; make the workflow’s requirements and purpose clear when you share it.
When scripting is not enough
Automation and extensions solve related but different needs. Python scripting is the natural starting point when you want to automate a task or package a scripted workflow. Extensions are the route to consider when you want to add capabilities to SAMSON, manage installed extensions, or explore development through the Software Development Kit (SDK).
If you only need SAMSON’s built-in capabilities and are not managing extensions, you can skip the extension track for now. If your goal is to install or develop new capabilities, continue to Extending SAMSON. Separating these goals can save time: choose scripting for repeated work, and explore extensions when the need is for additional capabilities or an extension-development path.
A simple route through the documentation
- Define the pain point. Note which manual task you want to reduce and what result you need.
- Explore Scripting. Learn about SAMSON’s integrated Python environment, packages, script execution, and document-embedded workflows.
- Decide how the workflow should be used. Keep the focus on automation for your own work, or consider embedding a script or app in a document.
- Explore extensions only if needed. Use the extension guide when your goal involves installing capabilities or understanding the SDK and distribution path.
This route turns a broad question—“How do I do more with less repeated manual work?”—into a manageable choice. Begin with the repeated task, learn the scripting tools relevant to it, and move on to extensions only when the problem calls for them. For more on how these paths fit together, see the Automate and extend documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
