molscope 0.6.0__tar.gz → 0.6.2__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 (32) hide show
  1. {molscope-0.6.0 → molscope-0.6.2}/PKG-INFO +2 -2
  2. {molscope-0.6.0 → molscope-0.6.2}/README.md +1 -1
  3. molscope-0.6.2/molscope/__init__.py +90 -0
  4. {molscope-0.6.0 → molscope-0.6.2}/molscope.egg-info/PKG-INFO +2 -2
  5. {molscope-0.6.0 → molscope-0.6.2}/pyproject.toml +1 -1
  6. molscope-0.6.0/molscope/__init__.py +0 -53
  7. {molscope-0.6.0 → molscope-0.6.2}/LICENSE +0 -0
  8. {molscope-0.6.0 → molscope-0.6.2}/molscope/__main__.py +0 -0
  9. {molscope-0.6.0 → molscope-0.6.2}/molscope/cli.py +0 -0
  10. {molscope-0.6.0 → molscope-0.6.2}/molscope/coarsegrain.py +0 -0
  11. {molscope-0.6.0 → molscope-0.6.2}/molscope/contactmap.py +0 -0
  12. {molscope-0.6.0 → molscope-0.6.2}/molscope/descriptors.py +0 -0
  13. {molscope-0.6.0 → molscope-0.6.2}/molscope/elements.py +0 -0
  14. {molscope-0.6.0 → molscope-0.6.2}/molscope/ensemble.py +0 -0
  15. {molscope-0.6.0 → molscope-0.6.2}/molscope/graph.py +0 -0
  16. {molscope-0.6.0 → molscope-0.6.2}/molscope/io.py +0 -0
  17. {molscope-0.6.0 → molscope-0.6.2}/molscope/molecule.py +0 -0
  18. {molscope-0.6.0 → molscope-0.6.2}/molscope/plotting.py +0 -0
  19. {molscope-0.6.0 → molscope-0.6.2}/molscope.egg-info/SOURCES.txt +0 -0
  20. {molscope-0.6.0 → molscope-0.6.2}/molscope.egg-info/dependency_links.txt +0 -0
  21. {molscope-0.6.0 → molscope-0.6.2}/molscope.egg-info/entry_points.txt +0 -0
  22. {molscope-0.6.0 → molscope-0.6.2}/molscope.egg-info/requires.txt +0 -0
  23. {molscope-0.6.0 → molscope-0.6.2}/molscope.egg-info/top_level.txt +0 -0
  24. {molscope-0.6.0 → molscope-0.6.2}/setup.cfg +0 -0
  25. {molscope-0.6.0 → molscope-0.6.2}/tests/test_clustering.py +0 -0
  26. {molscope-0.6.0 → molscope-0.6.2}/tests/test_coarsegrain.py +0 -0
  27. {molscope-0.6.0 → molscope-0.6.2}/tests/test_contactmap.py +0 -0
  28. {molscope-0.6.0 → molscope-0.6.2}/tests/test_descriptors.py +0 -0
  29. {molscope-0.6.0 → molscope-0.6.2}/tests/test_features.py +0 -0
  30. {molscope-0.6.0 → molscope-0.6.2}/tests/test_graph.py +0 -0
  31. {molscope-0.6.0 → molscope-0.6.2}/tests/test_io.py +0 -0
  32. {molscope-0.6.0 → molscope-0.6.2}/tests/test_molecule.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: molscope
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary: Lightweight molecular structure analysis, visualisation, graph export, and coarse-graining in Python.
5
5
  Author-email: Roshan Shrestha <roshanpra@gmail.com>
6
6
  License-Expression: MIT
@@ -40,7 +40,7 @@ coordinate loops, not a full mmCIF syntax implementation.
40
40
 
41
41
  | 3D structure rendering | Residue contact map | Coarse-grained beads |
42
42
  | --- | --- | --- |
43
- | ![Aquaporin-1 rendered as a 3D element-coloured molecular structure](docs/assets/readme/aquaporin-structure-v2.png) | ![Residue-level contact map heatmap for Aquaporin-1](docs/assets/readme/residue-contact-map.png) | ![Coarse-grained bead model of Aquaporin-1](docs/assets/readme/coarse-grained-beads-v2.png) |
43
+ | ![Aquaporin-1 rendered as a 3D element-coloured molecular structure](https://raw.githubusercontent.com/roshan2004/molscope/main/docs/assets/readme/aquaporin-structure-v2.png) | ![Residue-level contact map heatmap for Aquaporin-1](https://raw.githubusercontent.com/roshan2004/molscope/main/docs/assets/readme/residue-contact-map.png) | ![Coarse-grained bead model of Aquaporin-1](https://raw.githubusercontent.com/roshan2004/molscope/main/docs/assets/readme/coarse-grained-beads-v2.png) |
44
44
 
45
45
  ## What it does
46
46
 
@@ -13,7 +13,7 @@ coordinate loops, not a full mmCIF syntax implementation.
13
13
 
14
14
  | 3D structure rendering | Residue contact map | Coarse-grained beads |
15
15
  | --- | --- | --- |
16
- | ![Aquaporin-1 rendered as a 3D element-coloured molecular structure](docs/assets/readme/aquaporin-structure-v2.png) | ![Residue-level contact map heatmap for Aquaporin-1](docs/assets/readme/residue-contact-map.png) | ![Coarse-grained bead model of Aquaporin-1](docs/assets/readme/coarse-grained-beads-v2.png) |
16
+ | ![Aquaporin-1 rendered as a 3D element-coloured molecular structure](https://raw.githubusercontent.com/roshan2004/molscope/main/docs/assets/readme/aquaporin-structure-v2.png) | ![Residue-level contact map heatmap for Aquaporin-1](https://raw.githubusercontent.com/roshan2004/molscope/main/docs/assets/readme/residue-contact-map.png) | ![Coarse-grained bead model of Aquaporin-1](https://raw.githubusercontent.com/roshan2004/molscope/main/docs/assets/readme/coarse-grained-beads-v2.png) |
17
17
 
18
18
  ## What it does
19
19
 
@@ -0,0 +1,90 @@
1
+ """Lightweight molecular structure analysis, visualisation, graph export, and coarse-graining.
2
+
3
+ molscope reads ``.xyz``, ``.pdb``, ``.cif`` and ``.sdf`` files (optionally
4
+ gzip-compressed), lets you select and measure atoms, analyse structures and
5
+ ensembles, export molecular graphs for machine learning, coarse-grain onto
6
+ beads, and visualise everything in 3D.
7
+
8
+ What it does
9
+ ------------
10
+ - **Read and write** XYZ, PDB, mmCIF and SDF; fetch by id from RCSB; load
11
+ multi-model NMR ensembles (:func:`read`, :func:`fetch`, :func:`read_pdb_models`).
12
+ - **Select and measure** by chain, element or residue; distances, angles,
13
+ dihedrals and Kabsch-aligned RMSD (:class:`Molecule`).
14
+ - **Analyse** centroids, radius of gyration, inertia tensor, bonds and contacts.
15
+ - **Contact maps** at atom or residue level (:class:`ContactMap`).
16
+ - **Ensembles**: pairwise RMSD, RMSF, averaging, conformer clustering
17
+ (:mod:`molscope.ensemble`, :func:`cluster`, :func:`rmsd_matrix`).
18
+ - **Export for ML**: structural descriptors and molecular graphs for NetworkX,
19
+ PyTorch Geometric and DGL (:func:`descriptors`, :class:`MolecularGraph`).
20
+ - **Coarse-grain** onto residue, Martini-style or custom bead mappings
21
+ (:mod:`molscope.coarsegrain`).
22
+ - **Visualise** with 3D matplotlib plots, an interactive py3Dmol viewer, and
23
+ spin GIFs.
24
+
25
+ Examples
26
+ --------
27
+ >>> import molscope as ms
28
+ >>> mol = ms.read("1fqy.pdb") # parser chosen from the extension
29
+ >>> mol = ms.fetch("1fqy") # ...or download straight from RCSB by id
30
+ >>> print(mol.summary()) # atoms, formula, chains, bounding box
31
+ >>> ca = mol.alpha_carbons() # select the C-alpha atoms
32
+ >>> mol.plot(color_by="chain") # render in 3D
33
+
34
+ >>> g = mol.to_graph() # molecular graph for ML, no extra deps
35
+ >>> cg = mol.coarse_grain("residue_com") # one bead per residue
36
+
37
+ See https://github.com/roshan2004/molscope for the full documentation.
38
+ """
39
+
40
+ from . import coarsegrain, ensemble
41
+ from .coarsegrain import BeadMapping, BondMapping, CoarseGrainReport, DroppedAtom
42
+ from .contactmap import ContactMap
43
+ from .descriptors import descriptors, featurize_many
44
+ from .ensemble import Clustering, cluster, rmsd_matrix
45
+ from .ensemble import contact_frequency as ensemble_contact_frequency
46
+ from .graph import MolecularGraph
47
+ from .io import (
48
+ fetch,
49
+ read,
50
+ read_cif,
51
+ read_pdb,
52
+ read_pdb_models,
53
+ read_sdf,
54
+ read_xyz,
55
+ read_xyz_frames,
56
+ write_pdb,
57
+ write_xyz,
58
+ )
59
+ from .molecule import Molecule
60
+ from .plotting import plot_rmsd_heatmap
61
+
62
+ __all__ = [
63
+ "Clustering",
64
+ "BeadMapping",
65
+ "BondMapping",
66
+ "CoarseGrainReport",
67
+ "ContactMap",
68
+ "DroppedAtom",
69
+ "Molecule",
70
+ "MolecularGraph",
71
+ "cluster",
72
+ "coarsegrain",
73
+ "descriptors",
74
+ "ensemble",
75
+ "ensemble_contact_frequency",
76
+ "featurize_many",
77
+ "fetch",
78
+ "plot_rmsd_heatmap",
79
+ "read",
80
+ "read_cif",
81
+ "read_pdb",
82
+ "read_pdb_models",
83
+ "read_sdf",
84
+ "read_xyz",
85
+ "read_xyz_frames",
86
+ "rmsd_matrix",
87
+ "write_pdb",
88
+ "write_xyz",
89
+ ]
90
+ __version__ = "0.6.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: molscope
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary: Lightweight molecular structure analysis, visualisation, graph export, and coarse-graining in Python.
5
5
  Author-email: Roshan Shrestha <roshanpra@gmail.com>
6
6
  License-Expression: MIT
@@ -40,7 +40,7 @@ coordinate loops, not a full mmCIF syntax implementation.
40
40
 
41
41
  | 3D structure rendering | Residue contact map | Coarse-grained beads |
42
42
  | --- | --- | --- |
43
- | ![Aquaporin-1 rendered as a 3D element-coloured molecular structure](docs/assets/readme/aquaporin-structure-v2.png) | ![Residue-level contact map heatmap for Aquaporin-1](docs/assets/readme/residue-contact-map.png) | ![Coarse-grained bead model of Aquaporin-1](docs/assets/readme/coarse-grained-beads-v2.png) |
43
+ | ![Aquaporin-1 rendered as a 3D element-coloured molecular structure](https://raw.githubusercontent.com/roshan2004/molscope/main/docs/assets/readme/aquaporin-structure-v2.png) | ![Residue-level contact map heatmap for Aquaporin-1](https://raw.githubusercontent.com/roshan2004/molscope/main/docs/assets/readme/residue-contact-map.png) | ![Coarse-grained bead model of Aquaporin-1](https://raw.githubusercontent.com/roshan2004/molscope/main/docs/assets/readme/coarse-grained-beads-v2.png) |
44
44
 
45
45
  ## What it does
46
46
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "molscope"
7
- version = "0.6.0"
7
+ version = "0.6.2"
8
8
  description = "Lightweight molecular structure analysis, visualisation, graph export, and coarse-graining in Python."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1,53 +0,0 @@
1
- """molscope: read, analyse, and plot molecular structures in 3D."""
2
-
3
- from . import coarsegrain, ensemble
4
- from .coarsegrain import BeadMapping, BondMapping, CoarseGrainReport, DroppedAtom
5
- from .contactmap import ContactMap
6
- from .descriptors import descriptors, featurize_many
7
- from .ensemble import Clustering, cluster, rmsd_matrix
8
- from .ensemble import contact_frequency as ensemble_contact_frequency
9
- from .graph import MolecularGraph
10
- from .io import (
11
- fetch,
12
- read,
13
- read_cif,
14
- read_pdb,
15
- read_pdb_models,
16
- read_sdf,
17
- read_xyz,
18
- read_xyz_frames,
19
- write_pdb,
20
- write_xyz,
21
- )
22
- from .molecule import Molecule
23
- from .plotting import plot_rmsd_heatmap
24
-
25
- __all__ = [
26
- "Clustering",
27
- "BeadMapping",
28
- "BondMapping",
29
- "CoarseGrainReport",
30
- "ContactMap",
31
- "DroppedAtom",
32
- "Molecule",
33
- "MolecularGraph",
34
- "cluster",
35
- "coarsegrain",
36
- "descriptors",
37
- "ensemble",
38
- "ensemble_contact_frequency",
39
- "featurize_many",
40
- "fetch",
41
- "plot_rmsd_heatmap",
42
- "read",
43
- "read_cif",
44
- "read_pdb",
45
- "read_pdb_models",
46
- "read_sdf",
47
- "read_xyz",
48
- "read_xyz_frames",
49
- "rmsd_matrix",
50
- "write_pdb",
51
- "write_xyz",
52
- ]
53
- __version__ = "0.6.0"
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