pxmeter 0.1.0__tar.gz → 0.1.1__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.
Files changed (38) hide show
  1. pxmeter-0.1.1/PKG-INFO +32 -0
  2. {pxmeter-0.1.0 → pxmeter-0.1.1}/README.md +24 -13
  3. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/data/ccd.py +1 -1
  4. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/data/utils.py +13 -2
  5. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/mapping.py +1 -1
  6. pxmeter-0.1.1/pxmeter.egg-info/PKG-INFO +32 -0
  7. {pxmeter-0.1.0 → pxmeter-0.1.1}/setup.py +1 -1
  8. pxmeter-0.1.0/PKG-INFO +0 -10
  9. pxmeter-0.1.0/pxmeter.egg-info/PKG-INFO +0 -10
  10. {pxmeter-0.1.0 → pxmeter-0.1.1}/LICENSE +0 -0
  11. {pxmeter-0.1.0 → pxmeter-0.1.1}/MANIFEST.in +0 -0
  12. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/__init__.py +0 -0
  13. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/calc_metric.py +0 -0
  14. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/cli.py +0 -0
  15. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/configs/__init__.py +0 -0
  16. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/configs/data_config.py +0 -0
  17. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/configs/run_config.py +0 -0
  18. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/constants.py +0 -0
  19. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/data/__init__.py +0 -0
  20. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/data/parser.py +0 -0
  21. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/data/struct.py +0 -0
  22. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/data/writer.py +0 -0
  23. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/eval.py +0 -0
  24. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/metrics/__init__.py +0 -0
  25. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/metrics/lddt_metrics.py +0 -0
  26. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/metrics/rmsd.py +0 -0
  27. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/metrics/rmsd_metrics.py +0 -0
  28. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/permutation/__init__.py +0 -0
  29. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/permutation/atom.py +0 -0
  30. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/permutation/chain.py +0 -0
  31. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter/utils.py +0 -0
  32. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter.egg-info/SOURCES.txt +0 -0
  33. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter.egg-info/dependency_links.txt +0 -0
  34. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter.egg-info/entry_points.txt +0 -0
  35. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter.egg-info/requires.txt +0 -0
  36. {pxmeter-0.1.0 → pxmeter-0.1.1}/pxmeter.egg-info/top_level.txt +0 -0
  37. {pxmeter-0.1.0 → pxmeter-0.1.1}/requirements.txt +0 -0
  38. {pxmeter-0.1.0 → pxmeter-0.1.1}/setup.cfg +0 -0
pxmeter-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.4
2
+ Name: pxmeter
3
+ Version: 0.1.1
4
+ Summary: PXMeter is a comprehensive toolkit for evaluating the quality of structures generated by biomolecular structure prediction models.
5
+ Author: Bytedance Inc.
6
+ Author-email: ai4s-bio@bytedance.com
7
+ License: Apache 2.0 License
8
+ Platform: manylinux1
9
+ Requires-Python: >=3.11
10
+ License-File: LICENSE
11
+ Requires-Dist: biotite>=1.2.0
12
+ Requires-Dist: dockq==2.1.3
13
+ Requires-Dist: gemmi==0.7.0
14
+ Requires-Dist: joblib
15
+ Requires-Dist: ml_collections
16
+ Requires-Dist: numpy
17
+ Requires-Dist: pandas
18
+ Requires-Dist: pdbeccdutils==0.8.5
19
+ Requires-Dist: posebusters==0.3.1
20
+ Requires-Dist: rdkit>=2024.09.6
21
+ Requires-Dist: scipy
22
+ Requires-Dist: tabulate
23
+ Requires-Dist: tqdm
24
+ Requires-Dist: click
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: license
28
+ Dynamic: license-file
29
+ Dynamic: platform
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
@@ -4,8 +4,8 @@
4
4
  [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/downloads/)
5
5
 
6
6
  <div align="left" style="margin: 20px 0;">
7
- <span style="margin: 0 10px;">📄 <a href="URL">From Dataset Diagnostics to Evaluation: Revisiting
8
- Structure Prediction Benchmarks with PXMeter</a></span>
7
+ <span style="margin: 0 10px;">📄 <a href="https://www.biorxiv.org/content/10.1101/2025.07.17.664878v1">From Dataset Curation to Unified Evaluation: Revisiting
8
+ Structure Prediction Benchmarks with PXMeter</a></span>
9
9
  </div>
10
10
 
11
11
  PXMeter is a comprehensive toolkit for evaluating the quality of structures generated by biomolecular structure prediction models, with support for proteins, nucleic acids, and small molecules.
@@ -86,7 +86,12 @@ Refer to [benchmark/README.md](./benchmark/README.md) for evaluation protocols o
86
86
  - PoseBusters V2
87
87
 
88
88
  The benchmark data is released under the CC0 license.
89
- We include code in the `benchmark` directory that evaluates various models using PXMeter and aggregates their metrics. This serves as an example of best practices for using the tool. For more details, please refer to the [Technical Report URL].
89
+ We include code in the `benchmark` directory that evaluates various models using PXMeter and aggregates their metrics.
90
+ This serves as an example of best practices for using the tool. For more details, please refer to our paper:
91
+
92
+ 📄 <a href="https://www.biorxiv.org/content/10.1101/2025.07.17.664878v1">From Dataset Curation to Unified Evaluation: Revisiting
93
+ Structure Prediction Benchmarks with PXMeter</a>
94
+
90
95
 
91
96
 
92
97
  ## 💪 Contributing to PXMeter
@@ -102,21 +107,27 @@ pre-commit install
102
107
  ```
103
108
 
104
109
 
105
- ## 🚧 Limitations
106
- - PXMeter supports chain/atom permutations but not residue-level permutations. As a result, the accuracy of evaluation for branched chains, such as glycans, cannot be fully guaranteed.
107
- - It is recommended to use CIF files from the RCSB PDB as references, as they ensure content accuracy. All development and testing were conducted exclusively on CIF files from this source.
108
-
109
-
110
110
  ## ✍️ Citing PXMeter
111
+ If you use PXMeter in your research, please cite the following:
111
112
  ```bibtex
112
- @software{pxmeter,
113
- title = {PXMeter: Biomolecular Structure Quality Assessment Toolkit},
114
- author = {Bytedance AI for Science Team},
115
- year = {2024},
116
- url = {https://github.com/your-org/pxmeter},
113
+ @article {Ma2025.07.17.664878,
114
+ author = {Ma, Wenzhi and Liu, Zhenyu and Yang, Jincai and Lu, Chan and Zhang, Hanyu and Xiao, Wenzhi},
115
+ title = {From Dataset Curation to Unified Evaluation: Revisiting Structure Prediction Benchmarks with PXMeter},
116
+ year = {2025},
117
+ doi = {10.1101/2025.07.17.664878},
118
+ publisher = {Cold Spring Harbor Laboratory},
119
+ URL = {https://www.biorxiv.org/content/early/2025/07/22/2025.07.17.664878},
120
+ eprint = {https://www.biorxiv.org/content/early/2025/07/22/2025.07.17.664878.full.pdf},
121
+ journal = {bioRxiv}
117
122
  }
118
123
  ```
119
124
 
125
+
126
+ ## 🚧 Limitations
127
+ - PXMeter supports chain/atom permutations but not residue-level permutations. As a result, the accuracy of evaluation for branched chains, such as glycans, cannot be fully guaranteed.
128
+ - It is recommended to use CIF files from the RCSB PDB as references, as they ensure content accuracy. All development and testing were conducted exclusively on CIF files from this source.
129
+
130
+
120
131
  ## 🛡️ Security
121
132
  If you discover a potential security issue in this project, or think you may
122
133
  have discovered a security issue, we ask that you notify Bytedance Security via our [security center](https://security.bytedance.com/src) or [vulnerability reporting email](sec@bytedance.com).
@@ -232,7 +232,7 @@ def get_ccd_perm_info(ccd_code: str) -> dict[str, Any]:
232
232
  for node in removed_nodes:
233
233
  mol_graph.remove_node(node)
234
234
 
235
- matches = get_mol_graph_matches(mol_graph, mol_graph)[:1000]
235
+ matches = get_mol_graph_matches(mol_graph, mol_graph, max_matches=1000)
236
236
 
237
237
  # re-index after removing H
238
238
  reverted_old_atom_map = {v: k for k, v in mol.atom_map.items()}
@@ -234,13 +234,16 @@ def rdkit_mol_to_nx_graph(mol: Chem.Mol) -> nx.Graph:
234
234
  return G
235
235
 
236
236
 
237
- def get_mol_graph_matches(mol_graph1: nx.Graph, mol_graph2: nx.Graph) -> list[dict]:
237
+ def get_mol_graph_matches(
238
+ mol_graph1: nx.Graph, mol_graph2: nx.Graph, max_matches: int = 1000
239
+ ) -> list[dict]:
238
240
  """
239
241
  Find all isomorphisms between subgraph of mol_graph1 and mol_graph2.
240
242
 
241
243
  Args:
242
244
  mol_graph1 (nx.Graph): Source molecular graph (typically larger subgraph)
243
245
  mol_graph2 (nx.Graph): Target molecular graph (typically smaller supergraph)
246
+ max_matches (int): Maximum number of matches to return. Default is 1000.
244
247
 
245
248
  Returns:
246
249
  list[dict]: List of node mapping dictionaries where each dictionary represents
@@ -254,4 +257,12 @@ def get_mol_graph_matches(mol_graph1: nx.Graph, mol_graph2: nx.Graph) -> list[di
254
257
  mol_graph2,
255
258
  node_match=lambda x, y: x["atomic_num"] == y["atomic_num"],
256
259
  )
257
- return list(isomatcher.subgraph_isomorphisms_iter())
260
+
261
+ matches = []
262
+ num = 0
263
+ for i in isomatcher.subgraph_isomorphisms_iter():
264
+ matches.append(i)
265
+ num += 1
266
+ if num >= max_matches:
267
+ break
268
+ return matches
@@ -584,7 +584,7 @@ class MappingCIF:
584
584
  ref_graph = rdkit_mol_to_nx_graph(ref_mol)
585
585
  model_graph = rdkit_mol_to_nx_graph(model_mol)
586
586
  try:
587
- matches = get_mol_graph_matches(model_graph, ref_graph)
587
+ matches = get_mol_graph_matches(model_graph, ref_graph, max_matches=1)
588
588
  assert len(matches) > 0
589
589
  match = matches[0]
590
590
 
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.4
2
+ Name: pxmeter
3
+ Version: 0.1.1
4
+ Summary: PXMeter is a comprehensive toolkit for evaluating the quality of structures generated by biomolecular structure prediction models.
5
+ Author: Bytedance Inc.
6
+ Author-email: ai4s-bio@bytedance.com
7
+ License: Apache 2.0 License
8
+ Platform: manylinux1
9
+ Requires-Python: >=3.11
10
+ License-File: LICENSE
11
+ Requires-Dist: biotite>=1.2.0
12
+ Requires-Dist: dockq==2.1.3
13
+ Requires-Dist: gemmi==0.7.0
14
+ Requires-Dist: joblib
15
+ Requires-Dist: ml_collections
16
+ Requires-Dist: numpy
17
+ Requires-Dist: pandas
18
+ Requires-Dist: pdbeccdutils==0.8.5
19
+ Requires-Dist: posebusters==0.3.1
20
+ Requires-Dist: rdkit>=2024.09.6
21
+ Requires-Dist: scipy
22
+ Requires-Dist: tabulate
23
+ Requires-Dist: tqdm
24
+ Requires-Dist: click
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: license
28
+ Dynamic: license-file
29
+ Dynamic: platform
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
@@ -20,7 +20,7 @@ with open("requirements.txt") as f:
20
20
  setup(
21
21
  name="pxmeter",
22
22
  python_requires=">=3.11",
23
- version="0.1.0",
23
+ version="0.1.1",
24
24
  description="PXMeter is a comprehensive toolkit for evaluating the quality of \
25
25
  structures generated by biomolecular structure prediction models.",
26
26
  author="Bytedance Inc.",
pxmeter-0.1.0/PKG-INFO DELETED
@@ -1,10 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pxmeter
3
- Version: 0.1.0
4
- Summary: PXMeter is a comprehensive toolkit for evaluating the quality of structures generated by biomolecular structure prediction models.
5
- Author: Bytedance Inc.
6
- Author-email: ai4s-bio@bytedance.com
7
- License: Apache 2.0 License
8
- Platform: manylinux1
9
- Requires-Python: >=3.11
10
- License-File: LICENSE
@@ -1,10 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pxmeter
3
- Version: 0.1.0
4
- Summary: PXMeter is a comprehensive toolkit for evaluating the quality of structures generated by biomolecular structure prediction models.
5
- Author: Bytedance Inc.
6
- Author-email: ai4s-bio@bytedance.com
7
- License: Apache 2.0 License
8
- Platform: manylinux1
9
- Requires-Python: >=3.11
10
- License-File: LICENSE
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes