MartiniGlass uses vermouth to stably rewrite your input topology files as ones that can be used for visualisation in VMD. Although much of the functionality is focused on proteins, and the program has a particular focus on being able to visualise protein secondary/tertiary structure networks, MartiniGlass can in fact be used to reconstruct bonded networks of any Martini molecule!
If you can't view your system as expected, please open an issue if it is related to the code itself, or a discussion for any other issues in the workflow of the code.
Documentation for MartiniGlass is available on the readthedocs site. The documentation covers multiple use cases and runs through the tutorials in the examples folder step by step.
MartiniGlass v1.1.0 is available via pip:
python3 -m venv venv && source venv/bin/activate # Not required, but often convenient.
pip install martiniglass
Alternatively, to benefit from the latest added features, install from the repository source:
python3 -m venv venv && source venv/bin/activate # Not required, but often convenient.
pip install git+https://github.com/Martini-Force-Field-Initiative/MartiniGlass
Ideally, MartiniGlass can generate all the visualisable topology files for a system with a single command:
martiniglass -p topol.top
However, if the system contains proteins with complex tertiary structure networks that are also needed, extra options may be requried. More comprehensive documentation and tutorials are available on the readthedocs site. If you think something is broken or have a feature request, please open an issue.
For a practical example of how MartiniGlass can be used to generate visualisable topologies, and see the expected output, there is an example of the 1UBQ system shown below in the examples folder. Here are some illustrations of how MartiniGlass can be used to visualise your molecules
Martinizing a protein (Ubiquitin, PBD: 1UBQ) and visualising its elastic network.
Left to right: atomistic representation of the protein.
Martini representation of the protein overlaid on the atomistic one, showing the direct backbone and side chain.
Martini representation of the protein overlaid on the atomistic one, showing all bonds, with the elastic network in
black. Martini representation of the protein, showing all bonds.
Non-protein systems. Left: the molecular motor of Vainikka and Marrink, a synthetic molecule with complex topology, showing how the beads are connected using the CPK mode in VMD. Right: Several molecular motors together with a lipid bilayer of several different lipid types.