rcsb-embedding-model 0.0.11__py3-none-any.whl → 0.0.13__py3-none-any.whl

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.

@@ -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,
@@ -60,9 +60,9 @@ class ResidueAssemblyDatasetFromStructure(ResidueAssemblyEmbeddingFromTensorFile
60
60
  )).iterrows():
61
61
  src_name = row[ResidueAssemblyDatasetFromStructure.STREAM_NAME_ATTR]
62
62
  src_structure = row[ResidueAssemblyDatasetFromStructure.STREAM_ATTR]
63
- src_structure = stringio_from_url(src_structure) if self.structure_location == StructureLocation.remote else src_structure
63
+ structure = stringio_from_url(src_structure) if self.structure_location == StructureLocation.remote else src_structure
64
64
  item_name = row[ResidueAssemblyDatasetFromStructure.ITEM_NAME_ATTR]
65
- for assembly_id in get_assemblies(src_structure=src_structure, structure_format=self.structure_format):
65
+ for assembly_id in get_assemblies(structure=structure, structure_format=self.structure_format):
66
66
  assemblies.append((src_name, src_structure, str(assembly_id), f"{item_name}.{assembly_id}"))
67
67
 
68
68
  return tuple(assemblies)
@@ -44,6 +44,7 @@ def stringio_from_url(url):
44
44
  print(f"Error fetching URL: {e}")
45
45
  return None
46
46
 
47
+
47
48
  def concatenate_tensors(file_list, max_residues, dim=0):
