Skip to content

pg_bio

Experimental molecular, sequence and bioinformatics SQL primitives.

pg_bio · Experimental molecular, sequence and bioinformatics SQL primitives.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102076pg_biopg_bio0.0.0FUNCRust

PostgreSQL · 13, 14, 15, 16, 17, 18

Relationships
Requiresvector

Usage

Sources:

pg_bio provides experimental Rust SQL primitives for molecular coordinates, sequence comparison, fingerprints and biological data ingestion. Its control uses the Cargo version 0.0.0; this is an early source snapshot.

Core Workflow

CREATE EXTENSION vector;
CREATE EXTENSION pg_bio;
SELECT distance_angstroms(
  create_residue_coord(0, 0, 0, 'A'),
  create_residue_coord(3, 4, 0, 'B')
);
SELECT sequence_alignment_score('ACGT', 'ACGA');

Operational Boundaries

The control requires vector and superuser installation; no preload is specified. Coordinate helpers include create_residue_coord, distance_angstroms and z_order_encode; the latter clamps coordinates to the source-defined range. Other interfaces include sequence alignment, SMILES/fingerprint helpers and UniProt retrieval. Network/file ingestion has server-side effects and must be restricted. Model-named embedding helpers are not evidence of trained-model inference; do not infer clinical, predictive or performance guarantees. PostgreSQL major compatibility and licensing are left unspecified where source evidence is insufficient.

Table reader