GL1X · GenesisL1 explorer

GL1X docs · Science

Molecular features reference

GL1X describes every MolNFT molecule with three documented, versioned feature sets: one for protein sequences, one for DNA and RNA sequences and one for protein chains with coordinates. A feature vector is a fixed list of finite numbers in a known order, so a table of them can train a machine-learning model directly, and a model trained on one version of a set takes the same features in the same order from any record, today or later.

The features are computed by internal/molfeat from the sequences and coordinates GL1X indexed from the chain and from IPFS. They appear in four places:

  • on every MolNFT card, under Molecular analysis and machine-learning features (closed until opened), as property tiles, plain-language notes, composition charts, a secondary-structure track and the full feature table with each value's GL1F integer;
  • in the API: GET /api/bio/records/{contract}/{tokenId}/features for a record, POST /api/bio/features for sequences of your own, GET /api/bio/features for this catalog;
  • in MCP: the molecule_features tool;
  • in datasets (POST /api/bio/dataset, MCP bio_dataset), one row per hit or record, see Machine-learning datasets.

Each set below has its table of features, then a section on how each group of features is computed: the formula as internal/molfeat implements it, a worked example from GL1X's own output on the proteins of its tests (hen egg-white lysozyme above all), what the group is useful for in a model, its range and its limits. Using the features in a model lists the exact relations between features, so that a model need not be given the same information twice.

Sets, versions and column names #

SetVersionDataset prefixFeaturesComputed from
Protein sequencegl1x-protein-1p_46the amino-acid sequence as the record states it
Nucleotide sequencegl1x-nucleotide-1n_30the DNA or RNA sequence as the record states it
Structuregl1x-structure-1s_43the CA trace, B-factors and GSA string of a protein chain of the record's structure file

Inside a set a feature has a short name (gravy); in datasets and in the card's machine-learning table it is written with the set's prefix (p_gravy), so the sets of one row never share a column name. A new version of a set may add, change or reorder features; the version string changes with it, and GL1X keeps answering the versions it documents here.

Every value is a finite number. Fractions are between 0 and 1; flags are 0 or 1; counts are whole numbers. Most values are rounded (masses to 0.01 Da, indices to 4 decimals, fractions to 6 decimals) so that the same input gives byte-identical output on every machine.

How sequences are read: letters only, upper case, FASTA headers and line breaks dropped. Letters outside the standard alphabet (X, B, Z, J, U, O for proteins; N and IUPAC codes for nucleic acids) are counted as ambiguous and left out of compositions; they still count in the length.

Protein sequence features (gl1x-protein-1, p_…) #

The physico-chemical properties are those of ExPASy ProtParam (Gasteiger et al. 2005), computed with the same constants. GL1X's tests compare them with Biopython 1.88 (whose ProtParam follows ExPASy) on hen egg-white lysozyme, the insulin B chain, ubiquitin and GFP: the isoelectric point and the net charge agree within 0.01, the instability index and GRAVY within 10⁻³ (GL1X rounds them to four decimals), the aromaticity within 10⁻⁵, the extinction coefficients exactly, and the mass within 0.02% (ExPASy's and Biopython's mass tables differ in the fourth decimal; GL1X uses ExPASy's).

#FeatureUnitDefinitionReference
1lengthresiduesNumber of residues
2molecular_weightDaAverage molecular weight: the sum of average residue masses plus one water (18.01524 Da)Gasteiger et al. (2005)
3isoelectric_pointpHTheoretical pI: the pH at which the net charge is zero, found by bisection between 0 and 14 to 10⁻⁶Bjellqvist et al. (1993, 1994)
4net_charge_ph7eNet charge at pH 7.0 (Henderson–Hasselbalch with the same pK values)
5charge_density_ph7e/residueNet charge at pH 7.0 per residue
6extinction_280_reducedM⁻¹cm⁻¹Molar extinction coefficient at 280 nm with every cysteine reduced: 5500·nW + 1490·nYPace et al. (1995)
7extinction_280_cystinesM⁻¹cm⁻¹The same with every pair of cysteines forming a cystine: + 125 per cystinePace et al. (1995)
8absorbance_280_1mgmlAUAbsorbance at 280 nm of a 1 mg/mL solution in a 1 cm cell, cysteines reduced: ε / MWGasteiger et al. (2005)
9instability_indexInstability index: 10/L · Σ DIWV(xᵢ, xᵢ₊₁) over consecutive standard residues; 40 or more predicts a protein unstable in vitroGuruprasad et al. (1990)
10aliphatic_indexRelative volume of aliphatic side chains: a + 2.9·b + 3.9·(c + d), with a, b, c, d the mole percents of Ala, Val, Ile and LeuIkai (1980)
11gravyGrand average of hydropathy: mean Kyte–Doolittle value of the standard residuesKyte & Doolittle (1982)
12aromaticityfractionFraction of F, W and YLobry & Gautier (1994)
13frac_tinyfractionFraction of tiny residues (A C G S T)EMBOSS pepstats classes
14frac_smallfractionFraction of small residues (A B C D G N P S T V)EMBOSS pepstats classes
15frac_aliphaticfractionFraction of aliphatic residues (A I L V)EMBOSS pepstats classes
16frac_aromaticfractionFraction of aromatic residues (F H W Y)EMBOSS pepstats classes
17frac_nonpolarfractionFraction of non-polar residues (A C F G I L M P V W Y)EMBOSS pepstats classes
18frac_polarfractionFraction of polar residues (D E H K N Q R S T Z)EMBOSS pepstats classes
19frac_chargedfractionFraction of charged residues (B D E H K R Z)EMBOSS pepstats classes
20frac_basicfractionFraction of basic residues (H K R)EMBOSS pepstats classes
21frac_acidicfractionFraction of acidic residues (B D E Z)EMBOSS pepstats classes
22cysteine_countresiduesNumber of cysteines (the capacity for disulfide bonds)
23entropy_bitsbitsShannon entropy of the composition of the 20 standard amino acidsShannon (1948)
24entropy_normalizedfractionThe entropy divided by its maximum, log₂ 20
25low_complexity_fractionfractionFraction of residues SEG masks as low complexity with BLAST's parameters (window 12, locut 2.2, hicut 2.5)Wootton & Federhen (1993)
26ambiguous_fractionfractionFraction of letters outside the 20 standard amino acids
27–46aa_A aa_C aa_D aa_E aa_F aa_G aa_H aa_I aa_K aa_L aa_M aa_N aa_P aa_Q aa_R aa_S aa_T aa_V aa_W aa_YfractionThe composition: the fraction of each standard amino acid (alphabetical by one-letter code)

