- integer structure.GetAtomCount(integer segmentIndex)
- Returns the number of atoms in the specified segment.
- V1 Function Name
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. (This logic only works for amino acid segments, and is not applicable to ligands, RNA, or DNA.)
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 atom numbering for a complete discussion of atom numbering in Foldit.