pxmeter 0.1.4__tar.gz → 0.1.5__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.
- {pxmeter-0.1.4/pxmeter.egg-info → pxmeter-0.1.5}/PKG-INFO +1 -1
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/configs/data_config.py +10 -15
- {pxmeter-0.1.4 → pxmeter-0.1.5/pxmeter.egg-info}/PKG-INFO +1 -1
- {pxmeter-0.1.4 → pxmeter-0.1.5}/setup.py +1 -1
- {pxmeter-0.1.4 → pxmeter-0.1.5}/LICENSE +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/MANIFEST.in +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/README.md +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/__init__.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/calc_metric.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/cli.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/configs/__init__.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/configs/run_config.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/constants.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/data/__init__.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/data/ccd.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/data/parser.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/data/struct.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/data/utils.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/data/writer.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/eval.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/mapping.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/metrics/__init__.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/metrics/clashes.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/metrics/lddt_metrics.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/metrics/rmsd.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/metrics/rmsd_metrics.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/permutation/__init__.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/permutation/atom.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/permutation/chain.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter/utils.py +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter.egg-info/SOURCES.txt +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter.egg-info/dependency_links.txt +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter.egg-info/entry_points.txt +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter.egg-info/requires.txt +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/pxmeter.egg-info/top_level.txt +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/requirements.txt +0 -0
- {pxmeter-0.1.4 → pxmeter-0.1.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pxmeter
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: PXMeter is a comprehensive toolkit for evaluating the quality of structures generated by biomolecular structure prediction models.
|
|
5
5
|
Author: Bytedance Inc.
|
|
6
6
|
Author-email: ai4s-bio@bytedance.com
|
|
@@ -12,13 +12,14 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
+
import gzip
|
|
15
16
|
import json
|
|
16
17
|
import logging
|
|
17
18
|
import os
|
|
18
|
-
import subprocess as sp
|
|
19
19
|
from pathlib import Path
|
|
20
20
|
|
|
21
21
|
import gemmi
|
|
22
|
+
import requests
|
|
22
23
|
|
|
23
24
|
logging.basicConfig(level=logging.INFO)
|
|
24
25
|
|
|
@@ -30,27 +31,21 @@ def download_ccd_cif(output_path: Path):
|
|
|
30
31
|
Args:
|
|
31
32
|
output_path (Path): The output path for saving the downloaded CCD CIF file.
|
|
32
33
|
"""
|
|
33
|
-
output_path.
|
|
34
|
+
output_path.mkdir(parents=True, exist_ok=True)
|
|
34
35
|
|
|
35
36
|
logging.info("Downloading CCD CIF file from rcsb.org ...")
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
if output_cif_gz.exists():
|
|
39
|
-
logging.info("Remove old zipped CCD CIF file: %s", output_cif_gz)
|
|
40
|
-
output_cif_gz.unlink()
|
|
41
|
-
|
|
42
|
-
output_cif = output_cif_gz.with_suffix("")
|
|
38
|
+
output_cif = output_path / "components.cif"
|
|
43
39
|
if output_cif.exists():
|
|
44
40
|
logging.info("Remove old CCD CIF file: %s", output_cif)
|
|
45
41
|
output_cif.unlink()
|
|
46
42
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
sp.run(f"gunzip -d {output_cif_gz}", shell=True, check=True)
|
|
43
|
+
url = "https://files.wwpdb.org/pub/pdb/data/monomers/components.cif.gz"
|
|
44
|
+
with requests.get(url, stream=True, timeout=60) as r:
|
|
45
|
+
r.raise_for_status()
|
|
46
|
+
with gzip.GzipFile(fileobj=r.raw) as f_in, output_cif.open("wb") as f_out:
|
|
47
|
+
for chunk in iter(lambda: f_in.read(8192), b""):
|
|
48
|
+
f_out.write(chunk)
|
|
54
49
|
|
|
55
50
|
logging.info("Download CCD CIF file successfully: %s", output_cif)
|
|
56
51
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pxmeter
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: PXMeter is a comprehensive toolkit for evaluating the quality of structures generated by biomolecular structure prediction models.
|
|
5
5
|
Author: Bytedance Inc.
|
|
6
6
|
Author-email: ai4s-bio@bytedance.com
|
|
@@ -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.
|
|
23
|
+
version="0.1.5",
|
|
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.",
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|