Commit Graph

114 Commits

Author SHA1 Message Date
HannesStark
a3149cf18e fix small writer bug 2026-05-28 19:33:03 +00:00
Tim O'Donnell
31d9d9b9c7 Version bump to 0.3.2 v0.3.2 2026-05-01 10:21:49 -04:00
Charlie Wang
f5d3c46961 Fix binding_types dropping 'binding' when combined with 'not_binding' 2026-04-30 17:33:12 -04:00
Tim O'Donnell
81b5e1da0c Merge pull request #196 from HannesStark/issue-192
Version 0.3.1
v0.3.1
2026-03-06 15:35:08 -05:00
Tim O'Donnell
e7717aeb7a Fix the issue in #151 but still fail on malformed range tokens 2026-03-06 15:33:04 -05:00
Tim O'Donnell
4d2b559d7f Merge pull request #188 from ekiefl/ek/fix-gontivimab-path
Fix gontivimab scaffold path reference
2026-03-06 15:23:48 -05:00
Tim O'Donnell
57abea8be8 Merge pull request #175 from buerbaumer/feat/gemmi-version-compatibility
feat: Add gemmi 0.6.x/0.7.x version compatibility
2026-03-06 15:22:22 -05:00
Tim O'Donnell
c57461e360 Bump version to 0.3.1 and fix #192 2026-03-06 15:21:39 -05:00
Evan Kiefl
82704994e4 Fix gontivimab scaffold to reference gontivimab.cif, not sonelokimab.cif 2026-03-02 17:09:02 -08:00
HannesStark
cf201b0c3a switich to using new nanobody scaffolds 2026-03-02 22:02:54 +00:00
HannesStark
1d32f6aada add 3 additional nanobody scaffolds with improved developability properties compared to 8coh and 8z8v but with predicted scaffold structures 2026-03-02 21:52:56 +00:00
Tim O'Donnell
da0f092069 Merge pull request #176 from profdocpizza/ipsae
feat: implement ipSAE metric
2026-02-17 17:16:50 -05:00
Tim O'Donnell
a145776d8b Merge branch 'main' into ipsae 2026-02-17 13:51:36 -05:00
Harald Buerbaumer
39c87c65d6 fix: resolve inverse-fold constraint conflicts with global avoid
Idead by buerbaumer@ and quality checked with Codex 5.3
2026-02-16 13:11:09 -05:00
Harald Buerbaumer
0822cb3b71 fix: pad constraint mask for file entities, add tests and examples
- Fix crash when YAML combines residue_constraints with file entities
  (missing res_aa_constraint_mask concatenation for CIF-loaded chains)
- Add CPU-only unit tests for constraint parsing (30 tests, no GPU needed)
- Add residue_constraints_test.yaml example
- Update showcase YAML with residue_constraints demo

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 13:11:09 -05:00
Harald Buerbaumer
6d73b21d33 feat: add per-residue amino acid constraints for inverse folding
Add YAML-based per-residue amino acid constraints that allow users to
force or exclude specific amino acids at exact positions during inverse
folding. This extends the existing global --inverse_fold_avoid flag with
position-level precision.

YAML syntax:
  residue_constraints:
    - position: 5
      allowed: C          # Force cysteine
    - position: 10..15
      disallowed: CMW     # Exclude oxidation-prone residues

Implementation:
- Parse constraints in schema.py into (chain_length, 20) mask
- Flow mask through full pipeline: tokenizer -> featurizer -> masker
- Apply as -inf logit bias during autoregressive decoding
- Combine additively with global --inverse_fold_avoid
- Safety checks for fully-blocked positions and shape mismatches
- Save/load constraints in NPZ metadata for multi-step protocols
- Backward compatible: old YAMLs and NPZ files work unchanged

Closes #172 (partial: extends global avoid to per-position control)

Quality checked by: Claude Opus 4.6
2026-02-16 13:11:09 -05:00
Tally Portnoi
3eddb5a3c7 version bump v0.3.0 2026-02-10 16:44:52 -05:00
Tally Portnoi
2c71c0bcac Support for symmetric IF and protein-redesign protocol
Add symmetric_group support for coordinating variable-length insertions and inverse folding across symmetric chains
Add protein-redesign protocol for redesigning existing proteins
Add use_design_mask_for_target parameter for correct metric computation for protein-redesign
Surface other whole-complex metrics for scoring redesigns
Add design_residue_iptm metric and use it to score redesigns

