structure.GetAtomCount Edit

integer structure.GetAtomCount(integer segmentIndex)
Returns the number of atoms in the specified segment.
V1 Function Name
More Information

The atom number can be used to create a band with band.AddBetweenSegments or band.Add.

Atom numbers are assigned to the "heavy" (non-hydrogen) atoms first, starting with backbone, and then the sidechain. The hydrogens are numbered after the heavy atoms.

Many Foldit recipes band to the "beta carbon" of a sidechain to allow for freer movement. The beta carbon is the first nub or elbow in the sidechain. (Glycine does not have a sidechain, so a hydrogen takes the place of the beta carbon.) Except for the last segment, the beta carbon will always be atom number 5. The last segment has an extra oxygen atom in the backbone, which means the beta carbon is atom 6.

A given amino acid always has the same number of atoms, except for the first and last segments of the protein. The first segment has two additional hydrogens, and the last segment has an additional oxygen. These extra atoms are returned in the value returned by structure.GetAtomCount().

See band.Add for further discussion of atom numbering in Foldit.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.