It is as I suspected. From what I've tested, the subscore is merely determined by cloud overlap, with no bias towards whether or not the given residue is in the proper place in the backbone sequence. I tried placing PHE10 in 1598 in a piece of the cloud that looked to be a suitable recipient for TRP (which, volumetrically, is bigger than PHE) followed by positioning it in a spot where the cloud is suitable for PHE (which would be a perfect fit in terms of volume). I was able to have the cloud completely envelop the PHE in both situations, and the density bonus remained roughly in the 42-point range.
Further testing by translating the residue around and rotating it revealed that the density subscore reaches the negative range if it is close to a part of the cloud, but none of it is enveloped in the cloud. This only goes up to a certain range; if it goes past, the density bonus is ignored completely.
Jeff, I understand where you're coming from in terms of what you're trying to do with the unit-cell shifting, I really do, but if we were able to do so, you'd find more often than not 1 of 2 situations:
- The density subscore for any given residue is scoring too low to actually warrant investigating using the method.
- The residue in question, when shifted into the visible cloud unit cell, would not fit the cloud AT ALL upon visual inspection and is merely getting a density bonus by happenstance (e.g. overlapping is disjointed, ambiguity in sidechain, etc.)
If you had the ability to shift unit-cells, very rarely would a residue be in the invisible cloud for the bonus, in the right orientation and completely enveloped upon visual inspection, and in the right place in the cloud's backbone to reveal useful information.
Take-home message is that you're better off just visually identifying where residues need to go in the visible cloud > score refining for stability once residues have been placed > hand-fixing script errors bringing sidechains/backbone outside of the cloud to maximize density bonus. There is basically no need to worry about the density bonus in these unit-cell clouds.
If you're still not convinced, let me consider your most complicated example, a hypothetical folded globular protein straddling 8 unit-cells in the cubic corners of each.
"One could imagine more complicated cases if the protein
straddled more than 2 unit cells. For example, if the protein
was spherical and centered on the corner of a cubic unit cell,
8 adjacent unit cells would each contain 1/8 of the protein's
volume. Being able to shift the protein from one unit cell to
another would help sort out which parts of the protein should
be left alone and which should be cut & moved to get the best
possible overlap with the visible ED cloud."
In this example, if I'm understanding correctly (and at this point I'm fairly confident I am), you'd find that the residues getting a density bonus in those unit-cell corners belong to the opposite corner of the cloud in each unit-cell, and the position that it's in provides practically no clues as to the correct orientation. If you shifted the unit-cell position as you have described, you'd be left with the same useless information in all 8 corners; overlap granting a density bonus, but visual inspection revealing that it's just touching the cloud but not really correctly placed in the cloud.