The constants #

  • Average residue masses (Da, residue = amino acid − water), as ExPASy: A 71.0788, R 156.1875, N 114.1038, D 115.0886, C 103.1388, E 129.1155, Q 128.1307, G 57.0519, H 137.1411, I 113.1594, L 113.1594, K 128.1741, M 131.1926, F 147.1766, P 97.1167, S 87.0782, T 101.1051, W 186.2132, Y 163.1760, V 99.1326, U 150.0388, O 237.3018; B and Z are the means of N/D and Q/E, J is I/L, X is 110.
  • pK values (Bjellqvist): side chains K 10.0, R 12.0, H 5.98 (positive); D 4.05, E 4.45, C 9.0, Y 10.0 (negative); N-terminus 7.5 and C-terminus 3.55, replaced by the residue-specific values ExPASy uses: N-terminal A 7.59, M 7.0, S 6.93, P 8.36, T 6.82, V 7.44, E 7.7; C-terminal D 4.55, E 4.75.
  • Kyte–Doolittle hydropathy: A 1.8, R −4.5, N −3.5, D −3.5, C 2.5, Q −3.5, E −3.5, G −0.4, H −3.2, I 4.5, L 3.8, K −3.9, M 1.9, F 2.8, P −1.6, S −0.8, T −0.7, W −0.9, Y −1.3, V 4.2.
  • DIWV: the 400 dipeptide instability weight values of Guruprasad et al. (1990), as Biopython tabulates them (internal/molfeat/diwv.go, written by gen_diwv.py; BSD 3-Clause, see License).

How the protein features are computed #

The worked examples use hen egg-white lysozyme, the 129-residue sequence of the tests (6 Lys, 11 Arg, 1 His, 7 Asp, 2 Glu, 8 Cys, 3 Phe, 3 Tyr, 6 Trp); L is the length of the cleaned sequence, ambiguous letters included.

Size and mass #

length is L. molecular_weight is the average mass of the chain as written: one water plus the average mass of each residue from the table above (X, and any letter without a value, counts 110 Da).

molecular_weight = 18.01524 + Σ m(residue)      (Da)

Lysozyme weighs 14,313.14 Da, 110.95 Da per residue. Mass and length carry nearly the same information: as residues, the twenty amino acids weigh between 57.05 Da (Gly) and 186.21 Da (Trp), so the mass per residue stays within that range and moves only with the composition. The mass is that of the sequence as the record states it: modifications, disulfides and processing (a signal peptide still in the sequence) are not taken into account, and it is the average mass, not the monoisotopic mass a mass spectrometer measures (for that, see Proteomics).

Charge and isoelectric point #

Each ionizable group carries a fractional charge given by the Henderson–Hasselbalch equation with the Bjellqvist pK values above: the N-terminus, Lys, Arg and His are positive, the C-terminus, Asp, Glu, Cys and Tyr negative. The net charge at a given pH is

Z(pH) =   1/(1 + 10^(pH − pK_N)) + Σ over K, R, H of  n / (1 + 10^(pH − pK))
        − 1/(1 + 10^(pK_C − pH)) − Σ over D, E, C, Y of  n / (1 + 10^(pK − pH))

with n the count of each residue and pK_N, pK_C the terminal values, which depend on the first and the last residue. net_charge_ph7 is Z(7.0) and charge_density_ph7 is Z(7.0) / L. Z falls steadily as the pH rises, so the pH where it crosses zero, the theoretical isoelectric point, is found by halving the interval from pH 0 to 14 until it is narrower than 10⁻⁶; it is given to four decimals.

Worked example. Lysozyme at pH 7 (its first residue, Lys, and its last, Leu, take the default terminal values):

GroupCountpKCharge at pH 7
N-terminus17.5+0.7597
Lys610.0+5.9940
Arg1112.0+10.9999
His15.98+0.0872
C-terminus13.55−0.9996
Asp74.05−6.9922
Glu24.45−1.9944
Cys89.0−0.0792
Tyr310.0−0.0030
net+7.7724

The arginine-rich lysozyme is basic: +7.77 at pH 7 (0.060 per residue) and pI 9.3238. The other test proteins: GFP pI 5.67 and −7.61 at pH 7, ubiquitin 6.56 and −0.40, the insulin B chain 6.90 and −0.08.

