Adapters

Adapters download or generate raw biomolecular data and produce the initial Batch stream, Split, and Assets objects consumed by datasets. Summaries below are taken from each class docstring.

Download protein structures from the AlphaFold Protein Structure Database.

class bioverse.adapters.alpha_fold.AlphaFoldAdapter[source]

Bases: Adapter

Download protein structures from the AlphaFold Protein Structure Database.

classmethod download(name='swissprot_pdb', version='v4')[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Download AlphaFold structures with homology and CATH-domain test exclusions.

class bioverse.adapters.alpha_fold_exclusion.AlphaFoldExclusionAdapter[source]

Bases: Adapter

Download AlphaFold structures with homology and CATH-domain test exclusions.

classmethod download(name: str = 'swissprot_pdb', version: str = 'v4', test_size: float | int = 1000, val_size: float | int = 1000, split_seed: int = 0, limit: int | None = None)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Download protein-ligand complexes from the ARES docking benchmark.

class bioverse.adapters.ares.AresAdapter[source]

Bases: Adapter

Download protein-ligand complexes from the ARES docking benchmark.

classmethod download()[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Download BioLiP complexes.

class bioverse.adapters.biolip.BioLipAdapter[source]

Bases: Adapter

Download BioLiP complexes.

ligand="small_molecule" (default) keeps protein–ligand pairs with experimental Kd. ligand="peptide" keeps unlabeled protein–peptide complexes for masked residue prediction.

classmethod download(limit: int | None = None, ligand: str = 'small_molecule', max_length: int | None = None)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Quantitative MMP-2 / MMP-9 hexamer kcat/KM measurements from Cieplak et al.

class bioverse.adapters.cieplak.CieplakAdapter[source]

Bases: Adapter

Quantitative MMP-2 / MMP-9 hexamer kcat/KM measurements from Cieplak et al.

classmethod download(cache_dir: Path | str | None = None)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Merge ProteinShake EC structures with M-CSA catalytic-site test structures.

class bioverse.adapters.ecacsa.EcacsaAdapter[source]

Bases: Adapter

Merge ProteinShake EC structures with M-CSA catalytic-site test structures.

classmethod download(val_size: int = 1000, seed: int | None = None)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Huber et al. TEV DMS as protease structure + substrate-window pairs.

class bioverse.adapters.huber_compatibility.HuberCompatibilityAdapter[source]

Bases: Adapter

Huber et al. TEV DMS as protease structure + substrate-window pairs.

Huber 2025 is evaluation-only: every row is assigned to the test partition. The protease is the catalytic-domain sequence used in the screen, with a PDB TEV fold when it aligns and Boltz-2 as fallback.

classmethod download(model: str = 'boltz2', use_msa_server: bool = True, cache_dir: Path | str | None = None, predict_if_needed: bool = True)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

TEV protease–substrate single-mutant combinatorial screen from Huber et al.

class bioverse.adapters.huber_protease.HuberProteaseAdapter[source]

Bases: Adapter

TEV protease–substrate single-mutant combinatorial screen from Huber et al.

classmethod download(model: str = 'boltz2', use_msa_server: bool = True, cache_dir: Path | str | None = None)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Observed MEROPS cleavage windows paired with PDB/AlphaFold protease folds.

class bioverse.adapters.merops.MeropsAdapter[source]

Bases: Adapter

Observed MEROPS cleavage windows paired with PDB/AlphaFold protease folds.

Each scene is one peptidase structure. Observed P4–P4′ windows (padded to P6–P4′) are stored as molecule_mutation_* rows so MutationSampler reuses the structure. Huber TEV (C04.004) and Cieplak MMPs (M10.003, M10.004) are held out. The default random_mutation_split assigns windows of each protease independently so train and val share enzymes.

classmethod download(source: str = 'cleavage', exclude_codes: list[str] | tuple[str, ...] | None = None, max_length: int = 400, min_canonical: int = 4, max_windows: int | None = 64, max_proteases: int | None = None, seed: int = 0, train_size: float = 0.8, val_size: float = 0.1, min_windows: int = 1)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Generate synthetic ship-motif classification point clouds.

class bioverse.adapters.picasso_ship.PicassoShipAdapter[source]

Bases: Adapter

Generate synthetic ship-motif classification point clouds.

Each release is a balanced binary dataset: positives contain the canonical ship motif; negatives apply one selected perturbation (scramble, chirality, picasso, or tilt). Optional modifiers add Gaussian clutter (n_noise) and global rotation (rotate). When rotate is true, train and val scenes stay upright and only the test partition is randomly rotated. Tilt negatives always rotate the mast 45° left. Picasso negatives attach the mast only to a bottom hull node (flipped away from the body) and are re-centered before noise is sampled.

Parameters:
  • n_samples_per_class (int) – Number of positive and negative scenes (total 2 * n_samples_per_class).

  • negative_type (str) – Perturbation applied to negative samples.

  • n_noise (int) – Number of additional noise nodes (modifier M1).

  • noise_radius (float) – Disk radius for sampling noise node positions.

  • knn_k (int) – Number of nearest neighbors for geometric graph construction on noise and scrambled motif nodes.

  • min_node_distance (float) – Minimum Euclidean distance between sampled nodes (noise, and scrambled motif nodes). Existing motif geometry is never moved.

  • min_rotation_deg (float) – Global rotation range in degrees when rotate is enabled (test split).

  • max_rotation_deg (float) – Global rotation range in degrees when rotate is enabled (test split).

  • min_tilt_deg (float) – Ignored. Tilt negatives always use a 45° left mast rotation.

  • max_tilt_deg (float) – Ignored. Tilt negatives always use a 45° left mast rotation.

  • min_tilt_neg_deg (float) – Ignored. Tilt negatives always use a 45° left mast rotation.

  • max_tilt_neg_deg (float) – Ignored. Tilt negatives always use a 45° left mast rotation.

  • rotate (bool) – If true, apply a random global rotation to test scenes only.

  • seed (int) – Random seed for reproducibility.

classmethod download(n_samples_per_class: int = 1000, negative_type: str = 'scramble', n_noise: int = 0, noise_radius: float = 3.0, knn_k: int = 2, min_node_distance: float = 0.5, min_rotation_deg: float = 30.0, max_rotation_deg: float = 330.0, min_tilt_deg: float = 20.0, max_tilt_deg: float = 70.0, min_tilt_neg_deg: float = -70.0, max_tilt_neg_deg: float = -20.0, rotate: bool = False, seed: int = 0) → tuple[Iterator, Split, Assets][source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Download deep mutational scanning benchmarks from ProteinGym.

class bioverse.adapters.protein_gym.ProteinGymAdapter[source]

Bases: Adapter

Download deep mutational scanning benchmarks from ProteinGym.

classmethod download(assays: list[str] | None = None, dms_types: list[str] | None = None, exclude_substrings: list[str] | None = None, center: str = 'none', scale: str = 'none')[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Download sequences and structures for the ProteinInvBench inverse folding suite.

class bioverse.adapters.protein_inv_bench.ProteinInvBenchAdapter[source]

Bases: Adapter

Download sequences and structures for the ProteinInvBench inverse folding suite.

classmethod download(sort=True)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Download biomolecular structure datasets from ProteinShake.

class bioverse.adapters.proteinshake.ProteinShakeAdapter[source]

Bases: Adapter

Download biomolecular structure datasets from ProteinShake.

classmethod download(dataset: str)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Download small-molecule properties from the QM9 (Quantum Machines) dataset.

class bioverse.adapters.quantum_machines.QuantumMachinesAdapter[source]

Bases: Adapter

Download small-molecule properties from the QM9 (Quantum Machines) dataset.

classmethod download()[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Download revised MD17 (rMD17) molecular dynamics trajectories.

class bioverse.adapters.revised_molecular_dynamics.RevisedMolecularDynamicsAdapter[source]

Bases: Adapter

Download revised MD17 (rMD17) molecular dynamics trajectories.

classmethod download(name)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

SARS-CoV-2 RBD DMS in the Wuhan-Hu-1 background from Starr et al.

class bioverse.adapters.starr_rbd.StarrRbdAdapter[source]

Bases: Adapter

SARS-CoV-2 RBD DMS in the Wuhan-Hu-1 background from Starr et al.

classmethod download(model: str = 'boltz2', use_msa_server: bool = True, cache_dir: Path | str | None = None)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Synthetic protease × mutation × substrate Δactivity matrices.

class bioverse.adapters.synthetic_dms.SyntheticDmsAdapter[source]

Bases: Adapter

Synthetic protease × mutation × substrate Δactivity matrices.

Formulations (formulation):

  • mutation — ProteinGym mutation prior only

  • mutation_pocket — mutation × BioLiP/cleft pocket weight

  • mutation_pocket_substrate — also MEROPS PWM substrate specificity

Huber TEV and Cieplak MMPs are excluded from proteases, windows, and the ProteinGym prior. Generation is deterministic given seed.

classmethod download(formulation: str = 'mutation_pocket_substrate', seed: int = 0, max_length: int = 400, max_windows: int | None = 64, max_proteases: int | None = None, min_windows: int = 2, n_pocket: int = 28, n_offpocket: int = 12, n_cognate: int = 8, n_decoy: int = 4, pocket_floor: float = 0.15, substrate_gain: float = 0.75, noise_scale: float = 0.15, train_size: float = 0.8, val_size: float = 0.1, pocket_source: str = 'biolip', pocket_teacher: str = '')[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

D44.1 anti-lysozyme Fv deep mutational scan from Warszawski et al.

class bioverse.adapters.warszawski_d44.WarszawskiD44Adapter[source]

Bases: Adapter

D44.1 anti-lysozyme Fv deep mutational scan from Warszawski et al.

classmethod download(model: str = 'boltz2', use_msa_server: bool = True, cache_dir: Path | str | None = None)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.

Download protein–protein complexes from the Weng et al. docking benchmark.

class bioverse.adapters.weng_docking.WengDockingAdapter[source]

Bases: Adapter

Download protein–protein complexes from the Weng et al. docking benchmark.

classmethod download(version: str = '5.5', require_affinity: bool = False)[source]

Download raw data and return batches, split, and assets.

Returns:

  • batches – Iterator yielding Batch shards.

  • split – Train/validation/test partition assignments.

  • assets – Auxiliary lookup tables shared across batches.