rcsb-embedding-model 0.0.12__tar.gz → 0.0.14__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.

Files changed (44) hide show
  1. rcsb_embedding_model-0.0.14/.github/workflows/publish.yaml +84 -0
  2. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/PKG-INFO +2 -2
  3. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/README.md +1 -1
  4. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/pyproject.toml +1 -1
  5. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/dataset/resdiue_assembly_embedding_from_structure.py +1 -1
  6. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/.gitignore +0 -0
  7. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/LICENSE.md +0 -0
  8. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/assets/embedding-model-architecture.png +0 -0
  9. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/examples/esm_embeddings.py +0 -0
  10. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/__init__.py +0 -0
  11. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/cli/args_utils.py +0 -0
  12. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/cli/inference.py +0 -0
  13. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/dataset/esm_prot_from_chain.py +0 -0
  14. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/dataset/esm_prot_from_structure.py +0 -0
  15. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/dataset/residue_assembly_embedding_from_tensor_file.py +0 -0
  16. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/dataset/residue_embedding_from_structure.py +0 -0
  17. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/dataset/residue_embedding_from_tensor_file.py +0 -0
  18. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/inference/assembly_inferece.py +0 -0
  19. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/inference/chain_inference.py +0 -0
  20. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/inference/esm_inference.py +0 -0
  21. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/inference/structure_inference.py +0 -0
  22. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/model/layers.py +0 -0
  23. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/model/residue_embedding_aggregator.py +0 -0
  24. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/modules/chain_module.py +0 -0
  25. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/modules/esm_module.py +0 -0
  26. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/modules/structure_module.py +0 -0
  27. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/rcsb_structure_embedding.py +0 -0
  28. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/types/api_types.py +0 -0
  29. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/utils/data.py +0 -0
  30. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/utils/model.py +0 -0
  31. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/utils/structure_parser.py +0 -0
  32. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/utils/structure_provider.py +0 -0
  33. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/src/rcsb_embedding_model/writer/batch_writer.py +0 -0
  34. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/resources/embeddings/1acb.A.pt +0 -0
  35. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/resources/embeddings/1acb.B.pt +0 -0
  36. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/resources/embeddings/2uzi.A.pt +0 -0
  37. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/resources/embeddings/2uzi.B.pt +0 -0
  38. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/resources/embeddings/2uzi.C.pt +0 -0
  39. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/resources/esm-from-chain-inference.csv +0 -0
  40. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/resources/pdb/1acb.cif +0 -0
  41. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/resources/pdb/2uzi.cif +0 -0
  42. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/test_embedding_model.py +0 -0
  43. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/test_inference.py +0 -0
  44. {rcsb_embedding_model-0.0.12 → rcsb_embedding_model-0.0.14}/tests/test_remote_inference.py +0 -0
@@ -0,0 +1,84 @@
1
+ name: CI Pipeline
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ tags:
7
+ - 'v*'
8
+ pull_request:
9
+ branches: [master]
10
+
11
+ jobs:
12
+ test:
13
+ name: Test on Python ${{ matrix.python-version }}
14
+ runs-on:
15
+ - "self-hosted"
16
+ timeout-minutes: 20
17
+ strategy:
18
+ matrix:
19
+ python-version: ["3.10"]
20
+ steps:
21
+ - name: Checkout code
22
+ uses: actions/checkout@v4
23
+
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ uses: actions/setup-python@v4
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+
29
+ - name: Install Hatch
30
+ run: pip install hatch huggingface_hub[cli]
31
+
32
+ - name: Authenticate to Hugging Face
33
+ run: huggingface-cli login --token ${{ secrets.HF_API_TOKEN }}
34
+
35
+ - name: Run tests
36
+ run: hatch test
37
+
38
+ build:
39
+ name: Build to PyPI
40
+ needs: test
41
+ runs-on: ubuntu-latest
42
+ # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
43
+ steps:
44
+ - name: Checkout code
45
+ uses: actions/checkout@v4
46
+
47
+ - name: Set up Python 3.10
48
+ uses: actions/setup-python@v4
49
+ with:
50
+ python-version: "3.10"
51
+
52
+ - name: Install Hatch
53
+ run: pip install hatch
54
+
55
+ - name: Build distribution
56
+ run: hatch build
57
+
58
+ - name: Store the distribution packages
59
+ uses: actions/upload-artifact@v4
60
+ with:
61
+ name: python-package-distributions
62
+ path: dist/
63
+
64
+ publish-to-pypi:
65
+ name: >-
66
+ Publish Python 🐍 distribution 📦 to PyPI
67
+ # if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
68
+ needs:
69
+ - build
70
+ runs-on: ubuntu-latest
71
+ environment:
72
+ name: pypi
73
+ url: https://pypi.org/p/rcsb-embedding-model # Replace <package-name> with your PyPI project name
74
+ permissions:
75
+ id-token: write
76
+
77
+ steps:
78
+ - name: Download all the dists
79
+ uses: actions/download-artifact@v4
80
+ with:
81
+ name: python-package-distributions
82
+ path: dist/
83
+ - name: Publish distribution 📦 to PyPI
84
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rcsb-embedding-model
3
- Version: 0.0.12
3
+ Version: 0.0.14
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
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
18
18
 
19
19
  # RCSB Embedding Model
20
20
 
21
- **Version** 0.0.12
21
+ **Version** 0.0.14
22
22
 
23
23
 
24
24
  ## Overview
@@ -1,6 +1,6 @@
1
1
  # RCSB Embedding Model
2
2
 
3
- **Version** 0.0.12
3
+ **Version** 0.0.14
4
4
 
5
5
 
6
6
  ## Overview
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "rcsb-embedding-model"
3
- version = "0.0.12"
3
+ version = "0.0.14"
4
4
  authors = [
5
5
  { name="Joan Segura", email="joan.segura@rcsb.org" },
6
6
  ]
@@ -37,7 +37,7 @@ class ResidueAssemblyDatasetFromStructure(ResidueAssemblyEmbeddingFromTensorFile
37
37
  super().__init__(
38
38
  src_stream=self.__get_assemblies(src_stream),
39
39
  res_embedding_location=res_embedding_location,
40
- src_location=src_location,
40
+ src_location=SrcLocation.stream,
41
41
  structure_location=structure_location,
42
42
  structure_format=structure_format,
43
43
  min_res_n=min_res_n,