The isoelectric point and the charge decide where a protein runs in isoelectric focusing, the setting the Bjellqvist pK values were fitted for, and in ion-exchange chromatography; the charge density compares proteins of different sizes. These are values for the unfolded sequence: every group takes its model pK whatever its surroundings in the folded protein, every cysteine counts as a free thiol whether it is in a disulfide or not, and modifications (a phosphate, a blocked N-terminus) are ignored.

Absorbance at 280 nm #

Tryptophan and tyrosine absorb at 280 nm, and cystines a little (Pace et al. 1995):

extinction_280_reduced  = 5500 n(W) + 1490 n(Y)                    (M⁻¹ cm⁻¹)
extinction_280_cystines = extinction_280_reduced + 125 × ⌊n(C) / 2⌋
absorbance_280_1mgml    = extinction_280_reduced / molecular_weight

Lysozyme: 5500 × 6 + 1490 × 3 = 37,470 M⁻¹cm⁻¹ with its cysteines reduced; its 8 cysteines make at most 4 cystines, so 37,970 with all of them bonded. A 1 mg/mL solution absorbs 37,470 / 14,313.14 = 2.618 in a 1 cm cell. These are the coefficients used to measure a protein's concentration by its absorbance (A = ε c l); as features they weigh the aromatic content by its optical weight. Phenylalanine is ignored, so a protein without Trp, Tyr and Cys gets 0, and the notes warn that its concentration cannot be measured at 280 nm. The cystine value assumes every pair of cysteines bonded; the truth lies between the two values.

Stability indices #

The instability index (Guruprasad et al. 1990) rests on a correlation between the stability of a protein in vitro and its dipeptide composition. Each of the 400 dipeptides has a weight (DIWV, above); the index sums the weights of the consecutive pairs and scales by the length:

instability_index = (10 / L) × Σ DIWV(xᵢ, xᵢ₊₁)     over consecutive pairs of standard residues

A pair with a letter outside the twenty adds nothing, but L still counts it. Below 40 a protein is classified stable, at 40 or more unstable. The test proteins are all classified stable: the insulin B chain 9.85, lysozyme 16.09, GFP 31.06, ubiquitin 36.06.

The aliphatic index (Ikai 1980) is the relative volume of the aliphatic side chains: the mole percents X (100 × count / L) of Ala, Val, Ile and Leu, the last three weighted by the volume of their side chains relative to alanine's:

aliphatic_index = X(A) + 2.9 X(V) + 3.9 (X(I) + X(L))

Lysozyme (12 Ala, 6 Val, 6 Ile, 8 Leu):

aliphatic_index = 9.302 + 2.9 × 4.651 + 3.9 × (4.651 + 6.202) = 65.12

The index runs from 0 to 390 (a sequence of Ile and Leu only); the notes read a higher value as a hint of thermostability, after Ikai. Both indices are cheap sequence priors for models of expression and stability. They are empirical scores, not measurements: the instability index says nothing about the free energy of folding.

Hydropathy and aromaticity #

gravy       = (1 / N_std) × Σ KD(xᵢ)      over the N_std standard residues
aromaticity = (n(F) + n(W) + n(Y)) / L

KD is the Kyte–Doolittle hydropathy of each residue (table above), from −4.5 (Arg) to +4.5 (Ile), so GRAVY lies between these values. Lysozyme scores −0.472 (hydrophilic on average), ubiquitin −0.489, GFP −0.521 and the insulin B chain +0.220. Lysozyme's aromaticity is 12/129 = 0.093. Kyte and Doolittle made the scale for profiles along a sequence, where long hydrophobic stretches stand out; a mean over the whole chain dilutes them, so a membrane protein with large soluble domains can have a negative GRAVY. Note that GRAVY averages over the standard residues and aromaticity over the full length.

Residue classes #

The nine frac_ features are the shares of the length in the residue classes of EMBOSS pepstats (table above). The classes overlap on purpose: histidine is aromatic, polar, charged and basic at once, so the nine shares do not add up to 1; B and Z count in the classes that list them. Lysozyme: tiny 0.380, small 0.605, aliphatic 0.248, aromatic 0.101, non-polar 0.527, polar 0.473, charged 0.209, basic 0.140, acidic 0.070. They are coarse, robust descriptors that need no alignment.

Sequence complexity #

entropy_bits       = − Σ pᵢ log₂ pᵢ      pᵢ = share of amino acid i among the standard residues
entropy_normalized = entropy_bits / log₂ 20

The entropy is 0 for a homopolymer and log₂ 20 ≈ 4.32 bits when the twenty amino acids are equally frequent. Lysozyme: 4.064 bits (0.940); the repetitive peptide GSAGSAGSAG: 1.571 bits (0.363).

low_complexity_fraction is the share of residues SEG (Wootton & Federhen 1993) masks with BLAST's parameters. SEG computes the Shannon entropy, in bits, of the composition of every 12-residue window; a window at or below 2.2 bits starts a segment, which grows over the neighbouring windows at or below 2.5 bits and is then trimmed to its least probable stretch. Of the test sequence that begins with 40 glutamines, 40 of its 374 residues are masked (0.107); lysozyme has none. Low-complexity regions (repeats, compositionally biased stretches) are masked in BLAST searches because they match unrelated sequences.

ambiguous_fraction is the share of letters outside the twenty: X, B, Z and J, but also selenocysteine (U) and pyrrolysine (O), which have masses but no place in the compositions.

Composition #

The twenty aa_ features are the count of each amino acid divided by L. With no ambiguous letter they add up to 1; otherwise to 1 − ambiguous_fraction. Lysozyme's most frequent residues are Asn (0.109), Ala and Gly (0.093 each) and Arg (0.085). The composition is the simplest fixed-length summary of a sequence; it ignores order, so two sequences of the same composition look the same whatever their folds.

cysteine_count is the number of cysteines; half of it bounds the number of disulfides. Lysozyme's 8 cysteines form the 4 disulfides its structure shows (covalent links); the sequence alone does not say which cysteines are bonded.

Nucleotide sequence features (gl1x-nucleotide-1, n_…) #

#FeatureUnitDefinitionReference
1lengthbasesNumber of bases
2molecular_weightDaSingle-strand molecular weight. DNA: 313.21·nA + 304.2·nT + 289.18·nC + 329.21·nG − 61.96; RNA: 329.21·nA + 306.17·nU + 305.18·nC + 345.21·nG + 159.0Oligonucleotide formulas (Thermo Fisher Scientific)
3is_rnaflag1 when the sequence holds U and no T
4frac_AfractionFraction of A
5frac_CfractionFraction of C
6frac_GfractionFraction of G
7frac_TfractionFraction of T (of U in RNA)
8frac_ambiguousfractionFraction of N and IUPAC ambiguity codes
9gc_contentfraction(G + C) over the unambiguous bases
10gc_skew(G − C) / (G + C)Lobry (1996)
11at_skew(A − T) / (A + T)
12cpg_observed_expectedCpG observed/expected: nCpG · N / (nC · nG), CpG counted over overlapping pairsGardiner-Garden & Frommer (1987)
13melting_temperature°CBasic melting temperature: 2·(A + T) + 4·(G + C) below 14 unambiguous bases (Wallace rule), else 64.9 + 41·(G + C − 16.4)/N, N the unambiguous bases (Marmur–Doty form); salt and strand concentration are not consideredWallace et al. (1979); Marmur & Doty (1962)
14entropy_bitsbitsShannon entropy of the base composition (at most 2 bits)
15–30di_AA di_AC di_AG di_AT di_CA di_CC di_CG di_CT di_GA di_GC di_GG di_GT di_TA di_TC di_TG di_TTfractionFrequency of each dinucleotide among the overlapping pairs of unambiguous bases (U read as T)

How the nucleotide features are computed #

Below, nA, nC, nG and nT count the bases (T and U together), N is the length (every letter) and N_u the number of unambiguous bases. A ratio whose denominator is 0 is given as 0.

Mass and type #

DNA: molecular_weight = 313.21 nA + 304.2 nT + 289.18 nC + 329.21 nG − 61.96
RNA: molecular_weight = 329.21 nA + 306.17 nU + 305.18 nC + 345.21 nG + 159.0

A sequence is RNA (is_rna = 1) when it holds U and no T; any other sequence is read as DNA, a U then counting as T. Ambiguous bases add no mass. ACGT weighs 313.21 + 289.18 + 329.21 + 304.2 − 61.96 = 1,173.84 Da; the RNA GGGAAAUUUCCC 4,016.31 Da. The mass is that of one strand: a duplex weighs the sum of its two strands.

Composition and skews #

frac_X     = nX / N          (X = A, C, G, T; frac_ambiguous likewise)
gc_content = (nG + nC) / N_u
gc_skew    = (nG − nC) / (nG + nC)
at_skew    = (nA − nT) / (nA + nT)

The four base fractions and frac_ambiguous add up to 1; the GC content leaves the ambiguous bases out. A skew is 0 when the two bases of a pair are equally frequent on the strand read and runs from −1 to +1; GC skew is the classic measure of the asymmetry between the two strands of bacterial genomes (Lobry 1996). The 39 bases ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG hold 9 A, 8 C, 14 G and 8 T: GC content 22/39 = 0.564, GC skew (14 − 8)/22 = 0.273, AT skew (9 − 8)/17 = 0.059.

CpG observed/expected #

cpg_observed_expected = n(CpG) × N / (nC × nG)

n(CpG) counts a C followed by a G over the overlapping pairs. If C and G were placed at random, about nC × nG / N CpG pairs would occur, so the ratio is near 1 for a random sequence of the same composition. Vertebrate DNA is depleted of CpG except in CpG islands, which Gardiner-Garden and Frommer defined as stretches of 200 bases or more with a GC content above 50% and a ratio above 0.6; the notes apply that rule. ATGCGCGCAT has 2 CpG in 10 bases with 3 C and 3 G: 2 × 10 / (3 × 3) = 2.22. The 39 bases above have 2 CpG and a ratio of 0.696, but are too short to be called an island.

Melting temperature #

N_u < 14:   melting_temperature = 2 (nA + nT) + 4 (nG + nC)              (°C, Wallace rule)
N_u ≥ 14:   melting_temperature = 64.9 + 41 (nG + nC − 16.4) / N_u      (°C)

The melting temperature is where half of the duplex of a strand and its complement has come apart. ATGCGCGCAT (10 bases): 2 × 4 + 4 × 6 = 32 °C; the 39 bases above: 64.9 + 41 × (22 − 16.4) / 39 = 70.8 °C. Neither rule considers salt, strand concentration, mismatches or the order of the bases (nearest neighbours), and the value jumps where the rules change at 14 bases: read it as a rough index for comparing sequences, not as a prediction for an experiment.

