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:
AdapterDownload protein structures from the AlphaFold Protein Structure Database.
Download AlphaFold structures with homology and CATH-domain test exclusions.
- class bioverse.adapters.alpha_fold_exclusion.AlphaFoldExclusionAdapter[source]
Bases:
AdapterDownload 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
Batchshards.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:
AdapterDownload protein-ligand complexes from the ARES docking benchmark.
Download BioLiP complexes.
- class bioverse.adapters.biolip.BioLipAdapter[source]
Bases:
AdapterDownload 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
Batchshards.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:
AdapterQuantitative MMP-2 / MMP-9 hexamer kcat/KM measurements from Cieplak et al.
Merge ProteinShake EC structures with M-CSA catalytic-site test structures.
- class bioverse.adapters.ecacsa.EcacsaAdapter[source]
Bases:
AdapterMerge ProteinShake EC structures with M-CSA catalytic-site test structures.
Huber et al. TEV DMS as protease structure + substrate-window pairs.
- class bioverse.adapters.huber_compatibility.HuberCompatibilityAdapter[source]
Bases:
AdapterHuber 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
Batchshards.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:
AdapterTEV 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
Batchshards.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:
AdapterObserved 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 soMutationSamplerreuses the structure. Huber TEV (C04.004) and Cieplak MMPs (M10.003, M10.004) are held out. The defaultrandom_mutation_splitassigns 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
Batchshards.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:
AdapterGenerate 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, ortilt). Optional modifiers add Gaussian clutter (n_noise) and global rotation (rotate). Whenrotateis 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
rotateis enabled (test split).max_rotation_deg (float) – Global rotation range in degrees when
rotateis 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
Batchshards.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:
AdapterDownload 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
Batchshards.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:
AdapterDownload sequences and structures for the ProteinInvBench inverse folding suite.
Download biomolecular structure datasets from ProteinShake.
- class bioverse.adapters.proteinshake.ProteinShakeAdapter[source]
Bases:
AdapterDownload biomolecular structure datasets from ProteinShake.
Download small-molecule properties from the QM9 (Quantum Machines) dataset.
- class bioverse.adapters.quantum_machines.QuantumMachinesAdapter[source]
Bases:
AdapterDownload small-molecule properties from the QM9 (Quantum Machines) dataset.
Download revised MD17 (rMD17) molecular dynamics trajectories.
- class bioverse.adapters.revised_molecular_dynamics.RevisedMolecularDynamicsAdapter[source]
Bases:
AdapterDownload revised MD17 (rMD17) molecular dynamics trajectories.
SARS-CoV-2 RBD DMS in the Wuhan-Hu-1 background from Starr et al.
- class bioverse.adapters.starr_rbd.StarrRbdAdapter[source]
Bases:
AdapterSARS-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
Batchshards.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:
AdapterSynthetic protease × mutation × substrate Δactivity matrices.
Formulations (
formulation):mutation— ProteinGym mutation prior onlymutation_pocket— mutation × BioLiP/cleft pocket weightmutation_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
Batchshards.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:
AdapterD44.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
Batchshards.split – Train/validation/test partition assignments.
assets – Auxiliary lookup tables shared across batches.
Download protein–protein complexes from the Weng et al. docking benchmark.