Update
Browse files- Dockerfile +4 -0
- demo/config.yaml +1 -1
- demo/modules/tmalign.py +1 -1
- requirements.txt +6 -2
Dockerfile
CHANGED
@@ -19,6 +19,10 @@ RUN conda install pytorch::faiss-gpu --yes
|
|
19 |
RUN wget 'https://drive.usercontent.google.com/download?id=1B_9t3n_nlj8Y3Kpc_mMjtMdY0OPYa7Re&export=download&authuser=0' -O /tmp/foldseek
|
20 |
RUN chmod +x /tmp/foldseek
|
21 |
|
|
|
|
|
|
|
|
|
22 |
# Download ProTrek model
|
23 |
RUN huggingface-cli download westlake-repl/ProTrek_650M_UniRef50 --repo-type model --local-dir /tmp/ProTrek_650M_UniRef50
|
24 |
|
|
|
19 |
RUN wget 'https://drive.usercontent.google.com/download?id=1B_9t3n_nlj8Y3Kpc_mMjtMdY0OPYa7Re&export=download&authuser=0' -O /tmp/foldseek
|
20 |
RUN chmod +x /tmp/foldseek
|
21 |
|
22 |
+
# Download TMalign
|
23 |
+
RUN wget 'https://drive.google.com/file/d/1waxLyL2MLCxyHyIlQe7zkeHy8lzuDThu/view?usp=sharing' -O /tmp/TMalign
|
24 |
+
RUN chmod +x /tmp/TMalign
|
25 |
+
|
26 |
# Download ProTrek model
|
27 |
RUN huggingface-cli download westlake-repl/ProTrek_650M_UniRef50 --repo-type model --local-dir /tmp/ProTrek_650M_UniRef50
|
28 |
|
demo/config.yaml
CHANGED
@@ -7,7 +7,7 @@ sequence_index_dir:
|
|
7 |
|
8 |
structure_index_dir:
|
9 |
- name: Swiss-Prot
|
10 |
-
index_dir: /tmp/ProTrek-faiss-index/ProTrek_650M_UniRef50/Swiss-Prot/
|
11 |
|
12 |
text_index_dir:
|
13 |
- name: Swiss-Prot
|
|
|
7 |
|
8 |
structure_index_dir:
|
9 |
- name: Swiss-Prot
|
10 |
+
index_dir: /tmp/ProTrek-faiss-index/ProTrek_650M_UniRef50/Swiss-Prot/structure
|
11 |
|
12 |
text_index_dir:
|
13 |
- name: Swiss-Prot
|
demo/modules/tmalign.py
CHANGED
@@ -37,7 +37,7 @@ def tmalign(structure_1: str, structure_type_1: str, structure_2: str, structure
|
|
37 |
structure_path_1 = get_structure_path(structure_1, structure_type_1)
|
38 |
structure_path_2 = get_structure_path(structure_2, structure_type_2)
|
39 |
|
40 |
-
cmd = f"
|
41 |
|
42 |
r = os.popen(cmd)
|
43 |
text = r.read()
|
|
|
37 |
structure_path_1 = get_structure_path(structure_1, structure_type_1)
|
38 |
structure_path_2 = get_structure_path(structure_2, structure_type_2)
|
39 |
|
40 |
+
cmd = f"/tmp/TMalign {structure_path_1} {structure_path_2}"
|
41 |
|
42 |
r = os.popen(cmd)
|
43 |
text = r.read()
|
requirements.txt
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
torch==2.0.1
|
2 |
-
|
|
|
|
|
3 |
torchmetrics==0.9.3
|
4 |
pytorch-lightning==2.1.3
|
5 |
transformers==4.28.0
|
6 |
scikit-learn==1.4.0
|
7 |
tabulate==0.9.0
|
8 |
-
|
|
|
|
|
|
1 |
torch==2.0.1
|
2 |
+
torchvision==0.15.2
|
3 |
+
torchaudio==2.0.2
|
4 |
+
gradio==4.37.1
|
5 |
torchmetrics==0.9.3
|
6 |
pytorch-lightning==2.1.3
|
7 |
transformers==4.28.0
|
8 |
scikit-learn==1.4.0
|
9 |
tabulate==0.9.0
|
10 |
+
biopython==1.83
|
11 |
+
easydict==1.13
|
12 |
+
lmdb==1.4.1
|