Entropy and dinucleotides #

entropy_bits is the Shannon entropy of the four bases among the unambiguous ones: 0 for a single base repeated, 2 bits when the four are equally frequent (GGGAAAUUUCCC; ATGCGCGCAT has 1.971). The sixteen di_ features are the frequencies of the ordered pairs of adjacent bases over the overlapping pairs whose two bases are unambiguous (U read as T); they add up to 1. They carry what composition alone misses: CpG depletion, for instance, shows as a low di_CG.

Structure features (gl1x-structure-1, s_…) #

Computed for each distinct protein chain of a record's indexed structure file (the first model; identical chains of a record are one entry), from its CA atoms, B-factors (pLDDT in predicted models) and GSA string. GL1X's tests compare the geometric and contact features with an independent computation in NumPy (eigenvalues of the gyration tensor, the full distance matrix) on hen lysozyme (PDB 1AKI, 129 residues: radius of gyration 13.75 Å, 0.99 times that of a compact chain) and on PDB 1DIX (208 residues); they agree to 10⁻³.

#FeatureUnitDefinitionReference
1residuesresiduesResidues with CA coordinates
2radius_of_gyrationÅRadius of gyration of the CA atoms: √(trace of the gyration tensor S)
3rg_relativeratioRg over that of a compact chain of N residues, 2.2·N^0.38 Å: near 1 for a compact globule, above 1.4 for extended or multi-domain chainsSkolnick, Kolinski & Ortiz (1997)
4asphericityRelative shape anisotropy κ² = 1 − 3·I₂/I₁² from the invariants of S (I₁ its trace, I₂ the sum of its principal 2×2 minors): 0 for a sphere, 1 for a rodTheodorou & Suter (1985)
5max_dimensionÅLargest distance between two CA atoms
6end_to_end_distanceÅDistance between the first and the last CA atom
7helix_fractionfractionFraction of residues TM-align assigns to a helix (H)Zhang & Skolnick (2005)
8strand_fractionfractionFraction of residues TM-align assigns to a strand (E)Zhang & Skolnick (2005)
9turn_fractionfractionFraction of residues TM-align assigns to a turn (T)Zhang & Skolnick (2005)
10coil_fractionfractionFraction of residues TM-align assigns to coil (C)Zhang & Skolnick (2005)
11helix_segmentscountHelices: runs of 3 or more H (helices of about 7 residues and longer)
12strand_segmentscountStrands: runs of 2 or more E (strands of about 6 residues and longer)
13contacts_per_residuecontacts/residueCA–CA contacts (distance below 8 Å, sequence separation 6 or more) per residueCASP contact definition
14medium_range_contact_fractionfractionFraction of the contacts at a separation of 12 to 23CASP ranges
15long_range_contact_fractionfractionFraction of the contacts at a separation of 24 or moreCASP ranges
16relative_contact_orderfractionMean sequence separation of the contacts over the chain's span in the sequencePlaxco, Simons & Baker (1998)
17absolute_contact_orderresiduesMean sequence separation of the contactsIvankov et al. (2003)
18chain_breakscountConsecutive CA atoms more than 4.3 Å apart (residues missing from the coordinates)
19mean_bŲ or pLDDTMean B-factor of the CA atoms; the mean pLDDT for predicted models
20std_bŲ or pLDDTStandard deviation of the CA B-factors (pLDDT)
21predictedflag1 when the structure is a computed model (its B-factors are then pLDDT)
22low_confidence_fractionfractionPredicted models: fraction of residues with pLDDT below 70; 0 for experimental structuresAlphaFold DB confidence bands
23gsa_entropy_bitsbitsShannon entropy of the chain's GSA state composition (at most log₂ 20)
24–43gsa_a gsa_b gsa_c gsa_d gsa_e gsa_f gsa_g gsa_h gsa_i gsa_j gsa_k gsa_l gsa_m gsa_n gsa_o gsa_p gsa_q gsa_r gsa_s gsa_tfractionFraction of residues in each state of GSA, the GL1X structural alphabetStructures

How the structure features are computed #

The input is the chain's Cα atoms x₁ … x_N (N ≥ 5 residues with coordinates), their B-factors and the chain's GSA string. The worked examples are the two structures of the tests: hen lysozyme (PDB 1AKI, 129 residues) and PDB 1DIX (208 residues), both without chain breaks.

Size and shape #

x̄                  = (1/N) Σ xᵢ                                 the centroid
S                  = (1/N) Σ (xᵢ − x̄)(xᵢ − x̄)ᵀ                   the gyration tensor (3 × 3)
radius_of_gyration = √(trace S) = √( (1/N) Σ |xᵢ − x̄|² )
rg_relative        = radius_of_gyration / (2.2 N^0.38)
I₁ = trace S,  I₂ = S₁₁S₂₂ + S₂₂S₃₃ + S₁₁S₃₃ − S₁₂² − S₂₃² − S₁₃²
asphericity        = κ² = 1 − 3 I₂ / I₁²

With λ₁, λ₂, λ₃ the eigenvalues of S (the squared extents along the principal axes), κ² = 1 − 3 (λ₁λ₂ + λ₂λ₃ + λ₁λ₃) / (λ₁ + λ₂ + λ₃)²: 0 when the three are equal (a sphere), 0.25 for a flat disc (two equal, one zero) and 1 for a rod (a single one). max_dimension is the largest Cα–Cα distance and end_to_end_distance the distance between the first and the last Cα.

