pyVLMP 1.0.76__tar.gz → 1.0.77__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 (135) hide show
  1. {pyvlmp-1.0.76/pyVLMP.egg-info → pyvlmp-1.0.77}/PKG-INFO +3 -3
  2. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/AdaptiveCG.py +36 -28
  3. {pyvlmp-1.0.76 → pyvlmp-1.0.77/pyVLMP.egg-info}/PKG-INFO +3 -3
  4. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/pyVLMP.egg-info/SOURCES.txt +0 -1
  5. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/pyVLMP.egg-info/requires.txt +1 -1
  6. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/pyproject.toml +2 -2
  7. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/setup.py +1 -1
  8. pyvlmp-1.0.76/VLMP/components/models/SBCG.py +0 -139
  9. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/LICENSE +0 -0
  10. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/MANIFEST.in +0 -0
  11. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/README.md +0 -0
  12. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/VLMP.py +0 -0
  13. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/__init__.py +0 -0
  14. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/__main__.py +0 -0
  15. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/__init__.py +0 -0
  16. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/ensembles/NVT.py +0 -0
  17. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/ensembles/NVTlambda.py +0 -0
  18. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/ensembles/__init__.py +0 -0
  19. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/integrators/BBK.py +0 -0
  20. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/integrators/EulerMaruyama.py +0 -0
  21. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/integrators/EulerMaruyamaRigidBody.py +0 -0
  22. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/integrators/EulerMaruyamaRigidBodyPatchesState.py +0 -0
  23. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/integrators/GJF.py +0 -0
  24. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/integrators/MagneticBrownian.py +0 -0
  25. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/integrators/NVE.py +0 -0
  26. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/integrators/__init__.py +0 -0
  27. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/ACMagneticField.py +0 -0
  28. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/AFM.py +0 -0
  29. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/LennardJones.py +0 -0
  30. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/WCA.py +0 -0
  31. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/__init__.py +0 -0
  32. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/absortionSurface.py +0 -0
  33. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/addBond.py +0 -0
  34. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/constantForce.py +0 -0
  35. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/constantForceBetweenCentersOfMass.py +0 -0
  36. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/constantForceOverCenterOfMass.py +0 -0
  37. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/constantTorqueBetweenCentersOfMass.py +0 -0
  38. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/constantTorqueOverCenterOfMass.py +0 -0
  39. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/constraintCenterOfMassPosition.py +0 -0
  40. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/constraintParticlesListPositionLambda.py +0 -0
  41. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/constraintParticlesPosition.py +0 -0
  42. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/constraintParticlesPositionLambda.py +0 -0
  43. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/harmonicBondBetweenCentersOfMass.py +0 -0
  44. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/helixBoundaries.py +0 -0
  45. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/plates.py +0 -0
  46. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/sphericalShell.py +0 -0
  47. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/steric.py +0 -0
  48. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/surface.py +0 -0
  49. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/surfaceMaxForce.py +0 -0
  50. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelExtensions/uniformField.py +0 -0
  51. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelOperations/__init__.py +0 -0
  52. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelOperations/alignInertiaMomentAlongVector.py +0 -0
  53. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelOperations/distributeRandomly.py +0 -0
  54. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelOperations/rotation.py +0 -0
  55. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelOperations/setCenterOfMassPosition.py +0 -0
  56. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelOperations/setContactDistance.py +0 -0
  57. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelOperations/setParticleLowestPosition.py +0 -0
  58. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelOperations/setParticlePositions.py +0 -0
  59. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/modelOperations/setParticleXYPosition.py +0 -0
  60. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/CORONAVIRUS.py +0 -0
  61. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/ENM.py +0 -0
  62. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/FILE.py +0 -0
  63. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/HELIX.py +0 -0
  64. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/ICOSPHERE.py +0 -0
  65. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/IDP.py +0 -0
  66. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/KB.py +0 -0
  67. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/MADna.py +0 -0
  68. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/MAGNETICNP.py +0 -0
  69. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/MEMBRANE.py +0 -0
  70. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/PARTICLE.py +0 -0
  71. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/PROTEIN_IDP_PROTEIN.py +0 -0
  72. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/SIMULATION.py +0 -0
  73. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/SOP.py +0 -0
  74. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/SPHEREMULTIBLOB.py +0 -0
  75. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/STERIC_LAMBDA_SOLVATION.py +0 -0
  76. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/WLC.py +0 -0
  77. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/__init__.py +0 -0
  78. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/data/CORONAVIRUS.json +0 -0
  79. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/data/ICOSPHERE.json +0 -0
  80. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/models/data/MADna.json +0 -0
  81. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/AFMMaxForce.py +0 -0
  82. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/__init__.py +0 -0
  83. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/afmMeasurement.py +0 -0
  84. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/anglesMeasurement.py +0 -0
  85. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/centerOfMassMeasurement.py +0 -0
  86. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/forceBetweenSetsMeasurement.py +0 -0
  87. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/gyrationRadius.py +0 -0
  88. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/heightMeasurement.py +0 -0
  89. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/info.py +0 -0
  90. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/lambdaActivation.py +0 -0
  91. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/lambdaCycle.py +0 -0
  92. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/meanMagnetizationMeasurement.py +0 -0
  93. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/meanRadius.py +0 -0
  94. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/meanSquareDisplacement.py +0 -0
  95. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/nativeContactsMeasurement.py +0 -0
  96. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/oscillatoryForceMeasurment.py +0 -0
  97. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/pairwiseForces.py +0 -0
  98. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/patchPolymersMeasurement.py +0 -0
  99. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/potentialEnergyMeasurement.py +0 -0
  100. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/potentialMeasurement.py +0 -0
  101. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/savePatchyParticlesState.py +0 -0
  102. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/saveState.py +0 -0
  103. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/stressMeasurement.py +0 -0
  104. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/thermodynamicIntegration.py +0 -0
  105. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/thermodynamicMeasurement.py +0 -0
  106. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/vqcmMeasurement.py +0 -0
  107. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/simulationSteps/vqcmMobilityMeasurement.py +0 -0
  108. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/systems/__init__.py +0 -0
  109. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/systems/backup.py +0 -0
  110. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/systems/seed.py +0 -0
  111. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/systems/simulationName.py +0 -0
  112. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/types/__init__.py +0 -0
  113. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/types/basic.py +0 -0
  114. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/types/none.py +0 -0
  115. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/units/KcalMol_A.py +0 -0
  116. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/units/__init__.py +0 -0
  117. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/components/units/none.py +0 -0
  118. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/experiments/HighThroughputAFM.py +0 -0
  119. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/experiments/SurfaceUmbrellaSampling.py +0 -0
  120. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/experiments/__init__.py +0 -0
  121. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/__init__.py +0 -0
  122. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/geometry/__init__.py +0 -0
  123. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/geometry/bounds.py +0 -0
  124. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/geometry/objects/__init__.py +0 -0
  125. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/geometry/objects/helix.py +0 -0
  126. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/geometry/particlesDistribution.py +0 -0
  127. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/input/__init__.py +0 -0
  128. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/input/stringUtils.py +0 -0
  129. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/launcher/__init__.py +0 -0
  130. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/selections/__init__.py +0 -0
  131. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/selections/commonSelections.py +0 -0
  132. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/VLMP/utils/units/__init__.py +0 -0
  133. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/pyVLMP.egg-info/dependency_links.txt +0 -0
  134. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/pyVLMP.egg-info/top_level.txt +0 -0
  135. {pyvlmp-1.0.76 → pyvlmp-1.0.77}/setup.cfg +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyVLMP
