|
34 | 34 | " pip -q install git+https://github.com/sokrypton/ColabDesign.git\n", |
35 | 35 | " mkdir params\n", |
36 | 36 | " curl -fsSL https://storage.googleapis.com/alphafold/alphafold_params_2022-03-02.tar | tar x -C params\n", |
37 | | - " for W in openfold_model_ptm_1 openfold_model_ptm_2 openfold_model_no_templ_ptm_1\n", |
38 | | - " do wget -qnc https://files.ipd.uw.edu/krypton/openfold/${W}.npz -P params; done\n", |
39 | 37 | "fi" |
40 | 38 | ] |
41 | 39 | }, |
|
84 | 82 | "model.prep_inputs(get_pdb(\"2MR5\"), chain=\"A\",\n", |
85 | 83 | " pos=old_pos, # define positions to contrain\n", |
86 | 84 | " length=100, # define if the desired length is different from input PDB\n", |
87 | | - " fix_seq=False, # set True to constrain the sequence\n", |
88 | | - " use_sidechains=False) # set True to restrain the sidechains\n", |
| 85 | + " fix_seq=False) # set True to constrain the sequence\n", |
89 | 86 | "\n", |
90 | 87 | "# set positions (if different from PDB)\n", |
91 | 88 | "# reorder the segments, \n", |
92 | 89 | "model.rewire(order = [1,2,3,0,7,4,5,6], # set order of segments\n", |
93 | 90 | " loops = [3,3,3,4,3,3,4], # change loop length inbetween segments\n", |
94 | | - " offset=0)\n", |
| 91 | + " offset=0) # essentially loop length at the N term\n", |
95 | 92 | "\n", |
96 | 93 | "print(model.opt[\"pos\"])" |
97 | 94 | ], |
|
106 | 103 | "source": [ |
107 | 104 | "# restart optimization\n", |
108 | 105 | "model.restart()\n", |
| 106 | + "# model.set_seq(mode=\"wildtype\") # initialize with wildtype sequence\n", |
109 | 107 | "\n", |
110 | | - "# balance weights [dgram_cce=restraint weight], [con=hallucination weight]\n", |
111 | | - "model.set_weights(dgram_cce=1, con=0.1)\n", |
112 | | - "\n", |
113 | | - "# design!\n", |
114 | | - "model.design_3stage(200,100,10)" |
| 108 | + "# balance weights [dgram_cce = restraint weight], [con = hallucination weight]\n", |
| 109 | + "model.set_weights(dgram_cce=1, con=0)\n", |
| 110 | + "model.design_3stage(300,100,10)" |
115 | 111 | ], |
116 | 112 | "metadata": { |
117 | 113 | "id": "bDA8cPqMT_eY" |
|
134 | 130 | { |
135 | 131 | "cell_type": "code", |
136 | 132 | "source": [ |
137 | | - "HTML(model.animate(dpi=100))" |
| 133 | + "HTML(model.animate())" |
138 | 134 | ], |
139 | 135 | "metadata": { |
140 | 136 | "id": "9sjG7kvoHaVi" |
|
0 commit comments