<jupyter_start><jupyter_text>Require AmberTools```conda install ambertools=17 -c http://ambermd.org/downloads/ambertools/conda/```<jupyter_code>representations = [
    {"type": "cartoon", "params": {
        "sele": "protein", "color": "residueindex"
    }},
    {"type": "surface", "params": {
        "sele": "6",
        "opacity": "0.3",  "wireframe": True, "color": "white"
    }},
    {"type": "licorice", "params": {
        "sele": "6",
    }},
    {"type": "licorice", "params": {
        "sele": "10-20 and not hydrogen"
    }}
]
from pdb4amber.visualizer import ViewerEditor
import parmed

parm = parmed.load_file('trpcage.pdb')
parm.box = None
editor = ViewerEditor(parm)
view = editor.visualize()
view.representations = representations
view.background = 'black'
view
editor.mutate([(5, 'LYS')])
editor.add_missing_atoms()
editor.leapify()
editor.minimize(igb=8, maxcyc=200)
view.render_image()
view._display_image()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18789144050104384, 'fraction_numerical': 0.016701461377870562, 'mean_word_length': 4.387640449438202, 'pattern_counts': {'":': 16, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '257462', 'license': 'MIT', 'n_tokens_mistral': 369, 'n_tokens_neox': 349, 'n_words': 64, 'path': 'examples/notebooks/protein_mutation_pdb4amber.ipynb', 'repo_name': 'ptosco/nglview', 'size': '958'}