Worked example. Lysozyme has Rg 13.75 Å. A compact chain of 129 residues has 2.2 × 129^0.38 = 13.95 Å, so rg_relative is 0.986: compact. κ² is 0.145, the largest Cα–Cα distance 43.79 Å and the two ends lie 20.52 Å apart. 1DIX: Rg 16.81 Å against 16.72 Å for a compact chain of 208 (1.005), κ² 0.090.

The radius of gyration grows with length; dividing by the compact value removes that growth, so rg_relative separates compact globules (near 1) from elongated, multi-domain or partly unfolded chains (above 1.4, the notes say), and κ² adds the shape. Only the residues with coordinates take part: a chain whose disordered termini or loops are missing from the file looks more compact than the protein is, and a chain of a complex is described alone.

Secondary structure from Cα geometry #

TM-align's assignment (Zhang & Skolnick 2005) reads the five Cα atoms i−2 to i+2 around each residue and their six distances d13, d14, d15, d24, d25 and d35 (d13 between the first and the third of the five, and so on):

StateRule
Hd13, d24, d35 within 2.1 Å of 5.45 Å; d14, d25 within 2.1 Å of 5.18 Å; d15 within 2.1 Å of 6.37 Å
Ed13, d24, d35 within 1.42 Å of 6.1 Å; d14, d25 within 1.42 Å of 10.4 Å; d15 within 1.42 Å of 13 Å
Tnot H or E, and d15 below 8 Å
Ceverything else, and the first two and last two residues of the chain

The four fractions add up to 1. helix_segments counts the runs of 3 or more H and strand_segments the runs of 2 or more E.

Worked example. Lysozyme: 35.7% H in 6 helices, 7.8% E in 3 strands, 14.7% T and 41.9% C. DSSP's three-state reduction of the same chain gives 41.9% helix and 10.9% strand (Structure analysis). The rule needs nothing but Cα atoms, so it reads every chain the same way, including chains whose files hold only Cα atoms.

Contacts and contact order #

Two residues are in contact when their Cα atoms lie less than 8 Å apart and they are 6 or more residues apart in sequence; Δᵢⱼ is that separation, in author residue numbers when these rise along the chain (residues missing from the coordinates then count), in positions otherwise. With N_c contacts:

contacts_per_residue          = N_c / N
medium_range_contact_fraction = (contacts with 12 ≤ Δ ≤ 23) / N_c
long_range_contact_fraction   = (contacts with Δ ≥ 24) / N_c
absolute_contact_order        = (1 / N_c) Σ Δᵢⱼ
relative_contact_order        = absolute_contact_order / span
span                          = last residue number − first residue number + 1

The span is N when positions are used.

Worked example. Lysozyme has 219 contacts, 1.70 per residue: 28.3% at medium range and 42.9% at long range; their mean separation is 35.4 residues, 0.274 of its 129-residue span. 1DIX: 1.80 contacts per residue, 75.7% at long range, a mean separation of 59.1 residues (0.284). 1DIX, a quarter of whose residues are strand, has the larger long-range share; lysozyme, with 8% strand, the smaller.

Contact order says how far apart in sequence the residues in contact lie. Plaxco, Simons and Baker related the relative contact order of small single-domain proteins to how fast they fold; Ivankov et al. proposed the absolute contact order to take their size into account. GL1X's values use Cα contacts, so they are on their own scale (see the notes below).

Chain breaks, B-factors and confidence #

chain_breaks counts consecutive Cα atoms more than 4.3 Å apart, gaps where residues are missing from the coordinates. mean_b and std_b are the mean and the standard deviation (over N) of the Cα B-factors; in a predicted model the B-factor column holds pLDDT, and low_confidence_fraction is the share of residues with pLDDT below 70, the AlphaFold DB's bands of low confidence; it is 0 for experimental structures. Lysozyme: mean B 17.58 Ų, SD 3.58 Ų, no break. Read as a predicted model, the same file would have every residue below 70: the confidence features mean something only together with predicted.

GSA composition #

Each residue takes one of the 20 states of GSA, the GL1X structural alphabet, from the conformation of its Cα trace and the place of its closest non-local neighbour (Structures). The twenty gsa_ fractions add up to 1, and gsa_entropy_bits is their Shannon entropy, at most log₂ 20 ≈ 4.32 bits. Lysozyme: 4.165 bits, its most frequent state s (0.124). The stored GSA string is used when its length matches the chain's; otherwise it is computed from the coordinates. The composition describes local backbone conformation and packing in twenty numbers, finer than four secondary-structure states.

Notes on the structure features #

  • Sequence separation. Contacts and contact order measure separation in residue numbers when the author numbering increases along the chain, so residues missing from the coordinates still count; otherwise in positions along the chain. The original contact order uses heavy atoms within 6 Å; GL1X keeps CA atoms only and uses the CASP definition of a contact (CA–CA below 8 Å, separation 6 or more), so its values are on their own scale: compare them with each other, not with published heavy-atom values.
  • Secondary structure. TM-align's assignment (make_sec) looks at the distances between the five CA atoms around a residue and calls it H or E when they match an ideal helix or strand within a tolerance; the two residues at each end of an element therefore come out as T or C. Fractions are lower than DSSP's for the same chain; they are consistent across all chains, which is what a model needs. The per-residue string is part of the record's features (secondary) and drawn as a track on the card.
  • Confidence. mean_b, std_b and low_confidence_fraction mean pLDDT only when predicted is 1; for experimental structures they are B-factors in Ų. Give a model predicted alongside them.
  • Which chains. A record gets one entry per distinct protein chain, its identical copies listed with it (chains). Nucleic-acid chains, and protein chains with fewer than 5 residues with coordinates, are listed under skipped with the reason.
  • Insertion codes. Numbers with insertion codes (52, 52A) do not rise, so a chain that has them counts sequence separations in positions.
  • Windows across gaps. TM-align's five-residue windows are not stopped by chain breaks, so the state of a residue next to a gap is read from Cα atoms that are not consecutive in the protein.

