- integer structure.GetAtomCount(integer segmentIndex)
- Returns the number of atoms in the specified segment.
- V1 Function Name
- More Information
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.