48
49
  """
49
50
  Concatenates a list of tensors stored in individual files along a specified dimension.
@@ -37,13 +37,13 @@ def get_protein_chains(structure, min_res_n=0):
37
37
  return tuple(chain_ids)
38
38
 
39
39
 
40
- def get_assemblies(src_structure, structure_format="mmcif"):
40
+ def get_assemblies(structure, structure_format="mmcif"):
41
41
  if structure_format == "pdb":
42
- return tuple(list_pdb_assemblies(PDBFile.read(src_structure)))
42
+ return tuple(list_pdb_assemblies(PDBFile.read(structure)))
43
43
  elif structure_format == "mmcif":
44
- return tuple(list_assemblies(CIFFile.read(src_structure)).keys())
44
+ return tuple(list_assemblies(CIFFile.read(structure)).keys())
45
45
  elif structure_format == "binarycif":
46
- return tuple(list_assemblies(BinaryCIFFile.read(src_structure)))
46
+ return tuple(list_assemblies(BinaryCIFFile.read(structure)))
47
47
  else:
48
48
  raise RuntimeError(f"Unknown file format {structure_format}")
49
49
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rcsb-embedding-model
3
- Version: 0.0.11
3
+ Version: 0.0.13
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.11
21
+ **Version** 0.0.13
22
22
 
23
23
 
24
24
  ## Overview
@@ -4,7 +4,7 @@ rcsb_embedding_model/cli/args_utils.py,sha256=7nP2q8pL5dWK_U7opxtWmoFcYVwasky6el
4
4
  rcsb_embedding_model/cli/inference.py,sha256=0DZHw4QeAi2f6xdfoEPzYb_gQhCWc_IPA1QgnckcUIg,12916
5
5
  rcsb_embedding_model/dataset/esm_prot_from_chain.py,sha256=dBD2N0Y-GoN6p3z2yLnOvv6JGn-skAxwgbOYhXKDngc,3487
6
6
  rcsb_embedding_model/dataset/esm_prot_from_structure.py,sha256=9IvurGr7PGjfAABoGoMlG08zn6mC6iVAjgExGSrDVdQ,2552
7
- rcsb_embedding_model/dataset/resdiue_assembly_embedding_from_structure.py,sha256=nvBBQzEgHOj4XwoTfzSUiahWKXMDuc11lhKszl_HaF0,2873
7
+ rcsb_embedding_model/dataset/resdiue_assembly_embedding_from_structure.py,sha256=10NUHnjTE5xSXPFVTfeuL8MpOhqk-f3ZIG7EbWR49B4,2867
8
8
  rcsb_embedding_model/dataset/residue_assembly_embedding_from_tensor_file.py,sha256=KXiohnPjjfZEFbPZQ46HGE8eEYWrVX8bfbTz4zPlo7o,3451
9
9
  rcsb_embedding_model/dataset/residue_embedding_from_structure.py,sha256=9MfgKvFAxYr9RU8kwvHnEZBH35gukx8hRPeoBXfyNXo,2797
10
10
  rcsb_embedding_model/dataset/residue_embedding_from_tensor_file.py,sha256=mDCqJrpnu2GXmp75zOPTH8ogL3GWDqc3iEH62JuyHVs,1275
@@ -18,13 +18,13 @@ rcsb_embedding_model/modules/chain_module.py,sha256=sDSPXJmWuU2C3lt1NorlbUVWZvRS
18
18
  rcsb_embedding_model/modules/esm_module.py,sha256=CTHGOATXiarqZsBsZ8oxGJBj20A73186Slpr0EzMJsE,770
19
19
  rcsb_embedding_model/modules/structure_module.py,sha256=dEtDNdWo1j2sSDa0JiOHQfEfQzIWqSLEKpvOX0GrXZ4,1048
20
20
  rcsb_embedding_model/types/api_types.py,sha256=JSHd5Rq7dm6uWNzy1UZnLkWKxfjsKB7gRRTCSqS4r7c,1156
21
- rcsb_embedding_model/utils/data.py,sha256=x6ca_bVdBXEAp9ugCi1rVEQ-G5nGTFKpzDKqZKpkFBE,2933
21
+ rcsb_embedding_model/utils/data.py,sha256=ODz6GG6IAhgAlLh3tcIP6-JVHX8Bb_-E745Lvc_oR84,2934
22
22
  rcsb_embedding_model/utils/model.py,sha256=rpZa-gfm3cEtbBd7UXMHrZv3x6f0AC8TJT3gtrSxr5I,852
23
- rcsb_embedding_model/utils/structure_parser.py,sha256=q_MmuU1AokZ-x-6ATxknJr_D6Sn3ZuaZ2yoJAIL-VIU,2767
23
+ rcsb_embedding_model/utils/structure_parser.py,sha256=IWMQ8brlEMe6_ND-DBESOli8vlqHxladTssjbM9RSKw,2751
24
24
  rcsb_embedding_model/utils/structure_provider.py,sha256=eWtxjkPpmRfmil_DKR1J6miaXR3lQ28DF5O0qrqSgGA,786
25
25
  rcsb_embedding_model/writer/batch_writer.py,sha256=ekgzFZyoKpcnZ3IDP9hfOWBpuHxUQ31P35ViDAi-Edw,2843
26
- rcsb_embedding_model-0.0.11.dist-info/METADATA,sha256=J_7XzyvG_Dd-kz4oSS90fVnmMKf97BL015Qe5XMtCd4,5368
27
- rcsb_embedding_model-0.0.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
- rcsb_embedding_model-0.0.11.dist-info/entry_points.txt,sha256=MK11jTIEmaV-x4CkPX5IymDaVs7Ky_f2xxU8BJVZ_9Q,69
29
- rcsb_embedding_model-0.0.11.dist-info/licenses/LICENSE.md,sha256=oUaHiKgfBkChth_Sm67WemEvatO1U0Go8LHjaskXY0w,1522
30
- rcsb_embedding_model-0.0.11.dist-info/RECORD,,
26
+ rcsb_embedding_model-0.0.13.dist-info/METADATA,sha256=wB8Ww1bRnvU9Fl_fvsobKz1xl8g2kyEftPyZ01646QA,5368
27
+ rcsb_embedding_model-0.0.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ rcsb_embedding_model-0.0.13.dist-info/entry_points.txt,sha256=MK11jTIEmaV-x4CkPX5IymDaVs7Ky_f2xxU8BJVZ_9Q,69
29
+ rcsb_embedding_model-0.0.13.dist-info/licenses/LICENSE.md,sha256=oUaHiKgfBkChth_Sm67WemEvatO1U0Go8LHjaskXY0w,1522
30
+ rcsb_embedding_model-0.0.13.dist-info/RECORD,,