Peptide builder missing from the Build-->Insert menu

Hello and many thanks for supporting this amazing tool!

The problem: upon installation, my Build menu is different from what the online manual describes. Specifically, Build–>Insert has Molecule; DNA/RNA; InChl and SMILES options, but no peptide builder option.

Environment Information

Avogadro version: 1.99.0
Operating system and version: Windows 10 Enterprise, version 22H2

Expected Behavior

Build–>Insert–> Fragment; SMILES; Peptide
as in Building a Peptide — Avogadro 1.99.0 documentation

Actual Behavior

Build–>Insert has Molecule; DNA/RNA; InChl and SMILES

Steps to Reproduce

Please upload files if appropriate here (or via file-sharing service like Dropbox or Pastebin)

Yes. The manual covers version 1.2. Avogadro 2 is currently in development and not all features have been brought over from v1.2.

In particular, we’re redoing the peptide builder. It sometimes doesn’t do a great job. I have some of the pieces in place, but haven’t had the time to finish the work. The GitHub issue tracking the status is Peptide builder command · Issue #910 · OpenChemistry/avogadrolibs · GitHub

Personally, if you’re willing to run a Python script, I recommend:

Thank you very much indeed for the quick reply!

Just one more question, please. Imagine I do have the peptide builder working within Avogadro, either by using the Python script or by waiting until you have implemented it in Avogadro2. Will I then be able to use Build or Draw to place a proton on a residue and then use the geometry optimization to find the optimal geometry of the molecular ion within a force field that would recognize the proton as a proton and not as a neutral hydrogen? This was my actual goal…

Thank you very much again!

When adding atoms Avogadro doesn’t distinguish between charges or oxidation states so you would just add a normal hydrogen. By default the “Adjust Hydrogens” feature is on, and this prevents you from adding extra hydrogens, so make sure to turn it off first (in the Draw Pane, visible on the left when you select the Draw Tool).

Currently however, while Avogadro does do valence-based calculations, the formal charges aren’t adjusted automatically. So to make sure it is being treated as a protonation you’ll have to manually change the formal charge (of the nitrogen you’re protonating) to +1 in the Atom Properties dialog (Analysis => Properties => Atom Properties...). Then the formal charge will be stored by the program, saved in CJSON files, and reflected in the calculation of the overall charge.

Whether the overall charge of the molecule or the formal charges of the atoms is used within the force field optimizations I don’t know, and Geoff will have to answer that.

I can tell you though that geometry optimizations using my avo_xtb plugin definitely support charged molecules, so there’s always that option. :slight_smile:

It depends very much on the force field. Normally some adjustment is made for formal charges, but having say a protonated histidine doesn’t mean the \ce{H+} is really a “proton” for most force fields.

There’s been some discussion about balancing “I want to specify the formal charge when editing” and ease of use. I’m open to suggestions, but I’m generally more in favor of methods like XTB, etc. that don’t require formal charges or atom typing. In reality, there’s never really an \ce{H+}

Thank you very much, Matterhorn, Geoff!

I have followed Matterhorn’s advice and, taking an amino acid as a trial molecule, put a couple of “protons” on it by adding hydrogens and changing the formal charge of the corresponding nitrogens. The energies and the optimised geometries that I obtained this way looked a bit strange, so I checked the partial charges table and “discovered” that these partial charges sum up to zero, regardless of my protonation effort… Is it an Avogadro or an MMFF94 feature or am I still doing something wrong?

It would actually be very nice to have this working, as I finally realised that Avogadro2 has the standard amino acids in Insert–> Molecule, so combining them into a short peptide, such as I would be interested in, is not very tedious even without a proper peptide builder.

I will, of course, try to add the XTB extension (thanks, Matterhorn!).

Many partial charge methods (e.g., Gasteiger) do not properly account for formal charges that sum to an ion. I’ve never quite understood why, but that’s always been my incentive to use semiempirical quantum calculations like MOPAC or xtb.

Thanks a lot, Geoff!

I am convinced I should use xtb or similar, but I cannot follow the instructions for installing the xtb plugin by Matt… Probably I should start a new thread since it has nothing to do with the peptide builder I was after initially.

1 Like