Plain-language notes #

Every feature entry comes with notes that read the main values the way the literature does, for people and for agents:

  • Instability index below 40: "classified stable in vitro"; 40 or more: "classified unstable" (Guruprasad et al. 1990).
  • GRAVY above 0: hydrophobic on average; below 0: hydrophilic.
  • Net charge at pH 7 above +0.5: basic; below −0.5: acidic; otherwise near neutral. No Trp, Tyr or Cys: absorbance at 280 nm cannot measure the protein's concentration.
  • CpG islands: CpG observed/expected above 0.6 with GC above 50% over 200 bases or more meets the Gardiner-Garden & Frommer criteria.
  • Compactness: Rg up to 1.1 times that of a compact chain reads as compact, up to 1.4 as somewhat extended, beyond that as extended or made of several domains.
  • Predicted models: mean pLDDT and the share of residues below 70.

The notes also give the size and mass of every sequence, the aliphatic index (a higher value suggests a more thermostable protein, after Ikai 1980), the share SEG masks when there is one, the number of letters outside the standard alphabet, the GC content and skews and the basic melting temperature of nucleic acids (salt and strand concentration not considered), TM-align's helix and strand shares of a chain with their segment counts, its contacts per residue, long-range share and relative contact order, the mean B-factor of an experimental structure and the number of chain breaks when there are any. Lysozyme's notes read:

129 residues, 14,313.1 Da (14.3 kDa) average mass
Theoretical pI 9.32; net charge +7.8 at pH 7 (basic)
Extinction at 280 nm: 37,970 M⁻¹cm⁻¹ with every cysteine pair a cystine, 37,470 reduced; A280 of 1 mg/mL ≈ 2.618
Instability index 16.09: classified stable in vitro (below 40)
GRAVY -0.472: hydrophilic on average; aliphatic index 65.1 (higher suggests more thermostable)

Using the features in a model #

Exact relations. Some features follow from others, to rounding. A column that follows from others adds no information; leaving it out makes a model smaller and its feature importances easier to read.

RelationSet
charge_density_ph7 = net_charge_ph7 / lengthprotein
entropy_normalized = entropy_bits / log₂ 20protein
aromaticity = aa_F + aa_W + aa_Yprotein
frac_charged = frac_basic + frac_acidicprotein
frac_nonpolar + frac_polar = 1 when the sequence holds no B, J, X, U or Oprotein
the twenty aa_ + ambiguous_fraction = 1protein
absorbance_280_1mgml = extinction_280_reduced / molecular_weightprotein
frac_A + frac_C + frac_G + frac_T + frac_ambiguous = 1; the sixteen di_ add up to 1nucleotide
helix_fraction + strand_fraction + turn_fraction + coil_fraction = 1structure
the twenty gsa_ add up to 1structure
relative_contact_order = absolute_contact_order / spanstructure

Near relations. molecular_weight follows length closely (see Size and mass), and extinction_280_reduced is 5500 × aa_W × length + 1490 × aa_Y × length.

Meaning that depends on another column. mean_b, std_b and low_confidence_fraction read as pLDDT only with predicted = 1; give the three with it, or train on one kind of structure.

Versions. A model trained on one version of a set takes the same features in the same order from any record. Keep the version string (gl1x-protein-1, …) with the model: it changes whenever features are added, changed or reordered.

Scales. The features span many orders of magnitude, from fractions below 1 to masses in the tens of thousands. GL1F models take integers made with one scale for every input (GL1F inputs), so choose the scale for the smallest differences that matter and check that the largest values still fit.

Reading the values through the API #

curl -s https://YOUR-DOMAIN/api/bio/features                                   # this catalog, as JSON
curl -s https://YOUR-DOMAIN/api/bio/records/0xd58b01f6c18086e5202cdc5d7ad3e41790360102/1/features
curl -s https://YOUR-DOMAIN/api/bio/features -H 'Content-Type: application/json' \
  -d '{"sequence": ">lysozyme\nKVFGRCELAAAMKRHGLDNYRGYSLGNWVCAAKFESNFNTQATNRNTDGSTDYGILQINSRWWCNDGRTPGSRNLCNIPCSALLSSDITASVNCAKKIVSDGNGMNAWVAWRNRCKGTDVQAWIRGCRL"}'

A record's answer holds:

  • record: contract, token id, collection, title, PDB ID, accession;
  • sequences: one entry per distinct sequence of the record (identical chains once: chains and sequence_keys list them), each with set, values in the set's order, notes, sha256 and the sequence itself;
  • structure: the structure file's status and whether it is a predicted model, with one entry per distinct protein chain (chains lists identical copies): values, notes, the per-residue secondary string and UniProt accessions; nucleic acid chains are listed under skipped;
  • feature_sets: the descriptions of the sets used (this page as data);
  • gl1f: how a vector becomes the inputs of a GL1F model (next section).

