PyBmw is an advanced plugin for PyMOL designed to streamline in-silico protein mutagenesis. It provides a powerful graphical user interface (GUI) to perform single and large-scale batch mutations efficiently, enhancing the standard capabilities of PyMOL's mutagenesis wizard.
PyBmw can be installed using one of the following methods.
This method allows for direct installation into PyMOL from the GitHub repository.
-
Copy the Raw File URL:
https://raw.githubusercontent.com/protmind/Python-Batch-Mutation-Wizard-PyBmw-/main/pybmw.py -
Install via PyMOL Plugin Manager:
- Launch PyMOL and navigate to
Plugin->Plugin Manager. - Select the
Install New Plugintab, then theFrom URL...sub-tab. - Paste the copied URL into the "URL" field and click Fetch.
- The plugin will be installed and available in the
Pluginmenu.
- Launch PyMOL and navigate to
This method involves downloading the script and installing it from a local file.
- Download the Plugin Script: Download the
pybmw.pyscript from this repository via theCode->Download ZIPoption.
- Install via PyMOL Plugin Manager:
- Launch PyMOL and navigate to
Plugin->Plugin Manager. - Select the
Install New Plugintab. - Click
Choose file...and locate thepybmw.pyscript on your local machine.
- Launch PyMOL and navigate to
PyBmw offers several modes of operation to accommodate diverse mutagenesis workflows.
- Batch Mode: Apply a single amino acid mutation to a large selection of residues simultaneously. Ideal for creating alanine scanning libraries.
- Import from CSV: For extensive mutagenesis projects, define mutations in an external CSV file. This feature automates the selection and staging of hundreds of mutations.
- CSV File Format: A simple two-column file with
Residue Identifier(Chain ResidueID) andTarget Amino Acid(three-letter code). No header row is needed. - Example (
mutations.csv):A 123,TRP A 45,ALA B 98,PHE C 210,GLY
- CSV File Format: A simple two-column file with
- Individual Mode: Assign a unique target mutation to each residue in a selection via an organized table.
- Step-by-Step Mode: Sequentially execute a list of mutations, allowing for individual rotamer selection and visual inspection at each step.
- Smart Refinement: Utilizes PyMOL's
sculptingfeature to refine sidechain rotamer conformations. - Visual Feedback: Staged residues are highlighted in yellow. Mutated residues turn cyan and are labeled for easy identification.
- Data Export: Save your work as a clean PDB file, a complete PyMOL session file (
.pse), or both.
The following steps outline a typical mutagenesis session using PyBmw.
- Load Structure: Open a PDB file in PyMOL.
- Select Residues: Select one or more residues for mutation in the PyMOL viewer.
- Launch PyBmw: Navigate to
Plugin->Python Batch Mutation Wizard (PyBmw). - Stage Residues: Click Add to Selection in the plugin window to load the selected residues into the mutation table.
- Configure and Execute Mutations:
- Choose the desired mode (Batch, Individual, Step-by-Step, or Import from CSV).
- Define the target mutations.
- Click Mutate All or step through with Apply This Mutation.
- Jayaraman Muthukumaran
- ND Yash
- Abhinav Singh
This project is distributed under the MIT License. See the LICENSE file for more information.