---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-10 16:15:30 -05:00
Tally E. Portnoi
e2a9e32c12 fix bug when running inverse folding only 2026-02-10 16:05:42 -05:00
Tally Portnoi
ad5d6b1413 fix off-by-one error in size bucket filtering 2026-02-10 16:05:42 -05:00
Tally Portnoi
1aa3a81e7d add ranking metrics to pdf 2026-02-10 16:05:42 -05:00
Hannes Stärk
b69087552e Update comment to reflect visibility mask computation 2026-02-09 14:47:48 -05:00
Hannes Stärk
50be67f942 switch to templateV2 module instead of template module. During refactoring i previously accidentally took template module instead of templatemodulev2. the difference is that teamplatemodule masks out inter-chain templates (this only affects the refolding step) 2026-02-09 14:11:26 -05:00
Tally Portnoi
135a4a5a97 Revert "Add support for symmetric designs and protein-redesign protocol"
This reverts commit f020b9db96.
A few issues need to be resolved for protein-redesign protocol.
2026-02-05 16:43:02 -05:00
Tadas Kluonis
8bf76220db Update src/boltzgen/data/const.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-05 14:25:04 +00:00
Tadas Kluonis
83f3d5e988 Update src/boltzgen/task/filter/filter.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-05 14:24:19 +00:00
profdocpizza
d613d36d18 removed redundant code and reused existin pae matrix for ipsae calculation 2026-02-05 14:23:27 +00:00
Tadas Kluonis
49d61593f9 Update src/boltzgen/model/layers/confidence_utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-05 13:34:48 +00:00
Tadas Kluonis
a5a3705c4f Update src/boltzgen/task/filter/filter.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-05 13:32:35 +00:00
profdocpizza
a41f3daf8e feat: implement ipSAE metric calculation 2026-02-05 11:46:56 +00:00
HannesStark
fd65aa8a37 fix mmcif parsing for files with multiple modles 2026-02-04 18:24:57 -05:00
Tally Portnoi
f020b9db96 Add support for symmetric designs and protein-redesign protocol
Add symmetric_group support for coordinating variable-length insertions and inverse folding across symmetric chains
Add protein-redesign protocol for redesigning existing proteins
Add use_design_mask_for_target parameter for correct metric computation for protein-redesign

---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 18:24:49 -05:00
HannesStark
db2e5ff0b9 add design mask templates option to the repo 2026-02-04 18:24:42 -05:00
Harald Buerbaumer
47528316f3 feat: add gemmi 0.6.x and 0.7.x version compatibility
- Add _create_gemmi_model() helper function to handle breaking API change
  in gemmi 0.7.0 where Model constructor changed from string to int
- Loosen gemmi version constraint from ==0.6.5 to >=0.6.5

Fixes #164
2026-02-04 09:47:16 +01:00
Harald Buerbaumer
2f023df422 chore: loosen gemmi version constraint 2026-02-04 09:40:48 +01:00
Yuxin Xie
617e549edf fix issues related to bond len loss 2026-01-09 13:54:00 -05:00
Hannes Stärk
25bf683d42 Update README with video link and Slack section 2026-01-08 09:04:26 -05:00
MinGyu Choi
80619ae8c9 add explanations for constraint specification from the file and smiles. 2026-01-06 12:12:32 -05:00
MinGyu Choi
7358f4f018 add specifying covalent bonds to atoms that come from a file. Also supports atom constraints from a smiles 2026-01-05 23:32:23 -05:00
Tim O'Donnell
247b9bbd8b Add no distillation training config 2025-12-18 16:33:51 -05:00
Tim O'Donnell
e83966197f Fix activation checkpointing 2025-12-18 16:32:55 -05:00
Tim O'Donnell
cd368bc070 Fix refolding step when there are no designed residues; see #122. Note that subsequent steps will still fail when there are no designed residues. 2025-12-17 14:44:57 -05:00
Tim O'Donnell
f3392feefd Update run.sh 2025-12-15 12:50:02 -05:00
HannesStark
4cb93aabfd add small molecule normalization to absolute score 2025-12-14 17:52:41 +00:00
HannesStark
ffe9dae0f6 add absolute metrics computation 2025-12-14 17:37:14 +00:00
Tally E. Portnoi
52a83ed5ea add per-chain sequences to metrics when designing multiple chains 2025-12-14 00:03:24 -05:00
Tim O'Donnell
b5d532b97a Update README.md 2025-12-10 16:13:03 -05:00
Tim O'Donnell
db0fbdae45 Merge pull request #70 from FloWuenne/fix_dockerfile
fix:Fix python version usage in Dockerfile.
2025-12-10 16:11:50 -05:00
HannesStark
e4c961b55e version bump v0.2.0 2025-12-10 20:40:03 +00:00
Yuxin Xie
961ad4944d fix design chain mask for multichain 2025-12-10 14:40:22 -05:00