mufold 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mufold-0.1.0/LICENSE +202 -0
- mufold-0.1.0/PKG-INFO +440 -0
- mufold-0.1.0/README.md +384 -0
- mufold-0.1.0/pyproject.toml +188 -0
- mufold-0.1.0/pyproject.toml.orig +152 -0
- mufold-0.1.0/src/mufold/README.md +269 -0
- mufold-0.1.0/src/mufold/__init__.py +64 -0
- mufold-0.1.0/src/mufold/alphabet.py +6 -0
- mufold-0.1.0/src/mufold/benchmark.py +180 -0
- mufold-0.1.0/src/mufold/ccd.py +895 -0
- mufold-0.1.0/src/mufold/cif.py +298 -0
- mufold-0.1.0/src/mufold/cli/README.md +224 -0
- mufold-0.1.0/src/mufold/cli/__init__.py +5 -0
- mufold-0.1.0/src/mufold/cli/__main__.py +4 -0
- mufold-0.1.0/src/mufold/cli/app.py +153 -0
- mufold-0.1.0/src/mufold/cli/models.py +127 -0
- mufold-0.1.0/src/mufold/cli/predict.py +322 -0
- mufold-0.1.0/src/mufold/cli/progress.py +390 -0
- mufold-0.1.0/src/mufold/cli/schema.py +125 -0
- mufold-0.1.0/src/mufold/convert/__init__.py +21 -0
- mufold-0.1.0/src/mufold/convert/dump.py +271 -0
- mufold-0.1.0/src/mufold/convert/load.py +135 -0
- mufold-0.1.0/src/mufold/convert/torchzip.py +103 -0
- mufold-0.1.0/src/mufold/design/MOSAIC_LICENSE.txt +21 -0
- mufold-0.1.0/src/mufold/design/UNIREF50_NOTICE.txt +13 -0
- mufold-0.1.0/src/mufold/design/__init__.py +130 -0
- mufold-0.1.0/src/mufold/design/bias.py +99 -0
- mufold-0.1.0/src/mufold/design/conditions.py +140 -0
- mufold-0.1.0/src/mufold/design/confidence.py +253 -0
- mufold-0.1.0/src/mufold/design/evaluation.py +275 -0
- mufold-0.1.0/src/mufold/design/inputs.py +35 -0
- mufold-0.1.0/src/mufold/design/inverse_folding.py +60 -0
- mufold-0.1.0/src/mufold/design/losses.py +143 -0
- mufold-0.1.0/src/mufold/design/optimizers.py +458 -0
- mufold-0.1.0/src/mufold/design/outputs.py +171 -0
- mufold-0.1.0/src/mufold/design/pooling.py +706 -0
- mufold-0.1.0/src/mufold/design/recipes.py +94 -0
- mufold-0.1.0/src/mufold/design/search.py +426 -0
- mufold-0.1.0/src/mufold/design/structure.py +1118 -0
- mufold-0.1.0/src/mufold/design/uniref50_marginals.npz +0 -0
- mufold-0.1.0/src/mufold/design/validation.py +232 -0
- mufold-0.1.0/src/mufold/distributions.py +66 -0
- mufold-0.1.0/src/mufold/geometry.py +219 -0
- mufold-0.1.0/src/mufold/job.py +295 -0
- mufold-0.1.0/src/mufold/models/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/alphafold2/README.md +69 -0
- mufold-0.1.0/src/mufold/models/alphafold2/__init__.py +35 -0
- mufold-0.1.0/src/mufold/models/alphafold2/_presets.py +381 -0
- mufold-0.1.0/src/mufold/models/alphafold2/colabfold/__init__.py +16 -0
- mufold-0.1.0/src/mufold/models/alphafold2/colabfold/config.py +150 -0
- mufold-0.1.0/src/mufold/models/alphafold2/colabfold/features.py +228 -0
- mufold-0.1.0/src/mufold/models/alphafold2/colabfold/model.py +603 -0
- mufold-0.1.0/src/mufold/models/alphafold2/colabfold/scores.py +402 -0
- mufold-0.1.0/src/mufold/models/alphafold2/common/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/alphafold2/common/residue_constants.py +1154 -0
- mufold-0.1.0/src/mufold/models/alphafold2/common/stereo_chemical_props.txt +345 -0
- mufold-0.1.0/src/mufold/models/alphafold2/confidence.py +146 -0
- mufold-0.1.0/src/mufold/models/alphafold2/config.py +92 -0
- mufold-0.1.0/src/mufold/models/alphafold2/convert.py +122 -0
- mufold-0.1.0/src/mufold/models/alphafold2/data/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/alphafold2/data/features.py +136 -0
- mufold-0.1.0/src/mufold/models/alphafold2/data/monomer.py +221 -0
- mufold-0.1.0/src/mufold/models/alphafold2/data/msa_pairing.py +369 -0
- mufold-0.1.0/src/mufold/models/alphafold2/data/multimer.py +529 -0
- mufold-0.1.0/src/mufold/models/alphafold2/data/templates.py +160 -0
- mufold-0.1.0/src/mufold/models/alphafold2/data/tf_math.py +145 -0
- mufold-0.1.0/src/mufold/models/alphafold2/data/tf_random.py +214 -0
- mufold-0.1.0/src/mufold/models/alphafold2/data/transforms.py +476 -0
- mufold-0.1.0/src/mufold/models/alphafold2/inference.py +1015 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/all_atom.py +263 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/all_atom_multimer.py +271 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/alphafold.py +230 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/attention.py +437 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/common.py +56 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/embeddings.py +357 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/evoformer.py +468 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/folding.py +411 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/folding_multimer.py +476 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/geometry.py +323 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/heads.py +119 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/quat_affine.py +346 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/r3.py +279 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/sampling.py +249 -0
- mufold-0.1.0/src/mufold/models/alphafold2/model/template.py +381 -0
- mufold-0.1.0/src/mufold/models/alphafold2/nn.py +217 -0
- mufold-0.1.0/src/mufold/models/alphafold2/output.py +54 -0
- mufold-0.1.0/src/mufold/models/bioemu2/LICENSE-BOLTZ-MIT +21 -0
- mufold-0.1.0/src/mufold/models/bioemu2/LICENSE-MIT +21 -0
- mufold-0.1.0/src/mufold/models/bioemu2/NOTICE +21 -0
- mufold-0.1.0/src/mufold/models/bioemu2/README.md +85 -0
- mufold-0.1.0/src/mufold/models/bioemu2/__init__.py +34 -0
- mufold-0.1.0/src/mufold/models/bioemu2/_geometry.py +94 -0
- mufold-0.1.0/src/mufold/models/bioemu2/_structure.py +134 -0
- mufold-0.1.0/src/mufold/models/bioemu2/bench.py +130 -0
- mufold-0.1.0/src/mufold/models/bioemu2/config.py +96 -0
- mufold-0.1.0/src/mufold/models/bioemu2/convert.py +73 -0
- mufold-0.1.0/src/mufold/models/bioemu2/data/__init__.py +14 -0
- mufold-0.1.0/src/mufold/models/bioemu2/data/job.py +129 -0
- mufold-0.1.0/src/mufold/models/bioemu2/data/pipeline.py +302 -0
- mufold-0.1.0/src/mufold/models/bioemu2/data/polymer_templates.npz +0 -0
- mufold-0.1.0/src/mufold/models/bioemu2/design.py +215 -0
- mufold-0.1.0/src/mufold/models/bioemu2/design_features.py +139 -0
- mufold-0.1.0/src/mufold/models/bioemu2/distogram.py +19 -0
- mufold-0.1.0/src/mufold/models/bioemu2/model/__init__.py +3 -0
- mufold-0.1.0/src/mufold/models/bioemu2/model/atoms.py +181 -0
- mufold-0.1.0/src/mufold/models/bioemu2/model/bioemu2.py +130 -0
- mufold-0.1.0/src/mufold/models/bioemu2/model/diffusion.py +381 -0
- mufold-0.1.0/src/mufold/models/bioemu2/model/layers.py +334 -0
- mufold-0.1.0/src/mufold/models/bioemu2/model/trunk.py +424 -0
- mufold-0.1.0/src/mufold/models/bioemu2/physicality.py +752 -0
- mufold-0.1.0/src/mufold/models/bioemu2/potentials.py +327 -0
- mufold-0.1.0/src/mufold/models/bioemu2/predict.py +439 -0
- mufold-0.1.0/src/mufold/models/bioemu2/propagation.py +323 -0
- mufold-0.1.0/src/mufold/models/bioemu2/sampler.py +262 -0
- mufold-0.1.0/src/mufold/models/bioemu2/steering.py +363 -0
- mufold-0.1.0/src/mufold/models/boltz2/README.md +99 -0
- mufold-0.1.0/src/mufold/models/boltz2/__init__.py +40 -0
- mufold-0.1.0/src/mufold/models/boltz2/bench.py +161 -0
- mufold-0.1.0/src/mufold/models/boltz2/config.py +183 -0
- mufold-0.1.0/src/mufold/models/boltz2/convert.py +129 -0
- mufold-0.1.0/src/mufold/models/boltz2/data/__init__.py +17 -0
- mufold-0.1.0/src/mufold/models/boltz2/data/affinity.py +75 -0
- mufold-0.1.0/src/mufold/models/boltz2/data/const.py +168 -0
- mufold-0.1.0/src/mufold/models/boltz2/data/constraints.py +224 -0
- mufold-0.1.0/src/mufold/models/boltz2/data/features.py +848 -0
- mufold-0.1.0/src/mufold/models/boltz2/data/mols.py +398 -0
- mufold-0.1.0/src/mufold/models/boltz2/data/msa.py +397 -0
- mufold-0.1.0/src/mufold/models/boltz2/data/structure.py +835 -0
- mufold-0.1.0/src/mufold/models/boltz2/data/templates.py +725 -0
- mufold-0.1.0/src/mufold/models/boltz2/data/tokenize.py +148 -0
- mufold-0.1.0/src/mufold/models/boltz2/design.py +300 -0
- mufold-0.1.0/src/mufold/models/boltz2/inference.py +938 -0
- mufold-0.1.0/src/mufold/models/boltz2/metrics.py +271 -0
- mufold-0.1.0/src/mufold/models/boltz2/model/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/boltz2/model/affinity.py +219 -0
- mufold-0.1.0/src/mufold/models/boltz2/model/boltz2.py +237 -0
- mufold-0.1.0/src/mufold/models/boltz2/model/confidence.py +339 -0
- mufold-0.1.0/src/mufold/models/boltz2/model/diffusion.py +286 -0
- mufold-0.1.0/src/mufold/models/boltz2/model/diffusion_conditioning.py +97 -0
- mufold-0.1.0/src/mufold/models/boltz2/model/encoders.py +408 -0
- mufold-0.1.0/src/mufold/models/boltz2/model/pairformer.py +338 -0
- mufold-0.1.0/src/mufold/models/boltz2/model/transformers.py +115 -0
- mufold-0.1.0/src/mufold/models/boltz2/model/trunk.py +581 -0
- mufold-0.1.0/src/mufold/models/boltz2/potentials/__init__.py +23 -0
- mufold-0.1.0/src/mufold/models/boltz2/potentials/geometry.py +169 -0
- mufold-0.1.0/src/mufold/models/boltz2/potentials/potentials.py +696 -0
- mufold-0.1.0/src/mufold/models/boltz2/potentials/schedules.py +55 -0
- mufold-0.1.0/src/mufold/models/boltz2/potentials/steering.py +284 -0
- mufold-0.1.0/src/mufold/models/boltz2/sampler.py +131 -0
- mufold-0.1.0/src/mufold/models/boltz2/steering.py +42 -0
- mufold-0.1.0/src/mufold/models/esm2/__init__.py +60 -0
- mufold-0.1.0/src/mufold/models/esm2/config.py +56 -0
- mufold-0.1.0/src/mufold/models/esm2/model.py +457 -0
- mufold-0.1.0/src/mufold/models/esm2/tokenizer.py +112 -0
- mufold-0.1.0/src/mufold/models/esm2/weights.py +163 -0
- mufold-0.1.0/src/mufold/models/esmc/LICENSE.md +25 -0
- mufold-0.1.0/src/mufold/models/esmc/__init__.py +41 -0
- mufold-0.1.0/src/mufold/models/esmc/config.py +72 -0
- mufold-0.1.0/src/mufold/models/esmc/design.py +179 -0
- mufold-0.1.0/src/mufold/models/esmc/layers.py +213 -0
- mufold-0.1.0/src/mufold/models/esmc/loading.py +170 -0
- mufold-0.1.0/src/mufold/models/esmc/model.py +377 -0
- mufold-0.1.0/src/mufold/models/esmc/sae.py +203 -0
- mufold-0.1.0/src/mufold/models/esmc/tokenizer.py +142 -0
- mufold-0.1.0/src/mufold/models/esmfold2/README.md +81 -0
- mufold-0.1.0/src/mufold/models/esmfold2/__init__.py +43 -0
- mufold-0.1.0/src/mufold/models/esmfold2/bench.py +366 -0
- mufold-0.1.0/src/mufold/models/esmfold2/catalog.py +66 -0
- mufold-0.1.0/src/mufold/models/esmfold2/config.py +340 -0
- mufold-0.1.0/src/mufold/models/esmfold2/convert/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/esmfold2/convert/conformers.py +157 -0
- mufold-0.1.0/src/mufold/models/esmfold2/data/__init__.py +13 -0
- mufold-0.1.0/src/mufold/models/esmfold2/data/ccd.py +111 -0
- mufold-0.1.0/src/mufold/models/esmfold2/data/constants.py +116 -0
- mufold-0.1.0/src/mufold/models/esmfold2/data/features.py +151 -0
- mufold-0.1.0/src/mufold/models/esmfold2/data/lm.py +99 -0
- mufold-0.1.0/src/mufold/models/esmfold2/data/msa.py +287 -0
- mufold-0.1.0/src/mufold/models/esmfold2/data/pipeline.py +75 -0
- mufold-0.1.0/src/mufold/models/esmfold2/data/structure.py +292 -0
- mufold-0.1.0/src/mufold/models/esmfold2/data/tokens.py +359 -0
- mufold-0.1.0/src/mufold/models/esmfold2/design.py +333 -0
- mufold-0.1.0/src/mufold/models/esmfold2/design_features.py +287 -0
- mufold-0.1.0/src/mufold/models/esmfold2/inference.py +850 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/atom.py +731 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/common.py +382 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/diffusion.py +473 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/embedders.py +203 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/experimental.py +141 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/heads.py +384 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/lm.py +44 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/msa.py +624 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/pair.py +342 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/recurrence.py +155 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/release.py +215 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/sampler.py +90 -0
- mufold-0.1.0/src/mufold/models/esmfold2/model/structure_head.py +229 -0
- mufold-0.1.0/src/mufold/models/esmfold2/steering.py +68 -0
- mufold-0.1.0/src/mufold/models/esmfold2/summary.py +238 -0
- mufold-0.1.0/src/mufold/models/genie3/README.md +54 -0
- mufold-0.1.0/src/mufold/models/genie3/__init__.py +19 -0
- mufold-0.1.0/src/mufold/models/genie3/conditional.py +239 -0
- mufold-0.1.0/src/mufold/models/genie3/config.py +82 -0
- mufold-0.1.0/src/mufold/models/genie3/convert.py +58 -0
- mufold-0.1.0/src/mufold/models/genie3/diffusion.py +136 -0
- mufold-0.1.0/src/mufold/models/genie3/evaluate.py +294 -0
- mufold-0.1.0/src/mufold/models/genie3/features.py +184 -0
- mufold-0.1.0/src/mufold/models/genie3/frames.py +182 -0
- mufold-0.1.0/src/mufold/models/genie3/generate.py +92 -0
- mufold-0.1.0/src/mufold/models/genie3/loops.py +25 -0
- mufold-0.1.0/src/mufold/models/genie3/model/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/genie3/model/denoiser.py +56 -0
- mufold-0.1.0/src/mufold/models/genie3/model/embedders.py +184 -0
- mufold-0.1.0/src/mufold/models/genie3/model/latent.py +194 -0
- mufold-0.1.0/src/mufold/models/genie3/model/structure.py +100 -0
- mufold-0.1.0/src/mufold/models/genie3/nn.py +295 -0
- mufold-0.1.0/src/mufold/models/genie3/output.py +32 -0
- mufold-0.1.0/src/mufold/models/genie3/residues.py +100 -0
- mufold-0.1.0/src/mufold/models/genie3/search.py +192 -0
- mufold-0.1.0/src/mufold/models/mol1/NOTICE +13 -0
- mufold-0.1.0/src/mufold/models/mol1/README.md +69 -0
- mufold-0.1.0/src/mufold/models/mol1/__init__.py +40 -0
- mufold-0.1.0/src/mufold/models/mol1/catalog.py +9 -0
- mufold-0.1.0/src/mufold/models/mol1/config.py +24 -0
- mufold-0.1.0/src/mufold/models/mol1/convert/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/mol1/convert/conformers.py +36 -0
- mufold-0.1.0/src/mufold/models/mol1/convert/dump.py +62 -0
- mufold-0.1.0/src/mufold/models/mol1/data.py +39 -0
- mufold-0.1.0/src/mufold/models/mol1/design.py +4 -0
- mufold-0.1.0/src/mufold/models/mol1/design_features.py +3 -0
- mufold-0.1.0/src/mufold/models/mol1/inference.py +89 -0
- mufold-0.1.0/src/mufold/models/mol1/model.py +6 -0
- mufold-0.1.0/src/mufold/models/mol1/release.json +23 -0
- mufold-0.1.0/src/mufold/models/mpnn/README.md +57 -0
- mufold-0.1.0/src/mufold/models/mpnn/__init__.py +20 -0
- mufold-0.1.0/src/mufold/models/mpnn/alphabet.py +6 -0
- mufold-0.1.0/src/mufold/models/mpnn/convert.py +139 -0
- mufold-0.1.0/src/mufold/models/mpnn/design.py +228 -0
- mufold-0.1.0/src/mufold/models/mpnn/encodings.py +243 -0
- mufold-0.1.0/src/mufold/models/mpnn/graph.py +121 -0
- mufold-0.1.0/src/mufold/models/mpnn/input.py +143 -0
- mufold-0.1.0/src/mufold/models/mpnn/layers.py +103 -0
- mufold-0.1.0/src/mufold/models/mpnn/ligand.py +166 -0
- mufold-0.1.0/src/mufold/models/mpnn/model.py +427 -0
- mufold-0.1.0/src/mufold/models/mpnn/packer.py +591 -0
- mufold-0.1.0/src/mufold/models/mpnn/search.py +69 -0
- mufold-0.1.0/src/mufold/models/nesso1/README.md +52 -0
- mufold-0.1.0/src/mufold/models/nesso1/__init__.py +53 -0
- mufold-0.1.0/src/mufold/models/nesso1/config.py +100 -0
- mufold-0.1.0/src/mufold/models/nesso1/data/__init__.py +38 -0
- mufold-0.1.0/src/mufold/models/nesso1/data/ccd.py +303 -0
- mufold-0.1.0/src/mufold/models/nesso1/data/const.py +67 -0
- mufold-0.1.0/src/mufold/models/nesso1/data/crop.py +71 -0
- mufold-0.1.0/src/mufold/models/nesso1/data/featurizer.py +334 -0
- mufold-0.1.0/src/mufold/models/nesso1/data/job.py +128 -0
- mufold-0.1.0/src/mufold/models/nesso1/data/structure.py +521 -0
- mufold-0.1.0/src/mufold/models/nesso1/data/tokenize.py +143 -0
- mufold-0.1.0/src/mufold/models/nesso1/distogram.py +73 -0
- mufold-0.1.0/src/mufold/models/nesso1/model/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/nesso1/model/affinity.py +184 -0
- mufold-0.1.0/src/mufold/models/nesso1/model/crop.py +180 -0
- mufold-0.1.0/src/mufold/models/nesso1/model/encoders.py +79 -0
- mufold-0.1.0/src/mufold/models/nesso1/model/esm_module.py +63 -0
- mufold-0.1.0/src/mufold/models/nesso1/model/nesso1.py +244 -0
- mufold-0.1.0/src/mufold/models/nesso1/model/trunk.py +69 -0
- mufold-0.1.0/src/mufold/models/nesso1/predict.py +372 -0
- mufold-0.1.0/src/mufold/models/nesso1/weights.py +42 -0
- mufold-0.1.0/src/mufold/models/opendde/README.md +87 -0
- mufold-0.1.0/src/mufold/models/opendde/__init__.py +67 -0
- mufold-0.1.0/src/mufold/models/opendde/catalog.py +16 -0
- mufold-0.1.0/src/mufold/models/opendde/config.py +78 -0
- mufold-0.1.0/src/mufold/models/opendde/convert/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/opendde/convert/conformers.py +81 -0
- mufold-0.1.0/src/mufold/models/opendde/convert/dump.py +79 -0
- mufold-0.1.0/src/mufold/models/opendde/data/__init__.py +37 -0
- mufold-0.1.0/src/mufold/models/opendde/data/ccd.py +123 -0
- mufold-0.1.0/src/mufold/models/opendde/data/constants.py +126 -0
- mufold-0.1.0/src/mufold/models/opendde/data/constraints.py +437 -0
- mufold-0.1.0/src/mufold/models/opendde/data/design.py +294 -0
- mufold-0.1.0/src/mufold/models/opendde/data/encoding.py +53 -0
- mufold-0.1.0/src/mufold/models/opendde/data/features.py +506 -0
- mufold-0.1.0/src/mufold/models/opendde/data/msa.py +365 -0
- mufold-0.1.0/src/mufold/models/opendde/data/pipeline.py +146 -0
- mufold-0.1.0/src/mufold/models/opendde/data/structure.py +412 -0
- mufold-0.1.0/src/mufold/models/opendde/data/template.py +205 -0
- mufold-0.1.0/src/mufold/models/opendde/data/tokens.py +215 -0
- mufold-0.1.0/src/mufold/models/opendde/data/windows.py +33 -0
- mufold-0.1.0/src/mufold/models/opendde/design.py +333 -0
- mufold-0.1.0/src/mufold/models/opendde/design_features.py +348 -0
- mufold-0.1.0/src/mufold/models/opendde/inference.py +1131 -0
- mufold-0.1.0/src/mufold/models/opendde/model/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/opendde/model/opendde.py +462 -0
- mufold-0.1.0/src/mufold/models/opendde/model/structural.py +374 -0
- mufold-0.1.0/src/mufold/models/opendde/postprocess.py +67 -0
- mufold-0.1.0/src/mufold/models/opendde/steering.py +48 -0
- mufold-0.1.0/src/mufold/models/opendde/summary.py +133 -0
- mufold-0.1.0/src/mufold/models/opendde/tfg/__init__.py +45 -0
- mufold-0.1.0/src/mufold/models/opendde/tfg/clash.py +220 -0
- mufold-0.1.0/src/mufold/models/opendde/tfg/constraints.py +415 -0
- mufold-0.1.0/src/mufold/models/opendde/tfg/engine.py +203 -0
- mufold-0.1.0/src/mufold/models/opendde/tfg/geometry.py +76 -0
- mufold-0.1.0/src/mufold/models/opendde/tfg/potentials.py +211 -0
- mufold-0.1.0/src/mufold/models/opendde/tfg/rigid.py +1032 -0
- mufold-0.1.0/src/mufold/models/promera/README.md +79 -0
- mufold-0.1.0/src/mufold/models/promera/__init__.py +40 -0
- mufold-0.1.0/src/mufold/models/promera/bench.py +151 -0
- mufold-0.1.0/src/mufold/models/promera/config.py +91 -0
- mufold-0.1.0/src/mufold/models/promera/convert.py +65 -0
- mufold-0.1.0/src/mufold/models/promera/data/__init__.py +9 -0
- mufold-0.1.0/src/mufold/models/promera/data/ccd.py +165 -0
- mufold-0.1.0/src/mufold/models/promera/data/conditioning.py +143 -0
- mufold-0.1.0/src/mufold/models/promera/data/features.py +459 -0
- mufold-0.1.0/src/mufold/models/promera/data/msa.py +176 -0
- mufold-0.1.0/src/mufold/models/promera/data/structure.py +163 -0
- mufold-0.1.0/src/mufold/models/promera/design.py +199 -0
- mufold-0.1.0/src/mufold/models/promera/design_features.py +220 -0
- mufold-0.1.0/src/mufold/models/promera/inference.py +610 -0
- mufold-0.1.0/src/mufold/models/promera/metrics.py +166 -0
- mufold-0.1.0/src/mufold/models/promera/model/__init__.py +3 -0
- mufold-0.1.0/src/mufold/models/promera/model/confidence.py +162 -0
- mufold-0.1.0/src/mufold/models/promera/model/diffusion.py +206 -0
- mufold-0.1.0/src/mufold/models/promera/model/encoders.py +323 -0
- mufold-0.1.0/src/mufold/models/promera/model/promera.py +139 -0
- mufold-0.1.0/src/mufold/models/promera/model/transformers.py +102 -0
- mufold-0.1.0/src/mufold/models/promera/model/trunk.py +406 -0
- mufold-0.1.0/src/mufold/models/promera/nn.py +15 -0
- mufold-0.1.0/src/mufold/models/promera/sampler.py +90 -0
- mufold-0.1.0/src/mufold/models/promera/steering.py +43 -0
- mufold-0.1.0/src/mufold/models/protenix2/README.md +73 -0
- mufold-0.1.0/src/mufold/models/protenix2/__init__.py +40 -0
- mufold-0.1.0/src/mufold/models/protenix2/bench.py +416 -0
- mufold-0.1.0/src/mufold/models/protenix2/catalog.py +11 -0
- mufold-0.1.0/src/mufold/models/protenix2/config.py +79 -0
- mufold-0.1.0/src/mufold/models/protenix2/convert/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/protenix2/convert/conformers.py +130 -0
- mufold-0.1.0/src/mufold/models/protenix2/convert/dump.py +62 -0
- mufold-0.1.0/src/mufold/models/protenix2/data/__init__.py +15 -0
- mufold-0.1.0/src/mufold/models/protenix2/data/ccd.py +132 -0
- mufold-0.1.0/src/mufold/models/protenix2/data/constants.py +166 -0
- mufold-0.1.0/src/mufold/models/protenix2/data/encoding.py +33 -0
- mufold-0.1.0/src/mufold/models/protenix2/data/features.py +314 -0
- mufold-0.1.0/src/mufold/models/protenix2/data/msa.py +319 -0
- mufold-0.1.0/src/mufold/models/protenix2/data/pipeline.py +132 -0
- mufold-0.1.0/src/mufold/models/protenix2/data/structure.py +624 -0
- mufold-0.1.0/src/mufold/models/protenix2/data/template.py +185 -0
- mufold-0.1.0/src/mufold/models/protenix2/data/tokens.py +47 -0
- mufold-0.1.0/src/mufold/models/protenix2/design.py +277 -0
- mufold-0.1.0/src/mufold/models/protenix2/design_features.py +239 -0
- mufold-0.1.0/src/mufold/models/protenix2/inference.py +656 -0
- mufold-0.1.0/src/mufold/models/protenix2/inputs.py +155 -0
- mufold-0.1.0/src/mufold/models/protenix2/model/__init__.py +0 -0
- mufold-0.1.0/src/mufold/models/protenix2/model/protenix.py +426 -0
- mufold-0.1.0/src/mufold/models/protenix2/postprocess.py +42 -0
- mufold-0.1.0/src/mufold/models/protenix2/steering.py +52 -0
- mufold-0.1.0/src/mufold/models/protenix2/summary.py +169 -0
- mufold-0.1.0/src/mufold/models/proton_potts/LICENSE-BSD +28 -0
- mufold-0.1.0/src/mufold/models/proton_potts/LICENSE-MIT +33 -0
- mufold-0.1.0/src/mufold/models/proton_potts/NOTICE +12 -0
- mufold-0.1.0/src/mufold/models/proton_potts/README.md +57 -0
- mufold-0.1.0/src/mufold/models/proton_potts/__init__.py +77 -0
- mufold-0.1.0/src/mufold/models/proton_potts/alphabet.py +31 -0
- mufold-0.1.0/src/mufold/models/proton_potts/bias.py +61 -0
- mufold-0.1.0/src/mufold/models/proton_potts/compiled_design.py +226 -0
- mufold-0.1.0/src/mufold/models/proton_potts/convert.py +39 -0
- mufold-0.1.0/src/mufold/models/proton_potts/convert_labeler.py +175 -0
- mufold-0.1.0/src/mufold/models/proton_potts/design.py +491 -0
- mufold-0.1.0/src/mufold/models/proton_potts/hbonds.py +143 -0
- mufold-0.1.0/src/mufold/models/proton_potts/input.py +113 -0
- mufold-0.1.0/src/mufold/models/proton_potts/label_features.py +234 -0
- mufold-0.1.0/src/mufold/models/proton_potts/label_weights.py +27 -0
- mufold-0.1.0/src/mufold/models/proton_potts/labeler.py +142 -0
- mufold-0.1.0/src/mufold/models/proton_potts/loss.py +239 -0
- mufold-0.1.0/src/mufold/models/proton_potts/model.py +336 -0
- mufold-0.1.0/src/mufold/models/proton_potts/potts.py +143 -0
- mufold-0.1.0/src/mufold/models/proton_potts/weights.py +57 -0
- mufold-0.1.0/src/mufold/models/rfd4/LICENSE-BSD +28 -0
- mufold-0.1.0/src/mufold/models/rfd4/LICENSE-MIT +21 -0
- mufold-0.1.0/src/mufold/models/rfd4/NOTICE +24 -0
- mufold-0.1.0/src/mufold/models/rfd4/README.md +64 -0
- mufold-0.1.0/src/mufold/models/rfd4/__init__.py +58 -0
- mufold-0.1.0/src/mufold/models/rfd4/annotations.py +113 -0
- mufold-0.1.0/src/mufold/models/rfd4/bonds.py +84 -0
- mufold-0.1.0/src/mufold/models/rfd4/config.py +176 -0
- mufold-0.1.0/src/mufold/models/rfd4/constants.py +45 -0
- mufold-0.1.0/src/mufold/models/rfd4/data.py +489 -0
- mufold-0.1.0/src/mufold/models/rfd4/diffusion.py +135 -0
- mufold-0.1.0/src/mufold/models/rfd4/features.py +338 -0
- mufold-0.1.0/src/mufold/models/rfd4/generate.py +276 -0
- mufold-0.1.0/src/mufold/models/rfd4/guidance.py +158 -0
- mufold-0.1.0/src/mufold/models/rfd4/inference.py +102 -0
- mufold-0.1.0/src/mufold/models/rfd4/model.py +343 -0
- mufold-0.1.0/src/mufold/models/rfd4/molecules.py +413 -0
- mufold-0.1.0/src/mufold/models/rfd4/nn.py +197 -0
- mufold-0.1.0/src/mufold/models/rfd4/packing.py +213 -0
- mufold-0.1.0/src/mufold/models/rfd4/packing_geometry.py +83 -0
- mufold-0.1.0/src/mufold/models/rfd4/release.json +194 -0
- mufold-0.1.0/src/mufold/models/rfd4/search.py +614 -0
- mufold-0.1.0/src/mufold/models/rfd4/spatial.py +121 -0
- mufold-0.1.0/src/mufold/models/rfd4/stereochemistry.py +220 -0
- mufold-0.1.0/src/mufold/models/rfd4/vocabulary.json +6323 -0
- mufold-0.1.0/src/mufold/models/rfd4/weights.py +28 -0
- mufold-0.1.0/src/mufold/msa.py +64 -0
- mufold-0.1.0/src/mufold/msa_server.py +470 -0
- mufold-0.1.0/src/mufold/nn/__init__.py +0 -0
- mufold-0.1.0/src/mufold/nn/_init.py +37 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/README.md +32 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/__init__.py +0 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/atom.py +336 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/confidence.py +223 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/constants.py +184 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/diffusion.py +396 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/embedders.py +210 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/heads.py +216 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/msa.py +504 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/norm.py +42 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/pairformer.py +510 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/sampler.py +204 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/template.py +201 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/transformer.py +573 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/transition.py +106 -0
- mufold-0.1.0/src/mufold/nn/alphafold3/utils.py +68 -0
- mufold-0.1.0/src/mufold/nn/atoms.py +91 -0
- mufold-0.1.0/src/mufold/nn/attention.py +446 -0
- mufold-0.1.0/src/mufold/nn/conditioning.py +95 -0
- mufold-0.1.0/src/mufold/nn/diffusion_transformer.py +455 -0
- mufold-0.1.0/src/mufold/nn/embedding.py +43 -0
- mufold-0.1.0/src/mufold/nn/kernels.py +275 -0
- mufold-0.1.0/src/mufold/nn/linear.py +62 -0
- mufold-0.1.0/src/mufold/nn/msa.py +281 -0
- mufold-0.1.0/src/mufold/nn/norm.py +39 -0
- mufold-0.1.0/src/mufold/nn/precision.py +123 -0
- mufold-0.1.0/src/mufold/nn/recycling.py +74 -0
- mufold-0.1.0/src/mufold/nn/scan.py +131 -0
- mufold-0.1.0/src/mufold/nn/stages.py +213 -0
- mufold-0.1.0/src/mufold/nn/swiglu.py +61 -0
- mufold-0.1.0/src/mufold/nn/transition.py +210 -0
- mufold-0.1.0/src/mufold/nn/triangle.py +478 -0
- mufold-0.1.0/src/mufold/nn/trimul.py +164 -0
- mufold-0.1.0/src/mufold/options.py +54 -0
- mufold-0.1.0/src/mufold/output.py +145 -0
- mufold-0.1.0/src/mufold/padding.py +91 -0
- mufold-0.1.0/src/mufold/prediction.py +203 -0
- mufold-0.1.0/src/mufold/prepared.py +161 -0
- mufold-0.1.0/src/mufold/progress.py +223 -0
- mufold-0.1.0/src/mufold/py.typed +0 -0
- mufold-0.1.0/src/mufold/requests.py +248 -0
- mufold-0.1.0/src/mufold/sampling.py +166 -0
- mufold-0.1.0/src/mufold/sequences.py +192 -0
- mufold-0.1.0/src/mufold/soft.py +414 -0
- mufold-0.1.0/src/mufold/steering.py +548 -0
- mufold-0.1.0/src/mufold/structure.py +101 -0
- mufold-0.1.0/src/mufold/templates.py +164 -0
- mufold-0.1.0/src/mufold/tmol/LICENSE +201 -0
- mufold-0.1.0/src/mufold/tmol/NOTICE +71 -0
- mufold-0.1.0/src/mufold/tmol/README.md +771 -0
- mufold-0.1.0/src/mufold/tmol/__init__.py +40 -0
- mufold-0.1.0/src/mufold/tmol/_execution.py +53 -0
- mufold-0.1.0/src/mufold/tmol/_kinematics.py +69 -0
- mufold-0.1.0/src/mufold/tmol/_minimization_neighbors.py +134 -0
- mufold-0.1.0/src/mufold/tmol/_neighbors.py +51 -0
- mufold-0.1.0/src/mufold/tmol/_packing_compact.py +173 -0
- mufold-0.1.0/src/mufold/tmol/_packing_coupling.py +57 -0
- mufold-0.1.0/src/mufold/tmol/_packing_spatial.py +127 -0
- mufold-0.1.0/src/mufold/tmol/_parameters.py +25 -0
- mufold-0.1.0/src/mufold/tmol/_radial_parameters.py +125 -0
- mufold-0.1.0/src/mufold/tmol/_rotamer_hbonds.py +208 -0
- mufold-0.1.0/src/mufold/tmol/_rotamer_pair_contacts.py +234 -0
- mufold-0.1.0/src/mufold/tmol/_rotamer_radials.py +394 -0
- mufold-0.1.0/src/mufold/tmol/_rotamer_tables.py +391 -0
- mufold-0.1.0/src/mufold/tmol/_rotamer_waters.py +108 -0
- mufold-0.1.0/src/mufold/tmol/_spline.py +25 -0
- mufold-0.1.0/src/mufold/tmol/_topology.py +39 -0
- mufold-0.1.0/src/mufold/tmol/cartbonded.py +186 -0
- mufold-0.1.0/src/mufold/tmol/completion.py +285 -0
- mufold-0.1.0/src/mufold/tmol/fast_relax.py +230 -0
- mufold-0.1.0/src/mufold/tmol/hbond.py +285 -0
- mufold-0.1.0/src/mufold/tmol/lkball.py +286 -0
- mufold-0.1.0/src/mufold/tmol/minimization.py +617 -0
- mufold-0.1.0/src/mufold/tmol/nonbonded.py +246 -0
- mufold-0.1.0/src/mufold/tmol/packing.py +1225 -0
- mufold-0.1.0/src/mufold/tmol/potentials.py +136 -0
- mufold-0.1.0/src/mufold/tmol/prepare.py +186 -0
- mufold-0.1.0/src/mufold/tmol/rotamers.py +262 -0
- mufold-0.1.0/src/mufold/tmol/scoring.py +113 -0
- mufold-0.1.0/src/mufold/tmol/statistical.py +241 -0
- mufold-0.1.0/src/mufold/weights.py +114 -0
mufold-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Revanta Inc
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
mufold-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mufold
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Biomolecular structure prediction, co-folding, protein design, affinity scoring, and biophysical relaxation.
|
|
5
|
+
Keywords: bioinformatics,protein-folding,protein-design,structural-biology,jax
|
|
6
|
+
Author: Revanta
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Science/Research
|
|
11
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
12
|
+
Classifier: Operating System :: MacOS
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Requires-Dist: jax>=0.10.0
|
|
21
|
+
Requires-Dist: equinox>=0.13.8
|
|
22
|
+
Requires-Dist: highpairformer>=0.4.4
|
|
23
|
+
Requires-Dist: jaxtyping>=0.2.36
|
|
24
|
+
Requires-Dist: safetensors>=0.4.5
|
|
25
|
+
Requires-Dist: numpy>=2.0
|
|
26
|
+
Requires-Dist: scipy>=1.14
|
|
27
|
+
Requires-Dist: rdkit>=2024.3
|
|
28
|
+
Requires-Dist: biotite>=2.0
|
|
29
|
+
Requires-Dist: pydantic>=2.9
|
|
30
|
+
Requires-Dist: httpx>=0.28
|
|
31
|
+
Requires-Dist: chembl-structure-pipeline>=1.2.2
|
|
32
|
+
Requires-Dist: tensorferry>=0.2.1
|
|
33
|
+
Requires-Dist: zstandard>=0.25.0
|
|
34
|
+
Requires-Dist: rich>=13.9 ; extra == 'cli'
|
|
35
|
+
Requires-Dist: pyyaml>=6.0 ; extra == 'cli'
|
|
36
|
+
Requires-Dist: torch>=2.7.1 ; extra == 'convert'
|
|
37
|
+
Requires-Dist: jax[cuda13]>=0.12.1 ; extra == 'cuda13'
|
|
38
|
+
Requires-Dist: cuequivariance-jax>=0.14.0 ; platform_machine == 'x86_64' and sys_platform == 'linux' and extra == 'cuda13'
|
|
39
|
+
Requires-Dist: cuequivariance-ops-jax-cu13>=0.14.0 ; platform_machine == 'x86_64' and sys_platform == 'linux' and extra == 'cuda13'
|
|
40
|
+
Requires-Dist: triton>=3.6 ; platform_machine == 'x86_64' and sys_platform == 'linux' and extra == 'cuda13'
|
|
41
|
+
Requires-Dist: jax[cuda13]==0.10.0 ; extra == 'cuda13-fractional'
|
|
42
|
+
Requires-Dist: cuequivariance-jax>=0.14.0 ; platform_machine == 'x86_64' and sys_platform == 'linux' and extra == 'cuda13-fractional'
|
|
43
|
+
Requires-Dist: cuequivariance-ops-jax-cu13>=0.14.0 ; platform_machine == 'x86_64' and sys_platform == 'linux' and extra == 'cuda13-fractional'
|
|
44
|
+
Requires-Dist: triton>=3.6 ; platform_machine == 'x86_64' and sys_platform == 'linux' and extra == 'cuda13-fractional'
|
|
45
|
+
Requires-Dist: highpairformer[mlx] ; platform_machine == 'arm64' and sys_platform == 'darwin' and extra == 'mlx'
|
|
46
|
+
Requires-Python: >=3.12
|
|
47
|
+
Project-URL: Homepage, https://github.com/Revanta-Inc/mufold
|
|
48
|
+
Project-URL: Repository, https://github.com/Revanta-Inc/mufold
|
|
49
|
+
Project-URL: Issues, https://github.com/Revanta-Inc/mufold/issues
|
|
50
|
+
Provides-Extra: cli
|
|
51
|
+
Provides-Extra: convert
|
|
52
|
+
Provides-Extra: cuda13
|
|
53
|
+
Provides-Extra: cuda13-fractional
|
|
54
|
+
Provides-Extra: mlx
|
|
55
|
+
Description-Content-Type: text/markdown
|
|
56
|
+
|
|
57
|
+
# mufold
|
|
58
|
+
|
|
59
|
+
Biomolecular structure prediction, co-folding, protein design, affinity scoring, and biophysical relaxation normally live in separate PyTorch repositories with incompatible inputs, outputs, and dependency trees. mufold ports sixteen of those models to [JAX](https://docs.jax.dev) behind one input and output contract. Every port has been verified numerically against its upstream reference. At runtime, mufold loads the released safetensors weights directly with no PyTorch dependency.
|
|
60
|
+
|
|
61
|
+
Because the ports share the same JAX layers, one installation runs on NVIDIA CUDA 13 GPUs (with cuEquivariance triangle kernels), Apple Silicon GPUs (via MLX and [highpairformer](https://pypi.org/project/highpairformer/)), and CPU. Checkpoints stream on demand through [tensorferry](https://github.com/Revanta-Inc/tensorferry) while XLA compiles, with local disk caching enabled by default. Differentiable folding ports expose standard JAX gradients for pair-state steering and sequence design.
|
|
62
|
+
|
|
63
|
+
## Contents
|
|
64
|
+
|
|
65
|
+
- [Install](#install)
|
|
66
|
+
- [Quick start](#quick-start)
|
|
67
|
+
- [Models & deep dives](#models--deep-dives)
|
|
68
|
+
- [Co-folding, affinity & batch sweeps](#co-folding-affinity--batch-sweeps)
|
|
69
|
+
- [Pair-state distance steering](#pair-state-distance-steering)
|
|
70
|
+
- [De novo protein design](#de-novo-protein-design)
|
|
71
|
+
- [All-atom scoring & FastRelax](#all-atom-scoring--fastrelax)
|
|
72
|
+
- [Performance & hardware notes](#performance--hardware-notes)
|
|
73
|
+
- [Weights, caching & offline use](#weights-caching--offline-use)
|
|
74
|
+
- [Attributions](#attributions)
|
|
75
|
+
- [License & upstream models](#license--upstream-models)
|
|
76
|
+
|
|
77
|
+
## Install
|
|
78
|
+
|
|
79
|
+
mufold requires **Python 3.12+** and installs cleanly with [uv](https://docs.astral.sh/uv/). On Apple Silicon Macs, start with the `mlx` extra to run folding, steering, and design natively on the Apple GPU:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# Install the `mufold` CLI globally
|
|
83
|
+
uv tool install "mufold[mlx,cli]"
|
|
84
|
+
|
|
85
|
+
# Or add the Python library to a project
|
|
86
|
+
uv add "mufold[mlx]"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Pick the extra for your architecture (use `uv tool install "mufold[<extra>,cli]"` for the CLI, or `uv add "mufold[<extra>]"` for the Python library):
|
|
90
|
+
|
|
91
|
+
- **Apple Silicon (`mlx`)**: `uv tool install "mufold[mlx,cli]"` — runs staged folding, ensembles, steering, and design on Metal (`bf16` default; `precision="fp16"` or `"fp32"` supported; stages compile lazily on first call). On 16 GB Macs, start with Boltz-2 (~1.4 GB) rather than ESMFold2 (~13 GB with ESM-C 6B). `mufold.tmol`, `mpnn`, `proton_potts`, `esm2`, and `esmc` run on CPU JAX; set `HIGHPAIRFORMER_MLX=0` to force CPU JAX everywhere.
|
|
92
|
+
- **NVIDIA GPU, Linux `x86_64` (`cuda13`)**: `uv tool install "mufold[cuda13,cli]"` — bundles current JAX with cuEquivariance fused triangle kernels and Triton (CUDA 13 / PTX 9.x required; CUDA 12 is unsupported by `cueq`, and ARM64 NVIDIA hosts fall back to XLA).
|
|
93
|
+
- **CPU only**: `uv tool install "mufold[cli]"` (or `uv add mufold` for the Python library).
|
|
94
|
+
|
|
95
|
+
## Quick start
|
|
96
|
+
|
|
97
|
+
### Protein folding from the command line
|
|
98
|
+
|
|
99
|
+
`mufold predict` folds inline canonical protein sequences as well as `pdb:` and `uniprot:` references with optional 1-based canonical ranges (pass multiple arguments for complexes). Use the Python API below for ligands, DNA/RNA, templates, local `.a3m` MSAs, mmCIF output, or batch bucketing.
|
|
100
|
+
|
|
101
|
+
To fold human ubiquitin (76 residues) from the terminal, pass its sequence or a PDB/UniProt reference directly. On first run, checkpoints stream in parallel with stage compilation and are cached in `~/.cache/tensorferry`:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Fold ubiquitin with Boltz-2 (default, single-sequence mode)
|
|
105
|
+
mufold predict MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG
|
|
106
|
+
|
|
107
|
+
# Or fetch directly from PDB / UniProt (with optional 1-based canonical residue ranges)
|
|
108
|
+
mufold predict pdb:1UBQ:A
|
|
109
|
+
mufold predict uniprot:P0CG48:1-76 --msa
|
|
110
|
+
|
|
111
|
+
# Fast single-sequence folding with ESMFold2.1 Fast (~13 GB weights including ESM-C 6B)
|
|
112
|
+
mufold predict pdb:1UBQ:A -m esmfold2:fast
|
|
113
|
+
|
|
114
|
+
# Fold a multi-chain complex (mix raw sequences, PDB chains/ranges, and UniProt entries freely)
|
|
115
|
+
mufold predict pdb:4HHB:A:1-80 pdb:4HHB:B:10-90 -m opendde2:co --msa --num-samples 3 -o out --name complex
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
> **Data privacy:** `--msa` (and `fetch_msas` in Python) sends protein sequences to `https://api.colabfold.com`. For proprietary sequences, point `--msa-server` or `MMSEQS_SERVICE_HOST_URL` at an internal MMseqs2 server, or pass local `.a3m` files in Python.
|
|
119
|
+
|
|
120
|
+
Each CLI run writes a self-contained folder (`r-<ulid>/` by default, or `<out>/<name>/`):
|
|
121
|
+
|
|
122
|
+
```text
|
|
123
|
+
out/complex/
|
|
124
|
+
run.yaml # Validated run inputs and cached MSA paths
|
|
125
|
+
result.yaml # Status, UTC timestamps, chain summary, and ranked metrics
|
|
126
|
+
a0001.bcif ... a0003.bcif # Ranked structures (BinaryCIF; B-factors hold 0-100 pLDDT)
|
|
127
|
+
a0001_pae.npz ... a0003_pae.npz # PAE, PDE, token/atom pLDDT, and token-to-chain mappings
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Supported `--model` specs cover `boltz2` (default), `opendde`, `opendde:abag`, `opendde2`, `opendde2:co`, `mol1`, `promera`, `esmfold2`, `esmfold2:fast`, and the experimental ESMFold2 variants (`mufold predict --help`). See the [CLI reference](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/cli/README.md) for all flags and output schemas.
|
|
131
|
+
|
|
132
|
+
### Co-folding in Python
|
|
133
|
+
|
|
134
|
+
Every folding port accepts the same `Job` description (`Protein`, `DNA`, `RNA`, `Ligand`, `Bond`, `Modification`, `Template`) and returns ranked predictions with uniform confidence metrics. Calling `load_model()` on any model package returns a `Pending` handle immediately, so checkpoints stream in the background while MSAs fetch and XLA compiles. Every prediction, generation, sampling, and design entry point accepts that `Pending` handle directly (or call `.result()` if you need to inspect the loaded module):
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
from pathlib import Path
|
|
138
|
+
from mufold import Job, Ligand, Protein, fetch_msas
|
|
139
|
+
from mufold.models import boltz2
|
|
140
|
+
from mufold.output import write_prediction
|
|
141
|
+
|
|
142
|
+
model = boltz2.load_model() # streams weights in the background
|
|
143
|
+
|
|
144
|
+
job = Job(
|
|
145
|
+
name="ubiquitin_aspirin",
|
|
146
|
+
sequences=[
|
|
147
|
+
Protein(
|
|
148
|
+
"MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG",
|
|
149
|
+
ids="A",
|
|
150
|
+
# Or pass a local alignment string instead of calling fetch_msas:
|
|
151
|
+
# unpaired_msa=Path("ubiquitin.a3m").read_text(),
|
|
152
|
+
),
|
|
153
|
+
Ligand(smiles="CC(=O)Oc1ccccc1C(=O)O", ids="B"),
|
|
154
|
+
],
|
|
155
|
+
)
|
|
156
|
+
job = fetch_msas(job, cache=True) # optional: fetch from ColabFold MMseqs2 and cache locally
|
|
157
|
+
|
|
158
|
+
result = boltz2.predict(model, job, num_samples=5, key=0)
|
|
159
|
+
best = result.samples()[result.best]
|
|
160
|
+
print(best.ptm, best.iptm, best.ranking_score, best.chain_plddt)
|
|
161
|
+
|
|
162
|
+
write_prediction(result, "out/ubiquitin_aspirin", name="ubiquitin_aspirin")
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
`result.ranking` orders sample indices best-first, so `result.samples()[result.best]` gives the top-ranked `Sample` with its Biotite `AtomArray` in `best.atoms` and per-chain pLDDT (0–100) in `best.chain_plddt`. `write_prediction` writes `manifest.json` plus ranked `sample_<rank>.cif`, `.json`, and `.npz` files; pass `binary=True` for `.bcif` instead. You can also construct entries directly from UniProt or RCSB PDB with 1-based canonical ranges: `Protein.from_uniprot("P0CG48", residues="1-76")`, `Protein.from_pdb("1UBQ", chain="A", residues="1-70")`, or `Job.from_pdb("4HHB", chains=("A", "B"))`.
|
|
166
|
+
|
|
167
|
+
To run the same complex through another co-folding model, swap `boltz2` for `opendde`, `mol1`, or `promera`. `esmfold2` follows the same contract but takes an explicit `esmc=` backbone so multiple variants can share one ESM-C 6B instance (see the [ESMFold2 guide](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/esmfold2/README.md)). `alphafold2` is protein-only and requires `profile="colabfold"` when passing `num_samples`. `bioemu2` samples protein-only conformational ensembles without confidence scores.
|
|
168
|
+
|
|
169
|
+
Shared prediction options across diffusion folding ports:
|
|
170
|
+
|
|
171
|
+
- `recycling_steps`: additional trunk passes (`0` runs a single pass; omit to keep the model's preset).
|
|
172
|
+
- `sampling_steps`: diffusion denoising steps.
|
|
173
|
+
- `num_samples`: number of structures to sample and rank.
|
|
174
|
+
- `key`: integer seed (`key=0`) or explicit `jax.random.key(...)`.
|
|
175
|
+
- `precision`: `"bf16"` (GPU/MLX only), `"fp16"` (MLX only), `"fp32"`, or `None` for the backend/model default.
|
|
176
|
+
- `kernel`: `"auto"`, `"cueq"` (CUDA 13), `"highpairformer"` (Apple Silicon MLX on PyPI), or `"xla"`.
|
|
177
|
+
- `pad_to=PadTo(...)`: pad inputs to fixed bucket sizes to reuse compiled executables across sweeps.
|
|
178
|
+
|
|
179
|
+
## Models & deep dives
|
|
180
|
+
|
|
181
|
+
Each model package has its own README with full capability matrices, checkpoint variants, and model-specific APIs (templates, constraints, conditioning, and trajectories).
|
|
182
|
+
|
|
183
|
+
### Structure prediction & co-folding
|
|
184
|
+
|
|
185
|
+
| Model & guide | Molecules & highlights | Weight license | Upstream |
|
|
186
|
+
| --- | --- | --- | --- |
|
|
187
|
+
| [`mufold.models.boltz2`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/boltz2/README.md) | Proteins, DNA/RNA, ligands, covalent bonds, templates, binding affinity, B-factors, pocket/contact constraints, FK potentials, steering, design (~1.4 GB) | MIT | [jwohlwend/boltz](https://github.com/jwohlwend/boltz) |
|
|
188
|
+
| [`mufold.models.esmfold2`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/esmfold2/README.md) | Proteins, DNA/RNA, ligands, covalent bonds on frozen ESM-C 6B; release, no-MSA Fast, and experimental checkpoints; steering, design (~13 GB w/ ESM-C 6B) | MIT | [Biohub/esm](https://github.com/Biohub/esm) |
|
|
189
|
+
| [`mufold.models.opendde`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/opendde/README.md) | Proteins, DNA/RNA, ligands, templates, RNA MSAs, Ab/Ag & v2 co-folding checkpoints, distance constraints, TFG guidance, steering, design | Apache-2.0 (v1) / OpenDDE-v2 Community (v2) | [aurekaresearch/OpenDDE](https://github.com/aurekaresearch/OpenDDE) |
|
|
190
|
+
| [`mufold.models.mol1`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/mol1/README.md) | Proteins, DNA/RNA, ligands, templates, RNA MSAs, PairMixer architecture, steering, design | Apache-2.0 | [molence/Mol-1](https://github.com/molence/Mol-1) |
|
|
191
|
+
| [`mufold.models.promera`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/promera/README.md) | Proteins, DNA/RNA, ligands, RNA MSAs, taxonomy/epitope/distance conditioning, steering, design | MIT | [bjing2016/promera](https://github.com/bjing2016/promera) |
|
|
192
|
+
| [`mufold.models.alphafold2`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/alphafold2/README.md) | Protein monomers & Multimer v3 (cyclic supported), templates, DeepMind & ColabFold execution profiles | CC-BY-4.0 | [google-deepmind/alphafold](https://github.com/google-deepmind/alphafold) |
|
|
193
|
+
| [`mufold.models.protenix2`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/protenix2/README.md) | Proteins, DNA/RNA, ligands, templates, RNA MSAs, steering, design *(not hosted publicly; requires authorized private checkpoint)* | Proprietary / restricted | [bytedance/Protenix](https://github.com/bytedance/Protenix) |
|
|
194
|
+
|
|
195
|
+
### Conformational ensembles & generative design
|
|
196
|
+
|
|
197
|
+
| Model & guide | Capabilities | Weight license | Upstream |
|
|
198
|
+
| --- | --- | --- | --- |
|
|
199
|
+
| [`mufold.models.bioemu2`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/bioemu2/README.md) | All-atom protein equilibrium ensembles (`bioemu2-preview`, no confidence head), MD lag-time propagation (`propagate`, `simulate_trajectory`), potentials, design | MIT | [microsoft/bioemu2](https://github.com/microsoft/bioemu2) |
|
|
200
|
+
| [`mufold.models.rfd4`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/rfd4/README.md) | All-atom sequence/structure flow matching, motif & non-protein conditioning, inverse folding, partial diffusion, side-chain packing, trajectory search | BSD-3-Clause | [RosettaCommons/RFD4-Proteina](https://github.com/RosettaCommons/RFD4-Proteina) |
|
|
201
|
+
| [`mufold.models.genie3`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/genie3/README.md) | Unconditional and motif-conditioned Cα backbone diffusion and trajectory search | Apache-2.0 | [aqlaboratory/genie3](https://github.com/aqlaboratory/genie3) |
|
|
202
|
+
|
|
203
|
+
### Inverse folding, protein language models & affinity
|
|
204
|
+
|
|
205
|
+
| Model & guide | Capabilities | Weight license | Upstream |
|
|
206
|
+
| --- | --- | --- | --- |
|
|
207
|
+
| [`mufold.models.mpnn`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/mpnn/README.md) | Fixed-backbone sequence sampling (`protein_mpnn`, `soluble_mpnn`, `ligand_mpnn`, `ca_protein_mpnn`), side-chain packing, and `InverseFoldingSequenceRecovery` | MIT | [dauparas/LigandMPNN](https://github.com/dauparas/LigandMPNN) |
|
|
208
|
+
| [`mufold.models.proton_potts`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/proton_potts/README.md) | pH-aware 30-state EV6 inverse folding, protonation-state scoring, pH binder redesign (`PottsMPNNPHEngine`), differentiable `AcidOnLoss` | MIT / BSD-3-Clause | [christian-creator/ProtonPottsMPNN](https://github.com/christian-creator/ProtonPottsMPNN) |
|
|
209
|
+
| `mufold.models.esmc` | ESM-C 300M / 600M / 6B encoders (BF16), MLM/classification heads, sparse autoencoders (SAEs), differentiable `EsmcDesigner` | MIT | [Biohub/esm](https://github.com/Biohub/esm) |
|
|
210
|
+
| `mufold.models.esm2` | ESM-2 8M / 35M / 650M protein language models, differentiable in sequence | MIT | [facebookresearch/esm](https://github.com/facebookresearch/esm) |
|
|
211
|
+
| [`mufold.models.nesso1`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/nesso1/README.md) | Protein–ligand distogram and binding affinity prediction (built on ESM-2), differentiable in protein sequence (`affinity_of_sequence`) | Apache-2.0 | [recursionpharma/nesso](https://huggingface.co/recursionpharma/nesso) |
|
|
212
|
+
|
|
213
|
+
### Biophysical scoring & relaxation
|
|
214
|
+
|
|
215
|
+
| Module & guide | Capabilities | Parameter license | Upstream |
|
|
216
|
+
| --- | --- | --- | --- |
|
|
217
|
+
| [`mufold.tmol`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/tmol/README.md) | Differentiable 20-term `beta2016` scoring, hydrogen/oxygen completion, rotamer packing, and Cartesian FastRelax for canonical proteins (pure JAX/NumPy/SciPy) | Apache-2.0 | [RosettaCommons/tmol](https://github.com/RosettaCommons/tmol) |
|
|
218
|
+
|
|
219
|
+
## Co-folding, affinity & batch sweeps
|
|
220
|
+
|
|
221
|
+
### Binding affinity and custom ligands
|
|
222
|
+
|
|
223
|
+
Boltz-2 scores binding affinity for a single-copy, single-residue ligand (up to 128 heavy atoms; highest accuracy ≤56 heavy atoms) when you load the affinity head alongside the structure checkpoint. For SDF/MOL2 inputs with explicit stereochemistry or protonation states, build ligands via `mufold.Component.from_mol(rdkit_mol)`:
|
|
224
|
+
|
|
225
|
+
```python
|
|
226
|
+
from mufold.models import boltz2
|
|
227
|
+
|
|
228
|
+
model = boltz2.load_model()
|
|
229
|
+
aff_model = boltz2.load_model(affinity=True)
|
|
230
|
+
|
|
231
|
+
result = boltz2.predict(model, job, affinity="B", affinity_model=aff_model, key=0)
|
|
232
|
+
print(result.affinity) # affinity_pred_value (log10 IC50 uM), affinity_probability_binary
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Passing `affinity="B"` requires `affinity_model=aff_model`. See the [Boltz-2 guide](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/boltz2/README.md) for pocket and contact constraints, covalent `Bond` syntax, and templates, or the [Nesso-1 guide](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/nesso1/README.md) for sequence-differentiable affinity scoring. Note that `mufold.Template` expects an explicit `residue_map` when PDB residue numbers do not match `1..L`, whereas Boltz-2's native `Template` aligns sequences with BLOSUM62.
|
|
236
|
+
|
|
237
|
+
### Batch screening without recompiling (`PadTo`)
|
|
238
|
+
|
|
239
|
+
XLA compiles one executable per input tensor shape. When screening a library of complexes of varying lengths, fit a shared `PadTo` bucket once so every target reuses the same compiled executable. Set `JAX_COMPILATION_CACHE_DIR` to persist those executables across processes:
|
|
240
|
+
|
|
241
|
+
```python
|
|
242
|
+
from mufold import PadTo
|
|
243
|
+
from mufold.models import boltz2
|
|
244
|
+
|
|
245
|
+
model = boltz2.load_model()
|
|
246
|
+
bucket = PadTo.fit(jobs, featurize=boltz2.features_for_job)
|
|
247
|
+
|
|
248
|
+
results = [boltz2.predict(model, job, pad_to=bucket, key=0) for job in jobs]
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## Pair-state distance steering
|
|
252
|
+
|
|
253
|
+
When you have experimental distance restraints from crosslinking MS, NMR, or mutagenesis, `steered_predict` guides a folding model without changing its weights. Start with `features_for_job` so `resolve_pairs` can map 1-based `(chain, residue)` positions onto the model's token axis, which expands when ligands or multiple copies are present. `steered_predict` then optimizes a regularized perturbation to the recycled pair state against your objective, releases it, and runs the normal sampler and confidence head:
|
|
254
|
+
|
|
255
|
+
```python
|
|
256
|
+
import jax
|
|
257
|
+
from mufold import Job, Protein
|
|
258
|
+
from mufold.design import PairContacts
|
|
259
|
+
from mufold.models import promera
|
|
260
|
+
from mufold.steering import SteeringConfig
|
|
261
|
+
|
|
262
|
+
job = Job("contacts", [Protein("ACAGKLEAGKLEAGKLEAGKLEAGKLEACA", ids="A")])
|
|
263
|
+
prepared = promera.features_for_job(job)
|
|
264
|
+
|
|
265
|
+
objective = PairContacts(
|
|
266
|
+
prepared.resolve_pairs([(("A", 2), ("A", 29)), (("A", 8), ("A", 21))]),
|
|
267
|
+
cutoff=6.0,
|
|
268
|
+
contact=[True, False],
|
|
269
|
+
)
|
|
270
|
+
prediction, report = promera.steered_predict(
|
|
271
|
+
promera.load_model(),
|
|
272
|
+
prepared,
|
|
273
|
+
objective=objective,
|
|
274
|
+
key=jax.random.key(0),
|
|
275
|
+
config=SteeringConfig(),
|
|
276
|
+
)
|
|
277
|
+
print(report.probabilities_after, report.sampled_pair_satisfied)
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
`report.probabilities_after` reports each pair's released distogram probability for the requested event (`contact=True` for within 6 Å, `False` for farther), and `report.sampled_pair_satisfied` checks whether the sampled coordinates actually met each cutoff.
|
|
281
|
+
|
|
282
|
+
Three practical details matter for real XL-MS and NMR restraints:
|
|
283
|
+
|
|
284
|
+
- **Distance definition & ceilings:** Protein pairs measure **Cβ–Cβ** (Cα for Gly) distances. Distogram cutoffs cap at each model's maximum finite bin: ~22 Å on Boltz-2, Promera, and Protenix-v2, versus 25+ Å on OpenDDE (prefer OpenDDE for 25–30 Å crosslinks). Use `PairDistanceRange` for interval or upper-bound restraints.
|
|
285
|
+
- **Compute budget:** Default `SteeringConfig()` runs up to 60 forward+backward trunk passes; reduce `steps` (e.g., `SteeringConfig(steps=10)`) for fast laptop exploration.
|
|
286
|
+
- **Confidence caveat:** Steering can inflate pLDDT even for incompatible restraints, so inspect per-pair satisfaction and never use steered confidence to pick between competing target hypotheses.
|
|
287
|
+
|
|
288
|
+
Supported on Boltz-2, ESMFold2, Promera, OpenDDE, Protenix-v2, and Mol-1.
|
|
289
|
+
|
|
290
|
+
## De novo protein design
|
|
291
|
+
|
|
292
|
+
### Differentiable binder design (Mosaic recipe)
|
|
293
|
+
|
|
294
|
+
To design a binder against a fixed target, hold the folding model's weights fixed and optimize a batch of continuous amino-acid distributions on the simplex. Contact-only hallucination often collapses when rounded to discrete amino acids. Combining hotspot-targeted `BinderTargetContact`, `WithinBinderContact`, and `InverseFoldingSequenceRecovery` (with SolubleMPNN, ProteinMPNN, or LigandMPNN) in [Mosaic](https://github.com/escalante-bio/mosaic)'s **2 : 1 : 5** weighting produces sequences that hold up on native refolding (see [Performance & hardware notes](#performance--hardware-notes)):
|
|
295
|
+
|
|
296
|
+
```python
|
|
297
|
+
import jax
|
|
298
|
+
import numpy as np
|
|
299
|
+
from mufold import Job, Protein, fetch_msas
|
|
300
|
+
from mufold.design import AMINO_ACIDS, BinderTargetContact, WithinBinderContact, optimize_then_sharpen
|
|
301
|
+
from mufold.models import boltz2, mpnn, opendde
|
|
302
|
+
from mufold.models.boltz2.design import BoltzDesignLoss
|
|
303
|
+
from mufold.models.mpnn.design import InverseFoldingSequenceRecovery
|
|
304
|
+
|
|
305
|
+
target = "MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG"
|
|
306
|
+
job = fetch_msas(Job("ubq_binder", [Protein(target, ids="A"), Protein("A" * 40, ids="B")]), cache=True)
|
|
307
|
+
prepared = boltz2.features_for_job(job)
|
|
308
|
+
binder_rows = np.flatnonzero(prepared.token_chain_id == "B")
|
|
309
|
+
|
|
310
|
+
objective = (
|
|
311
|
+
2.0 * BinderTargetContact(epitope_idx=[7, 43, 69]) # target hotspot residues (0-based on target)
|
|
312
|
+
+ 1.0 * WithinBinderContact()
|
|
313
|
+
+ 5.0 * InverseFoldingSequenceRecovery(mpnn.load_model("soluble_mpnn"))
|
|
314
|
+
)
|
|
315
|
+
loss = BoltzDesignLoss(boltz2.load_model(), prepared.features, binder_rows, output_loss=objective)
|
|
316
|
+
|
|
317
|
+
key = jax.random.key(0)
|
|
318
|
+
init = jax.nn.softmax(jax.random.normal(key, (4, len(binder_rows), 20)), axis=-1)
|
|
319
|
+
no_cys = np.array([aa == "C" for aa in AMINO_ACIDS]) # exclude cysteines
|
|
320
|
+
|
|
321
|
+
design = optimize_then_sharpen(loss, init, key=key, letter_mask=no_cys)
|
|
322
|
+
sequences = ["".join(AMINO_ACIDS[i] for i in row) for row in np.asarray(design.final.argmax(-1))]
|
|
323
|
+
|
|
324
|
+
# Independently refold the top candidate with a different model and fresh seed
|
|
325
|
+
refold = opendde.predict(
|
|
326
|
+
opendde.load_model("opendde-v2-co"),
|
|
327
|
+
Job("check", [Protein(target, ids="A"), Protein(sequences[0], ids="B")]),
|
|
328
|
+
key=42,
|
|
329
|
+
)
|
|
330
|
+
best = refold.samples()[refold.best]
|
|
331
|
+
print(best.iptm, best.chain_plddt)
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
`optimize_then_sharpen` runs 75 soft APGM steps followed by up to 50 sharpening steps across all 4 designs. Expect roughly 1 minute of compilation plus 5 minutes of optimization on a GPU; avoid running this loop on CPU. Always rebuild native features and refold rounded candidates independently, because continuous mixtures can outscore concrete sequences.
|
|
335
|
+
|
|
336
|
+
Additional design building blocks in `mufold.design`:
|
|
337
|
+
|
|
338
|
+
- **Multi-model & negative design:** Combine Boltz-2, OpenDDE, Promera, ESMFold2, Mol-1, Protenix-v2, or BioEmu2 adapters via `PooledDistogramLoss` to suppress single-model hallucination exploits. Add `OffTargetIPTM(ceiling=...)` against an off-target complex for specificity. *(OpenDDE, Promera, ESMFold2, and BioEmu2 wrap prepared inputs in a port-specific `*DesignFeatures` helper; see each model's README.)*
|
|
339
|
+
- **Confidence & geometry terms:** Compose `PLDDTLoss`, `IPTMLoss`, `BinderTargetIPTM`, `IPSAE`, `BinderTargetPAE`, `WithinBinderPAE`, `pTMEnergy`, `ConfidenceScoredDesignLoss`, `HelixLoss`, `StrandLoss`, and `DistogramRadiusOfGyration`.
|
|
340
|
+
- **Standalone differentiable signals:** Optimize directly against binding affinity in [`mufold.models.nesso1`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/nesso1/README.md) (`affinity_of_sequence`), ESM-C sparse autoencoder features in `mufold.models.esmc` (`EsmcDesigner`), or pH-switch electrostatics in [`mufold.models.proton_potts`](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/proton_potts/README.md) (`AcidOnLoss`).
|
|
341
|
+
|
|
342
|
+
### Generative design & trajectory search (RFD4, MPNN, BioEmu2)
|
|
343
|
+
|
|
344
|
+
For backbone-first binder generation, `mufold.models.rfd4` generates conditioned all-atom complexes and composes directly with `mufold.models.mpnn` and `mufold.design.beam_search` in the same process:
|
|
345
|
+
|
|
346
|
+
```python
|
|
347
|
+
import jax
|
|
348
|
+
from mufold.design.conditions import BinderDesign, Range, Span
|
|
349
|
+
from mufold.models import mpnn, rfd4
|
|
350
|
+
from mufold.models.mpnn.alphabet import RESTYPE_ALPHABET
|
|
351
|
+
|
|
352
|
+
condition = BinderDesign(target_atoms, binder_length=Range(50, 70), interface=(Span("A", 8, 44),))
|
|
353
|
+
sample = rfd4.generate(rfd4.load_model(scan=True), condition, key=jax.random.key(0))
|
|
354
|
+
atoms = rfd4.to_atom_array(sample) # generated binder is chain A; target follows on chain B
|
|
355
|
+
|
|
356
|
+
inp = mpnn.from_atom_array(atoms, mpnn.DesignSettings(design_chains=("A",), temperature=0.1))
|
|
357
|
+
redesigned = mpnn.sample(mpnn.load_model("soluble_mpnn"), inp, key=jax.random.key(1), num_sequences=8)
|
|
358
|
+
print(redesigned.strings(RESTYPE_ALPHABET))
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
For deeper workflows, see the model guides:
|
|
362
|
+
|
|
363
|
+
- [RFD4 guide](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/rfd4/README.md) — `rfd4.trajectory`, `beam_search`, `Refolded`, inverse folding, and partial diffusion.
|
|
364
|
+
- [MPNN guide](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/mpnn/README.md) — LigandMPNN context and side-chain packing.
|
|
365
|
+
- [Genie 3 guide](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/genie3/README.md) — Cα backbone diffusion and trajectory search.
|
|
366
|
+
- [BioEmu2 guide](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/models/bioemu2/README.md) — equilibrium ensembles and MD lag-time propagation.
|
|
367
|
+
|
|
368
|
+
## All-atom scoring & FastRelax
|
|
369
|
+
|
|
370
|
+
`mufold.tmol` implements Rosetta/Tmol's 20-term `beta2016` force field, rotamer packing (`pack_rotamers`), and Cartesian FastRelax (`fast_relax`) in pure JAX, NumPy, and SciPy with no C++ build step. It supports canonical, disulfide-free proteins only; ligands, ions, metals, disulfides, non-canonical residues, and missing side-chain heavy atoms raise before scoring.
|
|
371
|
+
|
|
372
|
+
Because structure predictors output heavy atoms only, `complete_atoms` first places missing hydrogens and terminal oxygens and returns a differentiable coordinate map (`completed.builder`). For proteins with neutral histidines, such as His68 in ubiquitin, pass `residue_types` or a `tmol_residue_type` annotation to select `"HIS"` or `"HIS_D"` explicitly so protonation states are never guessed:
|
|
373
|
+
|
|
374
|
+
```python
|
|
375
|
+
import equinox as eqx
|
|
376
|
+
import jax
|
|
377
|
+
import jax.numpy as jnp
|
|
378
|
+
from biotite.structure import get_residue_starts
|
|
379
|
+
from mufold.tmol import complete_atoms, fast_relax, prepare
|
|
380
|
+
|
|
381
|
+
# Extract chain A heavy atoms from a prediction (e.g., best.atoms from a fold)
|
|
382
|
+
heavy_atoms = best.atoms[best.atoms.chain_id == "A"]
|
|
383
|
+
res_types = ["HIS" if r == "HIS" else None for r in heavy_atoms.res_name[get_residue_starts(heavy_atoms)]]
|
|
384
|
+
completed = complete_atoms(heavy_atoms, residue_types=res_types)
|
|
385
|
+
system = prepare(completed.atoms, score_function="beta2016")
|
|
386
|
+
|
|
387
|
+
# Cartesian FastRelax (side-chain repacking + ramped minimization)
|
|
388
|
+
relaxed = fast_relax(system)
|
|
389
|
+
print(f"beta2016: {relaxed.initial_energy:.2f} -> {relaxed.energy:.2f}")
|
|
390
|
+
|
|
391
|
+
# Or differentiate beta2016 back to the original heavy-atom coordinates
|
|
392
|
+
energy_and_grad = eqx.filter_jit(
|
|
393
|
+
lambda scorer, builder, xyz: jax.value_and_grad(lambda x: scorer(builder(x)))(xyz)
|
|
394
|
+
)
|
|
395
|
+
energy, grad = energy_and_grad(system.scorer, completed.builder, jnp.asarray(heavy_atoms.coord))
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
`relaxed.energy` and `energy` are in Tmol score units (`grad` is in score units per Ångström). Note that `prepare` defaults to `score_function="subset"` (10 terms); pass `score_function="beta2016"` for the full 20-term force field and `fast_relax`. See the [Tmol guide](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/tmol/README.md) for details on residue templates, `pack_rotamers`, and `relax`.
|
|
399
|
+
|
|
400
|
+
## Performance & hardware notes
|
|
401
|
+
|
|
402
|
+
Representative warm GPU runtimes measured on an **NVIDIA RTX PRO 6000 Blackwell** (`precision="bf16"`, real ColabFold MSAs, 5 diffusion samples except AlphaFold2's 1 sample, excluding one-time cold XLA compile):
|
|
403
|
+
|
|
404
|
+
| Model (default recycles, steps, samples) | Ubiquitin (`N=76`) | Trypsin+Zn (`N=227`) | Hemoglobin (`N=746`) |
|
|
405
|
+
| --- | ---: | ---: | ---: |
|
|
406
|
+
| `esmfold2_fast` (20, 200, 5) | 0.26 s | 0.65 s | 5.02 s |
|
|
407
|
+
| `esmfold2` (20, 200, 5) | 0.41 s | 1.15 s | 9.43 s |
|
|
408
|
+
| `promera` (3, 200, 5) | 0.50 s | 1.21 s | 7.33 s |
|
|
409
|
+
| `boltz2` (3, 200, 5) | 0.56 s | 1.25 s | 6.98 s |
|
|
410
|
+
| `alphafold2` (3, –, 1) | 0.76 s | 3.17 s | – |
|
|
411
|
+
| `opendde` (9, 200, 5) | 1.17 s | 3.88 s | 26.41 s |
|
|
412
|
+
| `mol1` (19, 200, 5) | 1.84 s | 5.54 s | 36.92 s |
|
|
413
|
+
|
|
414
|
+
For differentiable binder design, we compared contact-only NLL against the Mosaic 2:1:5 recipe with MPNN recovery on TrkA (101-aa target + 50-aa binder, 75+50 steps, ~318 s on CUDA excluding compile). The Mosaic recipe reached a native Boltz-2 refold **ipTM of 0.719**, binder mean Cα **pLDDT of 67.5**, and **0 interface clashes (<2 Å)**. On the same budget, contact-only NLL reached ipTM 0.386, pLDDT 35.9, and 3 clashes.
|
|
415
|
+
|
|
416
|
+
## Weights, caching & offline use
|
|
417
|
+
|
|
418
|
+
Public checkpoints and Tmol scoring tables stream on demand from `https://mufold.revanta.bio/v1/weights/` through [tensorferry](https://github.com/Revanta-Inc/tensorferry). **Local disk caching is enabled by default** in `$XDG_CACHE_HOME/tensorferry` (`~/.cache/tensorferry`) so subsequent runs load locally without re-downloading. In ephemeral containers with limited disk space, set `TENSORFERRY_CACHE_MAX_BYTES` to cap cache size or `TENSORFERRY_CACHE=0` to stream without writing to disk.
|
|
419
|
+
|
|
420
|
+
| Environment variable | Purpose |
|
|
421
|
+
| --- | --- |
|
|
422
|
+
| `TENSORFERRY_CACHE` | Local checkpoint cache (enabled by default in `~/.cache/tensorferry`; set to a path to redirect, or `0` to disable). |
|
|
423
|
+
| `TENSORFERRY_CACHE_MAX_BYTES` | Optional byte limit for the local tensorferry disk cache. |
|
|
424
|
+
| `MUFOLD_WEIGHTS` | Override the checkpoint root with a local directory, HTTP URL, or object-store prefix (`s3://`, `gs://`, `az://`). |
|
|
425
|
+
| `MUFOLD_MSA_CACHE` | Directory for cached ColabFold MSAs (enabled by default in the CLI in `~/.cache/mufold/msa`; opt-in in Python via `cache=True` or setting this variable; set to `0` to disable). |
|
|
426
|
+
| `MMSEQS_SERVICE_HOST_URL` | Override the ColabFold MMseqs2 API endpoint (default `https://api.colabfold.com`). |
|
|
427
|
+
| `JAX_COMPILATION_CACHE_DIR` | Persist compiled XLA executables across processes (pairs with `PadTo` for multi-target sweeps). |
|
|
428
|
+
| `HIGHPAIRFORMER_MLX` | Set to `0` on Apple Silicon to disable MLX and run JAX on CPU. |
|
|
429
|
+
|
|
430
|
+
**Air-gapped clusters & private weights:** To self-host checkpoints without contacting `mufold.revanta.bio`, mirror the weights root into a local directory or private `s3://`/`gs://` bucket and set `MUFOLD_WEIGHTS`. Protenix-v2 weights are not hosted publicly; point `MUFOLD_WEIGHTS` to an authorized private root containing `protenix2/` or pass an explicit path to `protenix2.load_model(...)`.
|
|
431
|
+
|
|
432
|
+
## Attributions
|
|
433
|
+
|
|
434
|
+
mufold is heavily inspired by [Mosaic](https://github.com/escalante-bio/mosaic) by [Escalante Bio](https://github.com/escalante-bio), whose pure JAX/Equinox architecture enabled mufold's composable design stack—including its loss algebra, simplex APGM optimization, soft-to-sharpened binder recipes (MIT License; [MOSAIC_LICENSE.txt](https://github.com/Revanta-Inc/mufold/blob/main/src/mufold/design/MOSAIC_LICENSE.txt).
|
|
435
|
+
|
|
436
|
+
## License & upstream models
|
|
437
|
+
|
|
438
|
+
mufold's source code is licensed under the **Apache License 2.0** ([LICENSE](https://github.com/Revanta-Inc/mufold/blob/main/LICENSE)).
|
|
439
|
+
|
|
440
|
+
Ported models, parameter tables, design assets, and published checkpoints remain subject to their respective upstream licenses. Check the **Weight license** column in [Models & deep dives](#models--deep-dives) and each module's `NOTICE` and `LICENSE` files before using its assets in commercial or production workflows.
|