POST /api/bio/features takes a sequence (plain or FASTA) and a sequence_type: protein, nucleotide or auto, the default (dna, rna, na and nucleic mean nucleotide). With auto, a sequence is read as nucleotides when nine tenths or more of its letters are A, C, G, T, U or N, as a protein otherwise. The answer gives the type it used, the length, the number of ambiguous letters, the set, the values in the set's order, the same values by name (features) and the notes.

GL1F inputs #

GL1F models on GenesisL1 take integer inputs: each feature value x becomes q = clamp(round(x · scale_q)) in the int32 range, with JavaScript's Math.round (halves toward +∞), and the inputs are packed as one little-endian int32 each, in the model's feature order. The card's feature table shows each value's integer for the scale you choose (1000 by default: three decimals survive and values up to about 2.1 million fit) and copies the features text (one name per line, as a GL1F model NFT lists its inputs) and the packed bytes. A value beyond the int32 range at the chosen scale is clamped, and the card and the GL1F dataset export count such values; choose a smaller scale for large values such as masses and extinction coefficients if your model needs them exact. See GL1F models and datasets.

Worked example. For lysozyme at the default scale of 1000, p_isoelectric_point 9.3238 becomes 9324 (bytes 6c 24 00 00), p_gravy −0.4721 becomes −472 (bytes 28 fe ff ff) and p_molecular_weight 14,313.14 becomes 14,313,140, well inside the int32 range (−2,147,483,648 to 2,147,483,647). Halves go up: 2.5 becomes 3 and −2.5 becomes −2. One scale serves every input: at 1000, a step of 0.001 survives in each of them, whether it is a fraction, an isoelectric point or a mass.

References #

  • Bjellqvist B, Hughes GJ, Pasquali C, et al. (1993) The focusing positions of polypeptides in immobilized pH gradients can be predicted from their amino acid sequences. Electrophoresis 14:1023–1031.
  • Bjellqvist B, Basse B, Olsen E, Celis JE (1994) Reference points for comparisons of two-dimensional maps of proteins from different human cell types defined in a pH scale where isoelectric points correlate with polypeptide compositions. Electrophoresis 15:529–539.
  • Cock PJA, Antao T, Chang JT, et al. (2009) Biopython: freely available Python tools for computational molecular biology and bioinformatics. Bioinformatics 25:1422–1423.
  • Gardiner-Garden M, Frommer M (1987) CpG islands in vertebrate genomes. J Mol Biol 196:261–282.
  • Gasteiger E, Hoogland C, Gattiker A, et al. (2005) Protein identification and analysis tools on the ExPASy server. In: Walker JM (ed) The Proteomics Protocols Handbook. Humana Press, 571–607.
  • Guruprasad K, Reddy BVB, Pandit MW (1990) Correlation between stability of a protein and its dipeptide composition: a novel approach for predicting in vivo stability of a protein from its primary sequence. Protein Eng 4:155–161.
  • Ikai A (1980) Thermostability and aliphatic index of globular proteins. J Biochem 88:1895–1898.
  • Ivankov DN, Garbuzynskiy SO, Alm E, et al. (2003) Contact order revisited: influence of protein size on the folding rate. Protein Sci 12:2057–2062.
  • Kyte J, Doolittle RF (1982) A simple method for displaying the hydropathic character of a protein. J Mol Biol 157:105–132.
  • Lobry JR (1996) Asymmetric substitution patterns in the two DNA strands of bacteria. Mol Biol Evol 13:660–665.
  • Lobry JR, Gautier C (1994) Hydrophobicity, expressivity and aromaticity are the major trends of amino-acid usage in 999 Escherichia coli chromosome-encoded genes. Nucleic Acids Res 22:3174–3180.
  • Marmur J, Doty P (1962) Determination of the base composition of deoxyribonucleic acid from its thermal denaturation temperature. J Mol Biol 5:109–118.
  • Pace CN, Vajdos F, Fee L, Grimsley G, Gray T (1995) How to measure and predict the molar absorption coefficient of a protein. Protein Sci 4:2411–2423.
  • Plaxco KW, Simons KT, Baker D (1998) Contact order, transition state placement and the refolding rates of single domain proteins. J Mol Biol 277:985–994.
  • Rice P, Longden I, Bleasby A (2000) EMBOSS: the European Molecular Biology Open Software Suite. Trends Genet 16:276–277.
  • Shannon CE (1948) A mathematical theory of communication. Bell Syst Tech J 27:379–423.
  • Skolnick J, Kolinski A, Ortiz AR (1997) MONSSTER: a method for folding globular proteins with a small number of distance restraints. J Mol Biol 265:217–241.
  • Theodorou DN, Suter UW (1985) Shape of unperturbed linear polymers: polypropylene. Macromolecules 18:1206–1214.
  • Wallace RB, Shaffer J, Murphy RF, et al. (1979) Hybridization of synthetic oligodeoxyribonucleotides to φX174 DNA: the effect of single base pair mismatch. Nucleic Acids Res 6:3543–3557.
  • Wootton JC, Federhen S (1993) Statistics of local complexity in amino acid sequences and sequence databases. Comput Chem 17:149–163.
  • Zhang Y, Skolnick J (2005) TM-align: a protein structure alignment algorithm based on the TM-score. Nucleic Acids Res 33:2302–2309.

GL1X is a live explorer of the GenesisL1 blockchain. Turn on JavaScript for search, charts and interactive views.