rcsb-embedding-model 0.0.25__tar.gz → 0.0.27__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rcsb-embedding-model might be problematic. Click here for more details.
- rcsb_embedding_model-0.0.27/.dockerignore +36 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/PKG-INFO +2 -2
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/README.md +1 -1
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/pyproject.toml +1 -1
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/dataset/esm_prot_from_chain.py +5 -1
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/dataset/residue_assembly_embedding_from_tensor_file.py +1 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/dataset/residue_embedding_from_tensor_file.py +1 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/inference/chain_inference.py +4 -1
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/inference/esm_inference.py +4 -1
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/inference/structure_inference.py +7 -2
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/.github/workflows/_workflow-docker.yaml +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/.github/workflows/publish.yaml +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/.gitignore +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/Dockerfile +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/LICENSE.md +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/assets/embedding-model-architecture.png +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/examples/esm_embeddings.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/__init__.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/cli/args_utils.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/cli/inference.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/dataset/esm_prot_from_structure.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/dataset/resdiue_assembly_embedding_from_structure.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/dataset/residue_embedding_from_structure.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/inference/assembly_inferece.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/model/layers.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/model/residue_embedding_aggregator.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/modules/chain_module.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/modules/esm_module.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/modules/structure_module.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/rcsb_structure_embedding.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/types/api_types.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/utils/data.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/utils/model.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/utils/structure_parser.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/utils/structure_provider.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/writer/batch_writer.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/embeddings/1acb.A.pt +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/embeddings/1acb.B.pt +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/embeddings/2uzi.A.pt +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/embeddings/2uzi.B.pt +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/embeddings/2uzi.C.pt +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/pdb/1acb.cif +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/pdb/2uzi.cif +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/test_embedding_model.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/test_inference.py +0 -0
- {rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/test_remote_inference.py +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Only list files that could be under version control or could be created in CI/CD.
|
|
2
|
+
|
|
3
|
+
# Note: Patterns are absolute, like `.prettierignore` but unlike `.gitignore`.
|
|
4
|
+
|
|
5
|
+
# Gitignored files
|
|
6
|
+
**/.*
|
|
7
|
+
**/[~#$]*
|
|
8
|
+
**/*[~#$]
|
|
9
|
+
|
|
10
|
+
# Gitignored directories
|
|
11
|
+
node_modules/
|
|
12
|
+
|
|
13
|
+
# Directories
|
|
14
|
+
/dist/
|
|
15
|
+
/tests/
|
|
16
|
+
/assets/
|
|
17
|
+
/examples/
|
|
18
|
+
|
|
19
|
+
# Files in the root directory
|
|
20
|
+
/*.md
|
|
21
|
+
/*.txt
|
|
22
|
+
/CITATION.cff
|
|
23
|
+
/compose.yaml
|
|
24
|
+
/justfile
|
|
25
|
+
/mkdocs.yaml
|
|
26
|
+
|
|
27
|
+
# Keep README.md (needed for build)
|
|
28
|
+
!/README.md
|
|
29
|
+
|
|
30
|
+
# Keep .dockerignore and .gitignore
|
|
31
|
+
!/.dockerignore
|
|
32
|
+
!/.gitignore
|
|
33
|
+
|
|
34
|
+
# Keep legal files
|
|
35
|
+
!/LICENSE.*
|
|
36
|
+
!/NOTICE.txt
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rcsb-embedding-model
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.27
|
|
4
4
|
Summary: Protein Embedding Model for Structure Search
|
|
5
5
|
Project-URL: Homepage, https://github.com/rcsb/rcsb-embedding-model
|
|
6
6
|
Project-URL: Issues, https://github.com/rcsb/rcsb-embedding-model/issues
|
|
@@ -17,7 +17,7 @@ Description-Content-Type: text/markdown
|
|
|
17
17
|
|
|
18
18
|
# RCSB Embedding Model
|
|
19
19
|
|
|
20
|
-
**Version** 0.0.
|
|
20
|
+
**Version** 0.0.26
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
## Overview
|
|
@@ -53,6 +53,7 @@ class EsmProtFromChain(Dataset):
|
|
|
53
53
|
dtype=str,
|
|
54
54
|
names=EsmProtFromChain.COLUMNS
|
|
55
55
|
)
|
|
56
|
+
self.data = self.data.sort_values(by=self.data.columns[0])
|
|
56
57
|
|
|
57
58
|
def __len__(self):
|
|
58
59
|
return len(self.data)
|
|
@@ -83,7 +84,10 @@ if __name__ == '__main__':
|
|
|
83
84
|
args = parser.parse_args()
|
|
84
85
|
|
|
85
86
|
dataset = EsmProtFromChain(
|
|
86
|
-
args.file_list
|
|
87
|
+
src_stream=args.file_list,
|
|
88
|
+
src_location=SrcLocation.file,
|
|
89
|
+
structure_location=StructureLocation.remote,
|
|
90
|
+
structure_format=StructureFormat.mmcif,
|
|
87
91
|
)
|
|
88
92
|
|
|
89
93
|
esm3 = ESM3.from_pretrained(
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import torch
|
|
1
2
|
from torch.utils.data import DataLoader
|
|
2
3
|
from lightning import Trainer
|
|
3
4
|
|
|
@@ -53,7 +54,9 @@ def predict(
|
|
|
53
54
|
)
|
|
54
55
|
)
|
|
55
56
|
|
|
56
|
-
aggregator_model = get_aggregator_model(
|
|
57
|
+
aggregator_model = get_aggregator_model(
|
|
58
|
+
device=torch.device("cpu")
|
|
59
|
+
)
|
|
57
60
|
module = ChainModule(
|
|
58
61
|
model=aggregator_model
|
|
59
62
|
)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import torch
|
|
1
2
|
from torch.utils.data import DataLoader
|
|
2
3
|
from lightning import Trainer
|
|
3
4
|
|
|
@@ -47,7 +48,9 @@ def predict(
|
|
|
47
48
|
collate_fn=lambda _: _
|
|
48
49
|
)
|
|
49
50
|
|
|
50
|
-
esm_model = get_residue_model(
|
|
51
|
+
esm_model = get_residue_model(
|
|
52
|
+
device=torch.device("cpu")
|
|
53
|
+
)
|
|
51
54
|
module = EsmModule(
|
|
52
55
|
model=esm_model
|
|
53
56
|
)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import torch
|
|
1
2
|
from torch.utils.data import DataLoader
|
|
2
3
|
from lightning import Trainer
|
|
3
4
|
|
|
@@ -46,8 +47,12 @@ def predict(
|
|
|
46
47
|
collate_fn=lambda _: _
|
|
47
48
|
)
|
|
48
49
|
|
|
49
|
-
res_model = get_residue_model(
|
|
50
|
-
|
|
50
|
+
res_model = get_residue_model(
|
|
51
|
+
device=torch.device("cpu")
|
|
52
|
+
)
|
|
53
|
+
aggregator_model = get_aggregator_model(
|
|
54
|
+
device=torch.device("cpu")
|
|
55
|
+
)
|
|
51
56
|
module = StructureModule(
|
|
52
57
|
res_model=res_model,
|
|
53
58
|
aggregator_model=aggregator_model
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/.github/workflows/_workflow-docker.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/assets/embedding-model-architecture.png
RENAMED
|
File without changes
|
|
File without changes
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/model/layers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/utils/data.py
RENAMED
|
File without changes
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/src/rcsb_embedding_model/utils/model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/embeddings/1acb.A.pt
RENAMED
|
File without changes
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/embeddings/1acb.B.pt
RENAMED
|
File without changes
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/embeddings/2uzi.A.pt
RENAMED
|
File without changes
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/embeddings/2uzi.B.pt
RENAMED
|
File without changes
|
{rcsb_embedding_model-0.0.25 → rcsb_embedding_model-0.0.27}/tests/resources/embeddings/2uzi.C.pt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|