RosettaCommons / RosettaCommons/rosetta

Failed to add residue HME at position 209 to surface - cannot find radius for FE1

Open
#389 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
470
Forks
169
Avg merge
16d 23h
Merged PRs (30d)
2

Description

When my molecule includes a metal atom (FE1) with 2-letter atomtype, Rosetta produces the following error:

core.scoring.sc.MolecularSurfaceCalculator: [ ERROR ] Failed to add residue HME at position 209 to surface - cannot find radius for FE1

I tried resolving this by adding a line like * FE* 1.41 to the sc_radii.lib file, but the error persists.

Root Cause Analysis

After investigating the relevant code:

https://github.com/RosettaCommons/rosetta/blob/695b0f21aed8ace84a900449ce857ab632f8e4d1/source/src/core/scoring/sc/MolecularSurfaceCalculator.cc#L325-L330

I believe the issue occurs when copying residue.atom_name(i) to scatom.atom, as the code skips the first character. However, when generating the error message, it prints the full residue.atom_name(i), which is misleading.

Workaround

Instead of adding * FE* 1.41 to sc_radii.lib, adding * E* 1.41 works correctly. This confirms that the code is looking for the atom name without the first character.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read core/scoring/sc/MolecularSurfaceCalculator.cc around lines 325-330 and inspect how residue.atom_name(i) is converted before the sc_radii.lib lookup. Reproduce the FE1 case and compare the lookup key with the error text. Done means the reported atom name and radius lookup behavior are consistent for two-letter atomtypes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
bioinformatics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.