simonduerr
commited on
Commit
•
15f88a7
1
Parent(s):
006b0c6
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
|
2 |
---
|
3 |
tags: [gradio-custom-component,gradio-template-Textbox]
|
4 |
-
title: gradio_cofoldinginput V0.0.
|
5 |
-
colorFrom:
|
6 |
-
colorTo:
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
license: apache-2.0
|
|
|
1 |
|
2 |
---
|
3 |
tags: [gradio-custom-component,gradio-template-Textbox]
|
4 |
+
title: gradio_cofoldinginput V0.0.4
|
5 |
+
colorFrom: blue
|
6 |
+
colorTo: indigo
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
license: apache-2.0
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
gradio_cofoldinginput==0.0.
|
|
|
1 |
+
gradio_cofoldinginput==0.0.3
|
src/backend/gradio_cofoldinginput/templates/component/index.js
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
src/backend/gradio_cofoldinginput/templates/component/style.css
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
src/frontend/shared/Accordion.svelte
CHANGED
@@ -157,6 +157,14 @@
|
|
157 |
return residue_atoms[residue];
|
158 |
}
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
function getResname(covMod) {
|
161 |
// get sequence of matching protein chain
|
162 |
let seq = vals.find((val) => val.chain === covMod.protein).sequence;
|
@@ -414,12 +422,14 @@
|
|
414 |
{/if}
|
415 |
{/each}
|
416 |
|
417 |
-
<div
|
|
|
|
|
418 |
{#if covMods.length > 0}
|
419 |
<h4 class="text-center font-bold text-xl">Covalent Modification</h4>
|
420 |
{#each covMods as covMod, i}
|
421 |
<div class="flex p-10">
|
422 |
-
<div class="flex divide-x rounded border p-1">
|
423 |
<div class="w-3/5 flex-col px-2">
|
424 |
<div class="flex justify-center">
|
425 |
<span class="text-base font-medium text-gray-900">Protein</span>
|
@@ -441,16 +451,17 @@
|
|
441 |
<option value={chain}>{chain}</option>
|
442 |
{/each}
|
443 |
</select>
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
value={
|
449 |
-
on:
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
|
|
454 |
|
455 |
<select
|
456 |
name=""
|
@@ -1207,7 +1218,7 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
1207 |
--tw-contain-size: ;
|
1208 |
--tw-contain-layout: ;
|
1209 |
--tw-contain-paint: ;
|
1210 |
-
--tw-contain-style:
|
1211 |
;
|
1212 |
}
|
1213 |
|
@@ -1262,7 +1273,7 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
1262 |
--tw-contain-size: ;
|
1263 |
--tw-contain-layout: ;
|
1264 |
--tw-contain-paint: ;
|
1265 |
-
--tw-contain-style:
|
1266 |
;
|
1267 |
}
|
1268 |
|
|
|
157 |
return residue_atoms[residue];
|
158 |
}
|
159 |
|
160 |
+
function getResidues(covMod) {
|
161 |
+
// get sequence of matching protein chain
|
162 |
+
let seq = vals.find((val) => val.chain === covMod.protein).sequence;
|
163 |
+
|
164 |
+
// map single letters to three letter residues
|
165 |
+
return Array.from(seq).map((residue) => resmap[residue]);
|
166 |
+
}
|
167 |
+
|
168 |
function getResname(covMod) {
|
169 |
// get sequence of matching protein chain
|
170 |
let seq = vals.find((val) => val.chain === covMod.protein).sequence;
|
|
|
422 |
{/if}
|
423 |
{/each}
|
424 |
|
425 |
+
<div
|
426 |
+
class="p-5 border border-t-0 border-gray-200 dark:border-gray-700 w-full"
|
427 |
+
>
|
428 |
{#if covMods.length > 0}
|
429 |
<h4 class="text-center font-bold text-xl">Covalent Modification</h4>
|
430 |
{#each covMods as covMod, i}
|
431 |
<div class="flex p-10">
|
432 |
+
<div class="flex divide-x rounded border p-1 w-full">
|
433 |
<div class="w-3/5 flex-col px-2">
|
434 |
<div class="flex justify-center">
|
435 |
<span class="text-base font-medium text-gray-900">Protein</span>
|
|
|
451 |
<option value={chain}>{chain}</option>
|
452 |
{/each}
|
453 |
</select>
|
454 |
+
|
455 |
+
<select
|
456 |
+
name=""
|
457 |
+
id=""
|
458 |
+
bind:value={covMods[i].residue}
|
459 |
+
on:change={() => dispatch("updateCovMod", covMods)}
|
460 |
+
>
|
461 |
+
{#each getResidues(covMod) as resi, i}
|
462 |
+
<option value={i + 1}>{i + 1} {resi}</option>
|
463 |
+
{/each}
|
464 |
+
</select>
|
465 |
|
466 |
<select
|
467 |
name=""
|
|
|
1218 |
--tw-contain-size: ;
|
1219 |
--tw-contain-layout: ;
|
1220 |
--tw-contain-paint: ;
|
1221 |
+
--tw-contain-style:
|
1222 |
;
|
1223 |
}
|
1224 |
|
|
|
1273 |
--tw-contain-size: ;
|
1274 |
--tw-contain-layout: ;
|
1275 |
--tw-contain-paint: ;
|
1276 |
+
--tw-contain-style:
|
1277 |
;
|
1278 |
}
|
1279 |
|
src/pyproject.toml
CHANGED
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
8 |
|
9 |
[project]
|
10 |
name = "gradio_cofoldinginput"
|
11 |
-
version = "0.0.
|
12 |
description = "Component to enter protein and DNA sequences + small molecules for cofolding"
|
13 |
readme = "README.md"
|
14 |
license = "MIT"
|
@@ -36,7 +36,7 @@ classifiers = [
|
|
36 |
dev = ["build", "twine"]
|
37 |
|
38 |
[tool.hatch.build]
|
39 |
-
artifacts = ["/backend/gradio_cofoldinginput/templates", "*.pyi", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates"]
|
40 |
|
41 |
[tool.hatch.build.targets.wheel]
|
42 |
packages = ["/backend/gradio_cofoldinginput"]
|
|
|
8 |
|
9 |
[project]
|
10 |
name = "gradio_cofoldinginput"
|
11 |
+
version = "0.0.4"
|
12 |
description = "Component to enter protein and DNA sequences + small molecules for cofolding"
|
13 |
readme = "README.md"
|
14 |
license = "MIT"
|
|
|
36 |
dev = ["build", "twine"]
|
37 |
|
38 |
[tool.hatch.build]
|
39 |
+
artifacts = ["/backend/gradio_cofoldinginput/templates", "*.pyi", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates", "backend/gradio_cofoldinginput/templates"]
|
40 |
|
41 |
[tool.hatch.build.targets.wheel]
|
42 |
packages = ["/backend/gradio_cofoldinginput"]
|