Bioinformatics onchain
GenesisL1 carries scientific data: hundreds of thousands of protein and nucleic acid structures published as MolNFT records, some entirely in contract state, some anchored on chain with their content on IPFS. GL1X treats them as a scientific database. It indexes every sequence, structure and ligand, runs the standard methods of sequence and structure bioinformatics over them in its own code (no external service, no Python, no Node.js) — full-atom structure analysis, pockets, proteomics, alignments, coevolution, profile HMMs and variant effects among them, each checked against the reference program — describes every molecule with documented features, turns any search into a machine-learning dataset, and lets anyone prove that what was searched is what the chain holds. People use it from the explorer's Bioinformatics onchain pages; programs from the API; AI agents through MCP.
The machinery #
| Component | What it does | Where | How it was validated |
|---|---|---|---|
| MolNFT indexer | discovers collections, reads every record (chain, IPFS), stores every chain's sequence | internal/bio, internal/nft | parity tests against the original explorer's index; chain-splitting vectors shared with the browser |
| Molecular search | identifiers (PDB, UniProt, NFT id), titles (full text), sequences, motifs | internal/bio | — |
| BLAST | blastp, blastn, blastx, tblastn, tblastx over every sequence, in memory | internal/blast, internal/bio/blast*.go | identical to NCBI BLAST+ 2.12.0 on 78 configurations |
| Motif scan | exact PROSITE-style patterns over every sequence, and over the residues with coordinates of every structure chain (never across a chain break) | internal/blast/motif.go, internal/bio/structmotif.go | against a plain reading on 200 random patterns × 1,500 sequences, both kinds; the page's finder against the engine on 3,000 random patterns |
| Structure readers | PDB, PDBx/mmCIF, BinaryCIF | internal/fold | fuzzing, the same structure in three formats gives the same chains |
| TM-align | pairwise structure alignment | internal/fold/tmalign.go | identical to TMalign 20190822 on 2,260 comparisons |
| GSA | the GL1X structural alphabet: 20 states from CA atoms | internal/fold/gsa.go, gsatrain | SCOP40, held-out folds |
| Structure search | GSA words → local alignment with E-values → TM-score → TM-align | internal/fold/search.go, structsearch.go | 101% / 92% / 59% of TM-align's family / superfamily / fold sensitivity, ~3 s for 123 M residues |
| Comparisons | the same entry across collections; experimental against predicted | internal/bio/structures.go | — |
| Ligand index | every non-polymer group of every structure (cofactors, drugs, ions, sugars, additives) with its occupancy and the polymer residues within 4.5 Å; a catalog of chemical components searched by id, name, formula, class, element, weight and protein | internal/fold/ligands.go, internal/bio/ligands.go | the contact grid against a comparison of every pair of atoms; a structure as PDB and as mmCIF gives the same ligands, classes and contacts |
| Full-atom analysis | DSSP 8-state secondary structure and hydrogen bonds, Shrake–Rupley accessibility, half-sphere exposure, side-chain centroids and virtual Cβ, contact maps, base pairs with dot-bracket and pseudoknots, chain interfaces with buried surface, hydrogen bonds and salt bridges | internal/fold (dssp.go, sasa.go, analysis.go), internal/bio/analysis*.go | mkdssp 4.2.2: secondary structure identical for 99.97% of 27,237 residues, accessibility for 99.26%; FreeSASA 2.1.2: buried surfaces within 0.1% |
| Pockets | cavities on a 1 Å grid with volume, buriedness, apolar share, hydropathy, charge, druggability, the ligands inside | internal/fold/pockets.go | ligand-bound structures: the drug's pocket first in 11 of 14, in the top three in 12 |
| SS patterns, 3D templates | regular expressions over DSSP states with strand geometry; residues in a 3D arrangement in any sequence order, metal sites | internal/bio/sspattern.go, templates.go | trypsin's triad and RAG1's zinc sites found in their structures (RMSD < 0.1 Å), also from residues of the indexed chain; the riboswitch's paired stretches |
| pH environments | every ionizable group's pKa from the structure (model pKa, desolvation, hydrogen bonds, screened charges, coupled titration), charges and isoelectric point in each environment, stability over pH, groups that switch charge; membrane placement with a pH on each side | internal/phenv, internal/bio/ph.go | PROPKA 3.5.1 on 40 held-out structures: shifts within 0.69 pK units RMS over 2,505 groups (a program comparison, not experiment); coupled titration against exact enumeration; GltPh's membrane against OPM |
| Proteomics | digestion by 24 enzymes, proteotypic peptides across the archive, masses, fragments, isotope patterns, peptide–spectrum matching with target–decoy FDR | internal/proteo, internal/bio/peptides.go, psmsearch.go | pyteomics 5.0.1: masses to 10⁻⁸ Da, 2,320 digests identical; IsoSpecPy 2.5.0: patterns within 10⁻⁹ |
| Modifications, crosslinks, HDX, gel | observed modifications and motif sites; Cα and solvent-accessible surface distances of crosslinks; HDX and LiP values on residues; pI and mass | internal/bio/ptm.go, xlink.go, gel.go, internal/fold/sasd.go | SSBOND and LINK records reproduced; surface paths against analytic geometry |
| Alignment and evolution | progressive multiple alignment with refinement, Jensen–Shannon conservation, neighbour-joining trees, mean-field DCA, CD-HIT clustering | internal/msa | 8 curated references: MUSCLE 5.1's accuracy (SP 0.900 vs 0.901), above MAFFT and Clustal Omega; DCA equals dca.m to 10⁻⁶; trees equal Biopython |
| Profile HMM search | hmmsearch's pipeline: MSV, bias, Viterbi and Forward filters, domain definition, null2 | internal/hmm | hmmsearch 3.4 on 22,338 sequences × 8 models: the same hits at E ≤ 0.01 |
| Sequence annotation | COILS coiled coils, FoldIndex disorder, Kyte–Doolittle transmembrane helices, SEG low complexity | internal/seqann | ncoils within 0.0006 on 26,128 residues |
| Annotation transfer, variants | EC numbers, ligand sites and pockets from structural neighbours; variants on structures with 61 mut_ features, substitution scans, GL1F model predictions | internal/bio/transfer.go, variants.go | — |
| Features | protein, nucleotide and structure feature sets | internal/molfeat | Biopython 1.88 (ProtParam), an independent NumPy computation |
| Datasets | rows from hits or records with features, as JSON, CSV, TSV, GL1F inputs | internal/bio/dataset.go | round trip of GL1F quantization and packing |
| Proofs | sequences derived again from the chain at a block and from CID-verified IPFS | internal/bio/proof.go, internal/nft | real records, rebuilt UnixFS layouts against the reference importer |
| PubMed search | PubMed through NCBI's E-utilities within NCBI's rate for the whole site; up to 2,000 records clustered into topics in the browser by Lingo, STC or bisecting k-means (Broccoli); structure titles digested into the search that finds their literature | internal/pubmed, internal/api/suite_pubmed.go, the interface's broccoli/ | records read from E-utilities answers in PubMed's XML format (articles, books, structured abstracts, MeSH, HTML entities) and checked field by field; title digests checked against PubMed's counts; Broccoli's stemmers identical to the Snowball reference vocabularies, Lingo's SVD exact to a relative residual of 10⁻⁸ |
Workflows #
1. Find and read a molecule #
Search by PDB ID (1AKI), UniProt accession (P00698), NFT id
(nft:1234), title words (hen egg-white lysozyme), a sequence (pasted,
searched with BLAST) or a motif (QEEY, motif:[QR]EEY), on /bio/search,
in the header's search box, through GET /api/bio/search or molecule_search.
A record page shows its metadata, structure (Mol*), every sequence and its
provenance, and its structure analysis in brief (chains, ligands, pockets,
interfaces, modifications) with a link to the research workbench.
→ MolNFT
2. A protein and its structures #
/bio/protein/{accession} gathers every record of a UniProt protein: the
experimental entries whose chains the structure files map to it (DBREF,
struct_ref; since 3.4.0 only chains whose coordinates hold the part mapped
to it, so a fusion partner a short tag maps is left out) and the predicted
models named after it, experimental first.
Each shows the chains that map, the ligands and pockets of those chains
(not of other proteins of a complex) and its best druggability; the page
lists the names and EC numbers the files give, the ligands of the protein
by the records that hold them, and experimental chains compared with
predicted models (TM-score). The chosen structure is drawn with the
protein's chains in colour. Record pages link to the protein pages of their
chains; GET /api/bio/proteins/{accession} and protein_structures give
the same.
3. Sequence homology #
BLAST a sequence against every MolNFT sequence (/bio/blast, the card's
Align here and BLAST, POST /api/bio/blast, blast_search): hits with
E-values, bit scores, identities, coverage and alignments, a graphic summary,
a query-anchored multiple alignment, downloads, and a proof for every hit.
Identical chains of a structure are one hit. → BLAST
4. Motifs and short peptides #
Scan every sequence for a short motif or a pattern (motif:C-x(2)-C-x(12)-H-x(3)-H):
every occurrence with its position and context, the variants across all
sequences, counts per collection. → BLAST, motif search
The same patterns find the 3D structures that hold a motif (Find by
motif on /bio/structure, GET /api/bio/structure/motif, structure_motif):
every chain's residues with coordinates, never across a chain break, each
occurrence with its author residue numbers and shown in Mol*. On a record's
page, the find bar over its sequences marks a fragment or a motif, brings
each occurrence into view and shows it in the structure, no Ctrl+F needed.
→ Structures, motif search
5. Compare two structures #
Superpose any chain onto any other, or onto a structure file of your own, with TM-align: TM-scores, RMSD, the structure-based alignment with GSA rows, the distances of every pair, the superposition in Mol*. → Structures
6. Find similar structures #
Search every indexed protein chain from a record's chain or your own file: hits ranked by TM-score with E-values, in seconds. From any MolNFT card: Search similar structures, or Similar on one chain. → Structures
7. Experiment against prediction #
For every UniProt accession present both as an experimental structure and as a predicted model, GL1X has already compared them with TM-align (TM-scores, RMSD, coverage, confidence of the aligned residues), and every PDB entry held by both a MolNFT v1 and a v2 record has been checked for identical coordinates. → Comparisons
8. Ligands and their binding sites #
Find what binds a protein, or where a cofactor or a drug binds: the ligand
index holds every non-polymer group of every structure with the residues
within 4.5 Å of it. Search the components by id (HEM), name (heme) or
formula (C34 H32 Fe N4 O4), by class (ligands, metals, ions, sugars,
additives), element and weight, or by protein (a UniProt accession: what its
structures hold), on /bio/ligands, with ligand:HEM in the header, through
GET /api/bio/ligands or ligand_search. A component's page lists every
binding site with its residues, the residues its sites are made of and the
components found with it; any site opens in Mol* with the ligand, its site
and their interactions. On a record's page, the Ligands panel under the 3D
view lists its ligands and shows each in the structure.
→ Ligand index
9. Analyse a structure #
Open any record in the research workbench (/bio/workbench, or Open in
workbench from any hit): secondary structure, accessibility, half-sphere
exposure, sites and base pairs painted on the structure, a contact map, and
every tool below under it, the structure across the page.
→ Structure analysis
10. Pockets and druggability #
Search the pockets of every structure by volume, buriedness, hydrophobicity,
druggability and contents (/bio/pockets, GET /api/bio/pockets,
pocket_search) — empty druggable pockets of predicted models, pockets
lined by a cysteine — each drawn as a volume with its lining residues.
Pockets of structural neighbours carried onto a chain show where a binding
site should be in an apo structure. → Pockets
11. Interfaces, folds and sites #
Interfaces by buried surface (/bio/interfaces), secondary-structure
patterns such as β-hairpins or helix–turn–helix motifs (/bio/ss-patterns),
residues in a 3D arrangement — catalytic triads, zinc sites, a site taken
from a structure — in any sequence order (/bio/templates).
→ Structure analysis
12. A protein at the pH of its environments #
Put a structure at the pH of the places its molecule lives (the fasting
stomach, the small intestine and the acid microclimate over its brush
border, the ileum and colon, blood, the cytosol, endosomes and lysosomes)
or at any pH, and compare it with the pH it was crystallized at. Every
ionizable group gets a pKa estimated from the structure, with the burial,
hydrogen bonds and charges that shift it; the answer gives each group's
charge in each environment, the net charge and isoelectric point, the
stability gained or lost, and the groups that switch charge. For a membrane
protein, a membrane is placed and each side gets its own pH: the outer face
at the intestinal lumen's pH, the inner at the cytosol's. In the workbench
(pH environments), through GET /api/bio/records/{contract}/{tokenId}/ph
and ph_environment. → pH environments
13. Proteomics #
Digest a protein and keep the peptides unique to it across the archive,
compute masses, fragments and isotope patterns, identify MGF spectra with
target–decoy FDR, check crosslinks against a structure, paint HDX or LiP
values on it, run a virtual 2D gel (/bio/proteomics, the workbench).
→ Proteomics
14. Families, coevolution and variants #
Align a chain's homologs and paint their conservation on the structure,
find coupled residues with DCA and compare them with contacts, build
non-redundant sets, search the archive with a profile HMM, annotate
disorder and coiled coils (/bio/families); scan every substitution of a
stretch with family log-odds or a GL1F model's ΔΔG in the workbench.
→ Families, evolution and variants
15. Characterize a molecule #
The card's Molecular analysis (and molecule_features) gives the
ProtParam properties of every sequence (mass, pI, charge, extinction,
instability, aliphatic index, GRAVY…), its composition and complexity, and
for each protein chain of its structure the size, shape, secondary structure,
contacts, confidence and GSA composition, with notes that read the numbers.
→ Features
16. Build a dataset and a model #
Turn the hits of a BLAST, structure or molecular search, or a list of records
with your labels, into a dataset with the features of every hit (JSON, CSV,
TSV), or into the inputs of a GL1F model (feature names in the model NFT's
format, quantized, packed). The Dataset creation page (/bio/datasets)
offers every source in one place, including records picked by hand or pasted
as a list of identifiers, each with the sequence and chain to describe and
values of your own; every dataset holds all the hits of its search, not only
those a page shows, and can keep one row per cluster of similar sequences
(non-redundant at an identity you choose). Train off chain, publish the model as a GL1F NFT, run it
on GenesisL1 on any record's feature vector.
→ Datasets, GL1F
17. Prove it #
Every sequence that took part in any of the above can be derived again from the chain at a pinned block and from IPFS content checked against its CIDs, with the list of calls to replay on your own node. → Proofs
18. Read the literature #
Every structure the explorer lists links to PubMed twice, by its PDB ID and
by its title, beside its links to the workbench and to its record. A title
rarely finds anything as it stands ("AlphaFold monomer v2.0 prediction for
putative cell agglutination protein PFL3 (Q874R4)" finds nothing), so the
explorer digests it: the method, the resolution, accessions and codes go,
and the search widens a kind of word at a time until PubMed finds records
("putative cell agglutination protein": 160). The PubMed search page
(/bio/pubmed) fetches up to 2,000 records and clusters them into an organic
map of topics that opens into subtopics, with abstracts, MeSH terms and RIS,
BibTeX, CSV and JSON exports; pubmed_search gives agents the records and
their shared MeSH topics, by query or by a structure's title. The clustering
runs in the browser with Broccoli, whose text processing and algorithms
have a page of their own.
→ PubMed search · Broccoli
19. Let an agent do it #
Every step above is an MCP tool: an agent can find a molecule, characterize it, BLAST it, search its structure's neighbours, compare experiment with prediction, list its ligands and their binding sites, analyse its pockets and interfaces, put it at the pH of its environments, digest it, align its family, scan its variants, read its literature in PubMed, build a dataset of the hits, run a GL1F model and prove the sequences, citing records and digests along the way. → MCP
Scientific standards #
- Reference parity where a reference exists. The BLAST engine and the TM-align port reproduce the reference programs' outputs, not approximately but exactly, on documented test sets, and keep those tests in the build. The protein features follow ExPASy ProtParam's constants and are checked against Biopython.
- Held-out evaluation where GL1X trains something. GSA was trained on half of the SCOP40 folds and every number reported for it comes from the other half, which it never saw. The recipe that produced its parameters is part of the source code.
- Deterministic answers. The same request on the same index gives the same bytes: features are rounded, rankings break ties by identifiers, and answers name the engine and parameters that produced them.
- Provenance. Every hit, row and feature names the record and the SHA-256 of the sequence it describes, and the proof endpoint can re-derive it from the chain.
Limits #
GL1X covers the methods above. It does not build profiles iteratively (PSI-BLAST, jackhmmer: profile HMMs are searched as given), align multiple structures or flexibly, predict structures, dock ligands, compute binding affinities or run molecular dynamics; ΔΔG comes from GL1F models trained on measured effects, not from physics. The ligand index records what the structures deposit, not what else might bind; Gene Ontology terms are not in structure files and are not invented. Structure search compares protein chains (nucleic acid chains can be aligned pairwise, not searched). Features are computed from what the records state: a sequence with expression tags or a structure with missing loops is described as it is. pKa values are estimated on the deposited coordinates by an empirical model calibrated against another program; against 365 measured values they are no better overall than leaving each group at its model value (better for strongly shifted groups, worse for histidines), and GL1X does not relax the structure at a new pH or run constant-pH simulations.
Where to go next #
- MolNFT on GenesisL1: the records, the indexer, proofs, the card.
- BLAST engine and motif search.
- Structure alignment, GSA and structure search.
- Ligand index.
- Structure analysis: DSSP, accessibility, interfaces, pockets, patterns, templates.
- pH environments: pKa values, charges and stability at the pH of each environment.
- Proteomics and families, evolution and variants.
- Molecular features reference.
- PubMed search and topic clustering and Broccoli, the library that clusters it.
- Names and identifiers: the identifiers GL1X keys things by and every table it keeps.
- Machine-learning datasets and GL1F models.
- Paper: decentralized bioinformatics over MolNFT records.