remove useful buttons
Browse files- app.py +1 -2
- molecule.py +3 -17
app.py
CHANGED
@@ -133,8 +133,7 @@ with demo:
|
|
133 |
gr.Markdown("# Output")
|
134 |
with gr.Row():
|
135 |
predict_btn = gr.Button("Predict")
|
136 |
-
|
137 |
-
mol_output = gr.HTML()
|
138 |
|
139 |
predict_btn.click(
|
140 |
fn=predict,
|
|
|
133 |
gr.Markdown("# Output")
|
134 |
with gr.Row():
|
135 |
predict_btn = gr.Button("Predict")
|
136 |
+
mol_output = gr.HTML()
|
|
|
137 |
|
138 |
predict_btn.click(
|
139 |
fn=predict,
|
molecule.py
CHANGED
@@ -118,26 +118,17 @@ def molecule(
|
|
118 |
<span class="ml-3 text-sm font-medium text-gray-900 dark:text-gray-300">Show side chains</span>
|
119 |
</label>
|
120 |
</div>
|
121 |
-
<div class="px-4 pt-2">
|
122 |
-
<label for="startstructure" class="relative inline-flex items-center mb-4 cursor-pointer ">
|
123 |
-
<input id="startstructure" type="checkbox" class="sr-only peer" checked>
|
124 |
-
<div class="w-11 h-6 bg-gray-200 rounded-full peer peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"></div>
|
125 |
-
<span class="ml-3 text-sm font-medium text-gray-900 dark:text-gray-300">Show input structure</span>
|
126 |
-
</label>
|
127 |
-
</div>
|
128 |
<button type="button" class="text-gray-900 bg-white hover:bg-gray-100 border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-100 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-gray-600 dark:bg-gray-800 dark:border-gray-700 dark:text-white dark:hover:bg-gray-700 mr-2 mb-2" id="download">
|
129 |
<svg class="w-6 h-6 mr-2 -ml-1" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg>
|
130 |
Download predicted structure
|
131 |
</button>
|
132 |
</div>
|
133 |
<div class="text-sm">
|
134 |
-
<div> RMSD AlphaFold vs. native: <span id="rmsd"></span> Å computed using CEAlign on the aligned fragment</div>
|
135 |
-
</div>
|
136 |
<div class="text-sm flex items-start">
|
137 |
<div class="w-1/2">
|
138 |
|
139 |
-
<div class="font-medium mt-4 flex items-center space-x-2"><b>
|
140 |
-
<div>
|
141 |
<div class="flex space-x-2 py-1"><span class="w-4 h-4" style="background-color: rgb(0, 83, 214);"> </span><span class="legendlabel">Very high
|
142 |
(pLDDT > 90)</span></div>
|
143 |
<div class="flex space-x-2 py-1"><span class="w-4 h-4" style="background-color: rgb(101, 203, 243);"> </span><span class="legendlabel">Confident
|
@@ -146,15 +137,10 @@ def molecule(
|
|
146 |
pLDDT > 50)</span></div>
|
147 |
<div class="flex space-x-2 py-1"><span class="w-4 h-4" style="background-color: rgb(255, 125, 69);"> </span><span class="legendlabel">Very low
|
148 |
(pLDDT < 50)</span></div>
|
149 |
-
<div class="row column legendDesc">
|
150 |
score (pLDDT) between 0 and 100. Some regions below 50 pLDDT may be unstructured in isolation.
|
151 |
</div>
|
152 |
</div>
|
153 |
-
<div class="w-1/2">
|
154 |
-
<div class="font-medium mt-4 flex items-center space-x-2"><b>Input structure </b><span class="w-4 h-4 bg-gray-300 inline-flex" ></span></div>
|
155 |
-
|
156 |
-
<div class="flex space-x-2 py-1"><span class="w-4 h-4" style="background-color:hotpink" > </span><span class="legendlabel">Fixed positions</span></div>
|
157 |
-
</div>
|
158 |
</div>
|
159 |
<script>
|
160 |
function drawStructures(i, selectedResidues) {
|
|
|
118 |
<span class="ml-3 text-sm font-medium text-gray-900 dark:text-gray-300">Show side chains</span>
|
119 |
</label>
|
120 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
<button type="button" class="text-gray-900 bg-white hover:bg-gray-100 border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-100 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-gray-600 dark:bg-gray-800 dark:border-gray-700 dark:text-white dark:hover:bg-gray-700 mr-2 mb-2" id="download">
|
122 |
<svg class="w-6 h-6 mr-2 -ml-1" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg>
|
123 |
Download predicted structure
|
124 |
</button>
|
125 |
</div>
|
126 |
<div class="text-sm">
|
|
|
|
|
127 |
<div class="text-sm flex items-start">
|
128 |
<div class="w-1/2">
|
129 |
|
130 |
+
<div class="font-medium mt-4 flex items-center space-x-2"><b>Boltz-1 model of redesigned sequence</b></div>
|
131 |
+
<div>Boltz-1 model confidence:</div>
|
132 |
<div class="flex space-x-2 py-1"><span class="w-4 h-4" style="background-color: rgb(0, 83, 214);"> </span><span class="legendlabel">Very high
|
133 |
(pLDDT > 90)</span></div>
|
134 |
<div class="flex space-x-2 py-1"><span class="w-4 h-4" style="background-color: rgb(101, 203, 243);"> </span><span class="legendlabel">Confident
|
|
|
137 |
pLDDT > 50)</span></div>
|
138 |
<div class="flex space-x-2 py-1"><span class="w-4 h-4" style="background-color: rgb(255, 125, 69);"> </span><span class="legendlabel">Very low
|
139 |
(pLDDT < 50)</span></div>
|
140 |
+
<div class="row column legendDesc"> Boltz-1 produces a per-residue confidence
|
141 |
score (pLDDT) between 0 and 100. Some regions below 50 pLDDT may be unstructured in isolation.
|
142 |
</div>
|
143 |
</div>
|
|
|
|
|
|
|
|
|
|
|
144 |
</div>
|
145 |
<script>
|
146 |
function drawStructures(i, selectedResidues) {
|