-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sequence at certain positions in Binder protocol #107
Comments
I believe that fix_pos is only currently supported in "fixbb" and "partial" modes (as per the README.md) |
I see. I can try to implement it if @sokrypton or other developers can give me some pointers. ColabDesign/colabdesign/af/design.py Line 373 in 13f3e72
to disallow mutations for some positions. |
The easiest way would be to modify the input bias.
af_model._inputs["bias"] is a (length,20) matrix. By default it is all
zeros. If you set some positions and amino acids to large positive values
they will be fixed to those amino acids.
Tell me if it doesn't work. I can take a closer look.
…On Wed, Jan 11, 2023, 10:37 AM amin-sagar ***@***.***> wrote:
I see. I can try to implement it if @sokrypton
<https://github.com/sokrypton> or other developers can give me some
pointers.
Maybe I need to change something here??
https://github.com/sokrypton/ColabDesign/blob/13f3e72a4a25c76942a6ff6526cb7ee0b1cd702c/colabdesign/af/design.py#L373
to disallow mutations for some positions.
I would be really grateful for any suggestions.
—
Reply to this email directly, view it on GitHub
<#107 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA76LAV3GQ7O6WJMLV4GXTTWR3HR5ANCNFSM6AAAAAASSYMR6U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks @sokrypton . I tried the following script but the generated peptides don't have prolines at the specified positions.
The bias matrix looks like this which seems to be correct.
Could you please see what I am doing wrong? |
Thanks for the report, the issue has been fixed in v1.1.1. But if you want to update your copy see: |
Thanks @sokrypton
I am trying to figure out what's happening but maybe it's instantly clear to you. |
Should be fixed now! Please try again! Suggested pipeline: from colabdesign.af.alphafold.common import residue_constants
bias = np.zeros((af_model._binder_len,20))
# example: force first position to be proline
bias[0,residue_constants.restype_order["P"]] = 1e8
af_model.restart()
af_model.set_seq(bias=bias)
af_model.design_pssm_semigreedy() |
Thanks @sokrypton |
Hello.
Thanks for this amazing work.
I am trying to redesign a peptide binder while keeping the sequence at some positions.
For example, I would like to keep the prolines at positions 2,9 and 16 as present in the input peptide.
I tried the following.
However, the designed peptides don't retain prolines at these positions.
Am I doing something wrong here?
I would be really grateful for any suggestions.
Thanks.
Amin.
The text was updated successfully, but these errors were encountered: