Building a coarse-grained model for one protein is usually straightforward. The workflow becomes easier to trip over when your atomistic structure contains several copies of that protein: chains may share names, and residues may share IDs. If those identifiers are not unique, topology generation can run into problems. A little organization before you start can save you from debugging an output that is difficult to interpret.
This guide focuses on preparing multiple protein replicas in SAMSON before using the Martinize2 extension to generate MARTINI models and GROMACS topology files. The same preparation principles apply whether you make copies manually or already have a replicated structure.
First, decide what counts as a separate input
Martinize2 treats each top-level structural model in the SAMSON document as a separate input model. In other words, if you want several copies to be processed together as one replicated system, make sure they are organized as chains within the intended structural model—not as separate top-level structural models. Each top-level model is processed separately and produces a separate coarse-grained model.
This distinction is easy to overlook: several proteins visible together in the viewport do not necessarily mean they will be treated as one input. Check the document structure before opening the extension.
Create and position the copies
You can create replicas with the Molecular Box Builder, a Python script, or manually in SAMSON. For manual copies, first make sure all atoms are visible. Select the chain or chains you want to duplicate, copy and paste them, then move the newly pasted chain with a move editor. Repeat until you have the desired number of copies.
When placing the copies, keep them spatially separated as intended for your system. If precise increments are useful, SAMSON provides translational and rotational snapping controls in the viewport. You can also copy and move several chains at once.

Make residue and chain identifiers unique
Once the replicas are in place, the key preparation task is to ensure that residue IDs are unique and that chains have unique IDs and names. This is not just cosmetic housekeeping: duplicate identifiers can cause issues when Martinize2 creates topologies.
- Renumber residues. Right-click the structural model and choose Structural model > Renumber residues and structural groups. In the dialog, keep the default starting value of 1 and click OK.
- Renumber chain IDs. Right-click the structural model and choose Structural model > Renumber chain IDs. Keep the default starting value of 0 and click OK.
- Give chains unique names. Rename each chain in the document using F2 or the context menu’s Rename command. You can also rename chains in the Inspector.

After renumbering, save the system so you can return to the prepared structure without repeating the setup. It is also worth checking the document view to confirm that the intended chains are still part of the same structural model and that their names are distinct.
Generate the coarse-grained model
With the structure prepared, open Martinize2 from Home > Apps or through Find everything…. Select the structural model in the document and click Set. Review the options, including the MARTINI force field and position-restraint setting. Restraints can be generated for backbone beads, all beads, or none; the selected option affects the generated include topology files.
Choose a results folder and click Create coarse-grained models. The project output includes input structures, a log, and an output folder for each input model, with coarse-grained PDB and GRO files and GROMACS topology files. When a single structure is processed, its coarse-grained model is loaded in SAMSON.
The practical checklist is simple: one intended structural model, replicas represented as chains within it, and unique residue IDs, chain IDs, and chain names. For the full workflow and additional options, see the Martinize2 tutorial.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
