Emergent Site example - #12
Draft
paulflang wants to merge 3 commits into
Draft
Conversation
paulflang
commented
Jul 11, 2026
| let dimer = PatTm::let_( | ||
| [ObTm::var("cn"), ObTm::var("s4")], | ||
| MorTm::app("bond", []), | ||
| PatTm::tensor([polymer.clone(), PatTm::res("C", [MorTm::var("s4")])]), |
Collaborator
Author
There was a problem hiding this comment.
polymer.clone() is wrong here. First create a new variable polymer_free. Then you can use polymer_free.subst(&mut vec![name("e_SiteR1R1"), MorTm::var("s3")]) here.
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.
This is an implementation of the emergent site example discussed July 09.
I'm not planning to work further along that thread atm. But here are the open issues with the generated network for future reference:
R2present in the output and increasinggenerator.transitions(2)to3takes forever.Idk why we have abond_peptide [e_SiteR1R1 []]composite. This should not be possible, since their (co)domain does not match.We have a dimerization of non-polymerized R1 R1. This dimerization should only be possible after polymerization, which creates the requiredCNsite (needed for further restriction toSiteR1R1). But I don't see theCNsite in the output: