Repository navigation
Add Colab tutorial notebooks - #12
Merged
Merged
Conversation
Add cloning of original sequence for partial input handling.
This reverts commit c4c080e.
Static cleanup of the two tutorial notebooks ahead of merging them into main: - Point every self-reference (Colab badges, `git clone`, raw figure URLs) at `main` rather than the `colab_tutorial` branch, so the links keep working once this merges and the branch goes away. - Delete `RFDpoly_inference_tutorial.ipynb`, a leftover duplicate of demo01 that differed only in its Colab badge URL. - demo02: remove a stray `!rm -r mpnn_designs/` cell that sat between the NA-MPNN design run and the cell that visualizes its output. - demo01: fix the Example 3(A) viewer, which pointed at an `example5a` prefix no cell writes. - demo01: replace a table of contents linking into a private Google Drive copy of the notebook with plain section listings. - demo02: correct the ASR1 contig string in the prose to match the command below it, and point the input-motif description at the file that actually ships in `rf_diffusion/test_data/`. - Drop empty cells, commented-out dead code, and stale TODOs; fix typos. Also add `tutorials/README.md` and a Tutorials table in the top-level README so the notebooks are findable from the front page. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges the two interactive Colab tutorials into
mainso users can find and run them from the front page.What this adds
tutorials/demo01_general_design.ipynb— polymer-class contigs, sequence–structure codesign, nucleic acid secondary structure conditioning (dot-bracket strings, paired-region lists, symmetry, strand orientation, multi-base contacts), and motif scaffolding of DNA-binding proteins.tutorials/demo02_ensemble_modeling.ipynb— motif scaffolding around a nucleotide ligand, conformational ensembles via partial diffusion, and multi-state sequence design with tied NA-MPNN.tutorials/assets/andrf_diffusion/test_data/.tutorials/README.mdplus a Tutorials table in the top-level README, both linking straight to Colab.Code changes outside the tutorials
Two small inference changes that demo02 depends on:
inference.keep_input_seq_partial(new, defaults toFalse): during partial diffusion, keeps the input sequence instead of masking it. demo02 uses this both to bias ensemble sampling toward a reference state and to hold NA-MPNN-designed sequences fixed during the short refinement runs.multi_polymer.yamldefaultinput_pdbchanged fromtest_data/DBP035.pdbtorf_diffusion/test_data/DBP035.pdb, so the default resolves when running from the repository root. Worth a look during review — this is a relative path either way, so it changes which working directory the default works from.Cleanup done in the last commit
The notebooks themselves were tested recently; this pass fixed static problems rather than behavior:
git clone -b, raw figure URLs) now point atmaininstead ofcolab_tutorial, so they keep working once this merges and the branch is deleted.RFDpoly_inference_tutorial.ipynb, a leftover duplicate of demo01 differing only in its badge URL.!rm -r mpnn_designs/cell in demo02 that sat between the NA-MPNN run and the cell visualizing its output.example5aprefix no cell writes.No cell outputs are stored in either notebook.
🤖 Generated with Claude Code