3
- Version: 1.0.76
3
+ Version: 1.0.77
4
4
  Summary: Virtual Lab Modeling Platform
5
- Home-page: https://github.com/PabloIbannez/pyGrained
5
+ Home-page: https://github.com/PabloIbannez/VLMP
6
6
  Author-email: Pablo Ibáñez-Freire <p.ibanez.fre@gmail.com>
7
7
  License: GPLv3
8
8
  Classifier: Development Status :: 3 - Alpha
@@ -17,7 +17,7 @@ Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
18
  Requires-Dist: jsbeautifier
19
19
  Requires-Dist: tqdm
20
- Requires-Dist: pyGrained
20
+ Requires-Dist: pyGrained>=1.0.11
21
21
  Requires-Dist: JFIO
22
22
  Requires-Dist: pyUAMMD
23
23
  Requires-Dist: colorama
@@ -13,30 +13,32 @@ class AdaptiveCG(modelBase):
13
13
  """
14
14
  {"author": "Pablo Ibáñez-Freire",
15
15
  "description":
16
- "AdaptiveCG (Adaptive Coarse-Grained) model for protein simulations. The bead mapping
17
- follows the CG mapping of [Monago2025]_, which places the beads by minimizing the
18
- total moment of inertia of the atoms about the bead they are assigned to.
16
+ "AdaptiveCG (Adaptive Coarse-Grained) model for protein simulations. A chain is
17
+ represented by one bead per `resolution` atoms, and the model is built from two
18
+ independent choices.
19
19
  <p>
20
- In the sharp limit the mapping indicator of Eq. 1 becomes the characteristic function
21
- of the Voronoi cell of a bead, the assignment reduces to nearest bead, and the
22
- optimization becomes Lloyd's algorithm. It is therefore implemented as a mass-weighted
23
- k-means, which is exact rather than approximate: the converged bead is the mass
24
- centroid of its own Voronoi cell.
20
+ The mapping places the beads in each chain. kmeans (the default) follows the CG
21
+ mapping of [Monago2025]_ in its sharp limit, where it becomes a mass-weighted k-means:
22
+ the converged bead is the mass centroid of its own Voronoi cell. neuralGas is the
23
+ topology representing network of the shape-based coarse-grained model (SBCG) of
24
+ [Arkhipov2006]_. In both, every atom then belongs to its nearest bead, and a bead sits
25
+ at the centre of mass of its atoms.
25
26
  <p>
26
- Key features of the AdaptiveCG model include:
27
+ The interactions are chosen apart for the bonds (bondsModel, harmonic, between beads
28
+ of the same chain) and for the native contacts (nativeContactsModel, Morse wells,
29
+ between beads of different chains):
27
30
  <p>
28
- - Bead placement by mass-weighted k-means, one bead per `resolution` atoms
31
+ - distance: every pair of beads closer than a cut-off, with a common strength
29
32
  <p>
30
- - Coarse-graining done once per chain class and spread to the whole assembly
33
+ - alphaCarbonProjection: the pairs of beads joined by at least nMin pairs of alpha
34
+ carbons closer than caCut, with strength K0*(n/n0)^alpha for the bonds and
35
+ E0*(n/n0)^beta for the contacts, n being the number of those alpha carbon pairs
31
36
  <p>
32
- - Bonds: an elastic network within each chain
33
- <p>
34
- - Native contacts: Morse interactions between beads of different chains
35
- <p>
36
- Bonds are always intra-chain and native contacts always inter-chain. This is not
37
- configurable: the two are complementary by construction, which is what makes the
38
- chain interfaces the only part of the force field that carries the assembly energy.
37
+ In both the equilibrium distance is the distance between the beads. Bonds are always
38
+ intra-chain and native contacts always inter-chain, so the chain interfaces are the
39
+ only part of the force field that carries the assembly energy.
39
40
  <p>
41
+ The coarse-graining is done once per chain class and spread to the whole assembly.
40
42
  This model uses the [pyGrained]_ library to create the AdaptiveCG representation.
41
43
  ",
42
44
  "parameters":{
@@ -44,14 +46,17 @@ class AdaptiveCG(modelBase):
44
46
  "type":"str"},
45
47
  "resolution":{"description":"Resolution of the coarse-graining, number of atoms per bead. The bead count of a chain is int(N/resolution)+1.",
46
48
  "type":"float"},
47
- "bondsModel":{"description":"Model used for bonded interactions. Only ENM is available, with parameters enmCut and K.",
49
+ "mapping":{"description":"Bead mapping, with name kmeans or neuralGas and, for neuralGas, parameters steps, e0, eS, l0 and lS (defaults 0.3, 0.05, 0.2, 0.01).",
50
+ "type":"dict",
51
+ "default":{"name":"kmeans"}},
52
+ "bondsModel":{"description":"Bonds within chains: distance (parameters enmCut and K; ENM is the former name) or alphaCarbonProjection (parameters caCut, K0, n0, alpha and nMin; defaults n0 1, alpha 1, nMin 1).",
48
53
  "type":"dict"},
49
- "nativeContactsModel":{"description":"Model used for native contact interactions. Only cutOff is available, with parameters ncCut, epsilon, D and eps0.",
54
+ "nativeContactsModel":{"description":"Morse contacts between chains: distance (parameters ncCut, epsilon, D and eps0; cutOff is the former name) or alphaCarbonProjection (parameters caCut, E0, n0, beta, nMin, D and eps0; defaults n0 1, beta 1, nMin 1, eps0 1).",
50
55
  "type":"dict"},
51
56
  "minBeads":{"description":"Minimum number of beads per chain.",
52
57
  "type":"int",
53
58
  "default":1},
54
- "seed":{"description":"Seed of the k-means initialization. The mapping is reproducible for a fixed seed.",
59
+ "seed":{"description":"Seed of the mapping. The mapping is reproducible for a fixed seed.",
55
60
  "type":"int",
56
61
  "default":0},
57
62
  "centerInput":{"description":"If true, centers the input structure.",
@@ -70,15 +75,17 @@ class AdaptiveCG(modelBase):
70
75
  \"parameters\":{
71
76
  \"PDB\":\"capsid.pdb\",
72
77
  \"resolution\":250,
73
- \"bondsModel\":{\"name\":\"ENM\",
74
- \"parameters\":{\"enmCut\":20.0,\"K\":1.0}},
75
- \"nativeContactsModel\":{\"name\":\"cutOff\",
76
- \"parameters\":{\"ncCut\":20.0,\"epsilon\":1.0,
77
- \"D\":1.0,\"eps0\":1.0}}
78
+ \"mapping\":{\"name\":\"kmeans\"},
79
+ \"bondsModel\":{\"name\":\"alphaCarbonProjection\",
80
+ \"parameters\":{\"caCut\":10.0,\"K0\":4.0,\"n0\":30,\"alpha\":1.0}},
81
+ \"nativeContactsModel\":{\"name\":\"alphaCarbonProjection\",
82
+ \"parameters\":{\"caCut\":8.0,\"E0\":3.0,\"n0\":10,\"beta\":1.0,
83
+ \"D\":1.0}}
78
84
  }
79
85
  }
80
86
  ",
81
87
  "references":[
88
+ ".. [Arkhipov2006] Arkhipov, A., Freddolino, P. L., & Schulten, K. (2006). Stability and dynamics of virus capsids described by coarse-grained modeling. Structure, 14(12), 1767-1777.",
82
89
  ".. [Monago2025] Monago, C., de la Torre, J. A., Delgado-Buscalioni, R., & Espanol, P. (2025). Unraveling internal friction in a coarse-grained protein model. The Journal of Chemical Physics, 162(11), 114115.",
83
90
  ".. [pyGrained] https://github.com/PabloIbannez/pyGrained"
84
91
  ]
@@ -88,6 +95,7 @@ class AdaptiveCG(modelBase):
88
95
  availableParameters = {"PDB",
89
96
  "resolution",
90
97
  "minBeads","seed",
98
+ "mapping",
91
99
  "bondsModel","nativeContactsModel",
92
100
  "centerInput",
93
101
  "SASA",
@@ -108,8 +116,8 @@ class AdaptiveCG(modelBase):
108
116
  ###################### Set up model ######################
109
117
  ############################################################
110
118
 
111
- #Unlike SBCG, no PDB ID download is accepted. The model is meant for
112
- #assemblies large enough that the structure is prepared beforehand.
119
+ #No PDB ID download is accepted. The model is meant for assemblies large
120
+ #enough that the structure is prepared beforehand.
113
121
 
114
122
  if params["PDB"].split(".")[-1] not in ["pdb","pqr"]:
115
123
  raise Exception("PDB parameter must be a path to a .pdb or .pqr file.")
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyVLMP
3
- Version: 1.0.76
3
+ Version: 1.0.77
4
4
  Summary: Virtual Lab Modeling Platform
5
- Home-page: https://github.com/PabloIbannez/pyGrained
5
+ Home-page: https://github.com/PabloIbannez/VLMP
6
6
  Author-email: Pablo Ibáñez-Freire <p.ibanez.fre@gmail.com>
7
7
  License: GPLv3
8
8
  Classifier: Development Status :: 3 - Alpha
@@ -17,7 +17,7 @@ Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
18
  Requires-Dist: jsbeautifier
19
19
  Requires-Dist: tqdm
20
- Requires-Dist: pyGrained
20
+ Requires-Dist: pyGrained>=1.0.11
21
21
  Requires-Dist: JFIO
22
22
  Requires-Dist: pyUAMMD
23
23
  Requires-Dist: colorama
@@ -64,7 +64,6 @@ VLMP/components/models/MAGNETICNP.py
64
64
  VLMP/components/models/MEMBRANE.py
65
65
  VLMP/components/models/PARTICLE.py
66
66
  VLMP/components/models/PROTEIN_IDP_PROTEIN.py
67
- VLMP/components/models/SBCG.py
68
67
  VLMP/components/models/SIMULATION.py
69
68
  VLMP/components/models/SOP.py
70
69
  VLMP/components/models/SPHEREMULTIBLOB.py
@@ -1,6 +1,6 @@
1
1
  jsbeautifier
2
2
  tqdm
3
- pyGrained
3
+ pyGrained>=1.0.11
4
4
  JFIO
5
5
  pyUAMMD
6
6
  colorama
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name="pyVLMP"
3
- version="1.0.76"
3
+ version="1.0.77"
4
4
  authors = [
5
5
  {name = "Pablo Ibáñez-Freire", email = "p.ibanez.fre@gmail.com"},
6
6
  ]
@@ -18,7 +18,7 @@ classifiers = [
18
18
  "Programming Language :: Python :: 3.9",
19
19
  ]
20
20
  dependencies = [
21
- "jsbeautifier","tqdm","pyGrained","JFIO","pyUAMMD","colorama"
21
+ "jsbeautifier","tqdm","pyGrained>=1.0.11","JFIO","pyUAMMD","colorama"
22
22
  ]
23
23
 
24
24
  [options]
@@ -4,5 +4,5 @@ from setuptools import setup, find_packages
4
4
 
5
5
  setup(
6
6
  packages=find_packages(),
7
- url="https://github.com/PabloIbannez/pyGrained",
7
+ url="https://github.com/PabloIbannez/VLMP",
8
8
  )
@@ -1,139 +0,0 @@
1
- import sys, os
2
-
3
- import copy
4
-
5
- import logging
6
-
7
- from ... import DEBUG_MODE
8
- from . import modelBase
9
-
10
- import pyGrained.models.SBCG as proteinModel
11
-
12
- class SBCG(modelBase):
13
- """
14
- {"author": "Pablo Ibáñez-Freire",
15
- "description":
16
- "SBCG (Shape-Based Coarse-Grained) model for protein simulations. This model implements a
17
- coarse-grained representation of proteins that maintains the overall shape and essential
18
- features while reducing computational complexity.
19
- <p>
20
- The SBCG approach represents proteins using a reduced number of beads, typically one bead
21
- for hundreds of atoms, capturing the protein.
22
- This reduction in degrees of freedom allows for simulations of larger systems and longer
23
- timescales compared to all-atom models.
24
- <p>
25
- Key features of the SBCG model include:
26
- <p>
27
- - Shape-preserving coarse-graining based on the input protein structure
28
- <p>
29
- - Flexible parameterization of the coarse-graining process
30
- <p>
31
- - Automatic generation of bonded and non-bonded interactions
32
- <p>
33
- - Support for multi-chain proteins and protein complexes
34
- <p>
35
- The model takes a PDB file as input and generates the coarse-grained representation based
36
- on the specified parameters. It can handle various levels of coarse-graining and allows
37
- for customization of the interaction potentials.
38
- <p>
39
- This model uses the [pyGrained]_ library to create the SBCG representation.
40
- ",
41
- "parameters":{
42
- "PDB":{"description":"Path to the input PDB file or a valid PDB ID for download.",
43
- "type":"str"},
44
- "resolution":{"description":"Resolution of the coarse-graining, number of atoms per bead.",
45
- "type":"float"},
46
- "steps":{"description":"Number of steps in the coarse-graining refinement process.",
47
- "type":"int"},
48
- "bondsModel":{"description":"Model used for bonded interactions.(ENM or count)",
49
- "type":"str"},
50
- "nativeContactsModel":{"description":"Model used for native contact interactions (CA).",
51
- "type":"str"},
52
- "centerInput":{"description":"If true, centers the input structure.",
53
- "type":"bool",
54
- "default":true},
55
- "SASA":{"description":"If true, calculates the Solvent Accessible Surface Area.",
56
- "type":"bool",
57
- "default":false},
58
- "aggregateChains":{"description":"If true, treats multiple chains as a single entity.",
59
- "type":"bool",
60
- "default":true}
61
- },
62
- "example":"
63
- {
64
- \"type\":\"SBCG\",
65
- \"parameters\":{
66
- \"PDB\":\"1ABC\",
67
- \"resolution\":200,
68
- \"steps\":1000,
69
- \"bondsModel\":\"ENM\",
70
- \"nativeContactsModel\":\"CA\",
71
- \"SASA\":true
72
- }
73
- }
74
- ",
75
- "references":[
76
- ".. [Arkhipov2006] Arkhipov, A., Freddolino, P. L., & Schulten, K. (2006). Stability and dynamics of virus capsids described by coarse-grained modeling. Structure, 14(12), 1767-1777.",
77
- ".. [pyGrained] https://github.com/PabloIbannez/pyGrained"
78
- ]
79
- }
80
- """
81
-
82
- availableParameters = {"PDB",
83
- "resolution","steps",
84
- "bondsModel","nativeContactsModel",
85
- "centerInput",
86
- "SASA",
87
- "aggregateChains",
88
- "additionalExclusions"}
89
- requiredParameters = {"PDB","resolution","steps","bondsModel","nativeContactsModel"}
90
- definedSelections = set()
91
-
92
- def __init__(self,name,**params):
93
- super().__init__(_type = self.__class__.__name__,
94
- _name= name,
95
- availableParameters = self.availableParameters,
96
- requiredParameters = self.requiredParameters,
97
- definedSelections = self.definedSelections,
98
- **params)
99
-
100
- ############################################################
101
- ###################### Set up model ######################
102
- ############################################################
103
-
104
- #Check if PDB is a file or a PDB ID.
105
- #PDB is considered a file if it has a .pdb or .pqr extension.
106
- #If it is a file, it is loaded as a PDB file.
107
- #If it is a PDB ID, PDB file is downloaded from the RCSB PDB database.
108
-
109
- if params["PDB"].split(".")[-1] in ["pdb","pqr"]:
110
- inputPDBfilePath = params["PDB"]
111
- else:
112
- raise NotImplementedError("PDB ID download not implemented yet.")
113
-
114
- sbcgParams = {"SASA":params.get("SASA",True),
115
- "centerInput":params.get("centerInput",True),
116
- "aggregateChains":params.get("aggregateChains",True),
117
- "parameters": copy.deepcopy(params),
118
- "additionalExclusions": params.get("additionalExclusions",False)}
119
-
120
- sbcg = proteinModel.SBCG(name = name,
121
- inputPDBfilePath = inputPDBfilePath,
122
- params = sbcgParams,
123
- debug = DEBUG_MODE)
124
-
125
- ########################################################
126
-
127
- types = self.getTypes()
128
- modelTypes = sbcg.getTypes()
129
-
130
- for _,t in modelTypes.items():
131
- types.addType(**t)
132
-
133
- self.setState(sbcg.getState())
134
- self.setStructure(sbcg.getStructure())
135
- self.setForceField(sbcg.getForceField())
136
-
137
-
138
- def processSelection(self,selectionType,selectionOptions):
139
- return None
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes