lammps-forcefield-tools 0.1.0__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 (277) hide show
  1. lammps_forcefield_tools-0.1.0/LICENSE +339 -0
  2. lammps_forcefield_tools-0.1.0/MANIFEST.in +16 -0
  3. lammps_forcefield_tools-0.1.0/PKG-INFO +298 -0
  4. lammps_forcefield_tools-0.1.0/README.md +262 -0
  5. lammps_forcefield_tools-0.1.0/docs/CHANGELOG.md +73 -0
  6. lammps_forcefield_tools-0.1.0/docs/MANUAL.md +381 -0
  7. lammps_forcefield_tools-0.1.0/docs/PROJECT_STATUS.md +246 -0
  8. lammps_forcefield_tools-0.1.0/examples/README.md +19 -0
  9. lammps_forcefield_tools-0.1.0/examples/water.mol2 +13 -0
  10. lammps_forcefield_tools-0.1.0/lft.config +28 -0
  11. lammps_forcefield_tools-0.1.0/pyproject.toml +69 -0
  12. lammps_forcefield_tools-0.1.0/requirements.lock +19 -0
  13. lammps_forcefield_tools-0.1.0/scripts/bootstrap_env.sh +38 -0
  14. lammps_forcefield_tools-0.1.0/scripts/build_gaff_oracle.py +104 -0
  15. lammps_forcefield_tools-0.1.0/scripts/extract_multiwfn_assets.py +83 -0
  16. lammps_forcefield_tools-0.1.0/scripts/gt44_runner.py +306 -0
  17. lammps_forcefield_tools-0.1.0/scripts/gt44_sobtop_compare.py +195 -0
  18. lammps_forcefield_tools-0.1.0/scripts/pyscf_smoke.py +40 -0
  19. lammps_forcefield_tools-0.1.0/scripts/validate_charges_vs_multiwfn.py +175 -0
  20. lammps_forcefield_tools-0.1.0/scripts/validate_gaff_source_semantics.py +170 -0
  21. lammps_forcefield_tools-0.1.0/scripts/validate_gaff_typer_vs_oracle.py +145 -0
  22. lammps_forcefield_tools-0.1.0/scripts/validate_ground_truth.py +26 -0
  23. lammps_forcefield_tools-0.1.0/scripts/validate_periodic_ground_truth.py +38 -0
  24. lammps_forcefield_tools-0.1.0/scripts/verify_handoff.sh +55 -0
  25. lammps_forcefield_tools-0.1.0/setup.cfg +4 -0
  26. lammps_forcefield_tools-0.1.0/src/lammps_forcefield_tools.egg-info/PKG-INFO +298 -0
  27. lammps_forcefield_tools-0.1.0/src/lammps_forcefield_tools.egg-info/SOURCES.txt +275 -0
  28. lammps_forcefield_tools-0.1.0/src/lammps_forcefield_tools.egg-info/dependency_links.txt +1 -0
  29. lammps_forcefield_tools-0.1.0/src/lammps_forcefield_tools.egg-info/entry_points.txt +2 -0
  30. lammps_forcefield_tools-0.1.0/src/lammps_forcefield_tools.egg-info/requires.txt +10 -0
  31. lammps_forcefield_tools-0.1.0/src/lammps_forcefield_tools.egg-info/top_level.txt +1 -0
  32. lammps_forcefield_tools-0.1.0/src/lft/__init__.py +7 -0
  33. lammps_forcefield_tools-0.1.0/src/lft/__main__.py +4 -0
  34. lammps_forcefield_tools-0.1.0/src/lft/audit.py +67 -0
  35. lammps_forcefield_tools-0.1.0/src/lft/backends/__init__.py +6 -0
  36. lammps_forcefield_tools-0.1.0/src/lft/backends/function_map.py +41 -0
  37. lammps_forcefield_tools-0.1.0/src/lft/backends/gromacs.py +215 -0
  38. lammps_forcefield_tools-0.1.0/src/lft/backends/moltemplate.py +410 -0
  39. lammps_forcefield_tools-0.1.0/src/lft/bonds.py +5 -0
  40. lammps_forcefield_tools-0.1.0/src/lft/charges/__init__.py +5 -0
  41. lammps_forcefield_tools-0.1.0/src/lft/charges/_atomic_density.py +87 -0
  42. lammps_forcefield_tools-0.1.0/src/lft/charges/_cm5_data.py +115 -0
  43. lammps_forcefield_tools-0.1.0/src/lft/charges/_grid.py +67 -0
  44. lammps_forcefield_tools-0.1.0/src/lft/charges/acpype.py +144 -0
  45. lammps_forcefield_tools-0.1.0/src/lft/charges/data/APS.DAT +45 -0
  46. lammps_forcefield_tools-0.1.0/src/lft/charges/data/ATOMTYPE_BCC.DEF +254 -0
  47. lammps_forcefield_tools-0.1.0/src/lft/charges/data/BCCPARM.DAT +405 -0
  48. lammps_forcefield_tools-0.1.0/src/lft/charges/data/BCCPARM_ABCG2.DAT +475 -0
  49. lammps_forcefield_tools-0.1.0/src/lft/charges/data/ESPPARM.DAT +121 -0
  50. lammps_forcefield_tools-0.1.0/src/lft/charges/data/GASPARM.DAT +40 -0
  51. lammps_forcefield_tools-0.1.0/src/lft/charges/data/__init__.py +0 -0
  52. lammps_forcefield_tools-0.1.0/src/lft/charges/data/multiwfn_atmraddens.npz +0 -0
  53. lammps_forcefield_tools-0.1.0/src/lft/charges/density_charges.py +156 -0
  54. lammps_forcefield_tools-0.1.0/src/lft/charges/dispatcher.py +186 -0
  55. lammps_forcefield_tools-0.1.0/src/lft/charges/empirical.py +163 -0
  56. lammps_forcefield_tools-0.1.0/src/lft/charges/esp.py +204 -0
  57. lammps_forcefield_tools-0.1.0/src/lft/charges/input.py +64 -0
  58. lammps_forcefield_tools-0.1.0/src/lft/charges/resp.py +325 -0
  59. lammps_forcefield_tools-0.1.0/src/lft/charges/semiempirical/__init__.py +15 -0
  60. lammps_forcefield_tools-0.1.0/src/lft/charges/semiempirical/am1.py +2005 -0
  61. lammps_forcefield_tools-0.1.0/src/lft/charges/semiempirical/bcc.py +225 -0
  62. lammps_forcefield_tools-0.1.0/src/lft/charges/semiempirical/bondtype.py +1150 -0
  63. lammps_forcefield_tools-0.1.0/src/lft/cli.py +136 -0
  64. lammps_forcefield_tools-0.1.0/src/lft/config.py +95 -0
  65. lammps_forcefield_tools-0.1.0/src/lft/domain/__init__.py +29 -0
  66. lammps_forcefield_tools-0.1.0/src/lft/domain/image.py +25 -0
  67. lammps_forcefield_tools-0.1.0/src/lft/domain/parameters.py +114 -0
  68. lammps_forcefield_tools-0.1.0/src/lft/domain/structure.py +284 -0
  69. lammps_forcefield_tools-0.1.0/src/lft/domain/topology.py +107 -0
  70. lammps_forcefield_tools-0.1.0/src/lft/domain/units.py +62 -0
  71. lammps_forcefield_tools-0.1.0/src/lft/errors.py +44 -0
  72. lammps_forcefield_tools-0.1.0/src/lft/forcefields/__init__.py +7 -0
  73. lammps_forcefield_tools-0.1.0/src/lft/forcefields/atomtype.py +185 -0
  74. lammps_forcefield_tools-0.1.0/src/lft/forcefields/data/ATOMTYPE_AMBER.DEF +150 -0
  75. lammps_forcefield_tools-0.1.0/src/lft/forcefields/data/ATOMTYPE_GAS.DEF +130 -0
  76. lammps_forcefield_tools-0.1.0/src/lft/forcefields/data/ATOMTYPE_GFF.DEF +406 -0
  77. lammps_forcefield_tools-0.1.0/src/lft/forcefields/data/ATOMTYPE_GFF2.DEF +429 -0
  78. lammps_forcefield_tools-0.1.0/src/lft/forcefields/data/CORR_NAME_TYPE.DAT +185 -0
  79. lammps_forcefield_tools-0.1.0/src/lft/forcefields/gaff.py +5 -0
  80. lammps_forcefield_tools-0.1.0/src/lft/forcefields/gaff_typer.py +1552 -0
  81. lammps_forcefield_tools-0.1.0/src/lft/forcefields/manual.py +20 -0
  82. lammps_forcefield_tools-0.1.0/src/lft/forcefields/matching.py +172 -0
  83. lammps_forcefield_tools-0.1.0/src/lft/forcefields/reference.py +240 -0
  84. lammps_forcefield_tools-0.1.0/src/lft/forcefields/tables.py +214 -0
  85. lammps_forcefield_tools-0.1.0/src/lft/forcefields/uff.py +5 -0
  86. lammps_forcefield_tools-0.1.0/src/lft/hessian.py +6 -0
  87. lammps_forcefield_tools-0.1.0/src/lft/io/__init__.py +6 -0
  88. lammps_forcefield_tools-0.1.0/src/lft/io/loaders.py +459 -0
  89. lammps_forcefield_tools-0.1.0/src/lft/io/qc_loaders.py +5 -0
  90. lammps_forcefield_tools-0.1.0/src/lft/io/serializers.py +17 -0
  91. lammps_forcefield_tools-0.1.0/src/lft/io/writers.py +6 -0
  92. lammps_forcefield_tools-0.1.0/src/lft/lft.config +28 -0
  93. lammps_forcefield_tools-0.1.0/src/lft/model.py +5 -0
  94. lammps_forcefield_tools-0.1.0/src/lft/parameterize/__init__.py +5 -0
  95. lammps_forcefield_tools-0.1.0/src/lft/parameterize/classic.py +164 -0
  96. lammps_forcefield_tools-0.1.0/src/lft/parameterize/hessian.py +49 -0
  97. lammps_forcefield_tools-0.1.0/src/lft/parameters.py +3 -0
  98. lammps_forcefield_tools-0.1.0/src/lft/pipeline.py +353 -0
  99. lammps_forcefield_tools-0.1.0/src/lft/qc/__init__.py +6 -0
  100. lammps_forcefield_tools-0.1.0/src/lft/qc/backend.py +43 -0
  101. lammps_forcefield_tools-0.1.0/src/lft/qc/hessian.py +56 -0
  102. lammps_forcefield_tools-0.1.0/src/lft/qc/pyscf_backend.py +94 -0
  103. lammps_forcefield_tools-0.1.0/src/lft/qc/wavefunction.py +77 -0
  104. lammps_forcefield_tools-0.1.0/src/lft/report.py +34 -0
  105. lammps_forcefield_tools-0.1.0/src/lft/runners/__init__.py +5 -0
  106. lammps_forcefield_tools-0.1.0/src/lft/runners/external.py +80 -0
  107. lammps_forcefield_tools-0.1.0/src/lft/runners/gmx.py +22 -0
  108. lammps_forcefield_tools-0.1.0/src/lft/runners/lammps.py +28 -0
  109. lammps_forcefield_tools-0.1.0/src/lft/runners/moltemplate.py +17 -0
  110. lammps_forcefield_tools-0.1.0/src/lft/runners/packmol.py +16 -0
  111. lammps_forcefield_tools-0.1.0/src/lft/settings.py +76 -0
  112. lammps_forcefield_tools-0.1.0/src/lft/topology/__init__.py +7 -0
  113. lammps_forcefield_tools-0.1.0/src/lft/topology/enumerate_terms.py +184 -0
  114. lammps_forcefield_tools-0.1.0/src/lft/topology/infer_bonds.py +105 -0
  115. lammps_forcefield_tools-0.1.0/src/lft/topology/pbc.py +80 -0
  116. lammps_forcefield_tools-0.1.0/src/lft/units.py +3 -0
  117. lammps_forcefield_tools-0.1.0/src/lft/validation/__init__.py +5 -0
  118. lammps_forcefield_tools-0.1.0/src/lft/validation/differential.py +16 -0
  119. lammps_forcefield_tools-0.1.0/src/lft/validation/gaff_oracle.py +111 -0
  120. lammps_forcefield_tools-0.1.0/src/lft/validation/ground_truth.py +52 -0
  121. lammps_forcefield_tools-0.1.0/src/lft/validation/normalized.py +45 -0
  122. lammps_forcefield_tools-0.1.0/src/lft/validation/physical.py +19 -0
  123. lammps_forcefield_tools-0.1.0/tests/fixtures/EC.xyz +12 -0
  124. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/allene_h.mol2 +21 -0
  125. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ammonium_h.mol2 +20 -0
  126. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/benzene_h.mol2 +32 -0
  127. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/biphenyl_h.mol2 +53 -0
  128. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/bridged_h.mol2 +47 -0
  129. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/butadiene_h.mol2 +27 -0
  130. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/difluoromethane_h.mol2 +17 -0
  131. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/disconnected_conjugation.mol2 +46 -0
  132. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/enyne_h.mol2 +23 -0
  133. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/fluoromethane_h.mol2 +17 -0
  134. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/furan_h.mol2 +26 -0
  135. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/fused_aliphatic_h.mol2 +65 -0
  136. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/halogens_h.mol2 +17 -0
  137. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/hexatriene_h.mol2 +35 -0
  138. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/imidazole_h.mol2 +26 -0
  139. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/indole_h.mol2 +41 -0
  140. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/methane_h.mol2 +17 -0
  141. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/name_correction.mol2 +13 -0
  142. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/name_isotopes.mol2 +13 -0
  143. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/name_long.mol2 +13 -0
  144. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/name_star.mol2 +13 -0
  145. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/name_upper_h.mol2 +13 -0
  146. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/naphthalene_h.mol2 +45 -0
  147. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/nitrile_h.mol2 +19 -0
  148. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/nitro_h.mol2 +26 -0
  149. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/peroxide_h.mol2 +27 -0
  150. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/phosphate_h.mol2 +23 -0
  151. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/pyridine_h.mol2 +30 -0
  152. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/pyrrole_h.mol2 +28 -0
  153. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ring10.mol2 +68 -0
  154. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ring11.mol2 +74 -0
  155. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ring3.mol2 +26 -0
  156. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ring4.mol2 +32 -0
  157. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ring5.mol2 +38 -0
  158. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ring6.mol2 +44 -0
  159. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ring7.mol2 +50 -0
  160. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ring8.mol2 +56 -0
  161. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ring9.mol2 +62 -0
  162. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/ring_carbonyl_h.mol2 +28 -0
  163. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/spiro_h.mol2 +47 -0
  164. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/sulfone_h.mol2 +29 -0
  165. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/thiophene_h.mol2 +26 -0
  166. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/boundary/trifluoromethane_h.mol2 +17 -0
  167. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/corpus.json +581 -0
  168. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/BH3.mol2 +15 -0
  169. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/CH2O.mol2 +15 -0
  170. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/NH3.mol2 +15 -0
  171. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/PCl3.mol2 +15 -0
  172. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/PyramC.mol2 +17 -0
  173. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.0.mol2 +32 -0
  174. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.02.mol2 +32 -0
  175. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.05.mol2 +32 -0
  176. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.08.mol2 +32 -0
  177. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.10.mol2 +32 -0
  178. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.12.mol2 +32 -0
  179. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.15.mol2 +32 -0
  180. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.16.mol2 +32 -0
  181. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.17.mol2 +32 -0
  182. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.175.mol2 +32 -0
  183. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.18.mol2 +32 -0
  184. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.19.mol2 +32 -0
  185. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.20.mol2 +32 -0
  186. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.25.mol2 +32 -0
  187. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.30.mol2 +32 -0
  188. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.40.mol2 +32 -0
  189. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.60.mol2 +32 -0
  190. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_0.80.mol2 +32 -0
  191. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/benz_1.00.mol2 +32 -0
  192. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/cprop.mol2 +26 -0
  193. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/imporder.mol2 +36 -0
  194. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/scramble.mol2 +19 -0
  195. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/scramble2.mol2 +21 -0
  196. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical29/water.mol2 +13 -0
  197. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/acetamide.mol2 +15 -0
  198. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/acetate.mol2 +18 -0
  199. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/acetone.mol2 +15 -0
  200. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/acetylene.mol2 +11 -0
  201. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/adenine.mol2 +29 -0
  202. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/allene.mol2 +13 -0
  203. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/aniline.mol2 +22 -0
  204. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/anthracene.mol2 +38 -0
  205. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/asparagine.mol2 +25 -0
  206. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/aspartate.mol2 +25 -0
  207. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/azulene.mol2 +27 -0
  208. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/benzaldehyde.mol2 +24 -0
  209. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/benzofuran.mol2 +27 -0
  210. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/benzoicacid.mol2 +26 -0
  211. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/benzothiophene.mol2 +23 -0
  212. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/biphenyl.mol2 +33 -0
  213. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/butadiene.mol2 +15 -0
  214. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/caffeine.mol2 +37 -0
  215. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/cysteine.mol2 +21 -0
  216. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/diethylether.mol2 +17 -0
  217. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/dimethylsulfoxide.mol2 +15 -0
  218. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/ethanol.mol2 +13 -0
  219. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/ethylamine.mol2 +13 -0
  220. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/ethylene.mol2 +11 -0
  221. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/furan.mol2 +18 -0
  222. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/glutamate.mol2 +27 -0
  223. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/glycine.mol2 +17 -0
  224. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/histidine.mol2 +30 -0
  225. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/imidazole.mol2 +18 -0
  226. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/indole.mol2 +27 -0
  227. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/isoquinoline.mol2 +27 -0
  228. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/methionine.mol2 +25 -0
  229. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/methylammonium.mol2 +14 -0
  230. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/naphthalene.mol2 +29 -0
  231. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/nitromethane.mol2 +20 -0
  232. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/phenanthrene.mol2 +38 -0
  233. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/phenol.mol2 +22 -0
  234. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/phenylalanine.mol2 +32 -0
  235. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/proline.mol2 +24 -0
  236. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/purine.mol2 +27 -0
  237. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/pyrene.mol2 +43 -0
  238. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/pyridazine.mol2 +20 -0
  239. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/pyridine.mol2 +20 -0
  240. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/pyrimidine.mol2 +20 -0
  241. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/pyrrole.mol2 +18 -0
  242. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/quinoline.mol2 +29 -0
  243. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/serine.mol2 +21 -0
  244. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/styrene.mol2 +24 -0
  245. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/sulfate.mol2 +22 -0
  246. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/thiophene.mol2 +18 -0
  247. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/threonine.mol2 +23 -0
  248. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/toluene.mol2 +22 -0
  249. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/trimethylphosphate.mol2 +23 -0
  250. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/tryptophan.mol2 +39 -0
  251. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/historical55/uracil.mol2 +24 -0
  252. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/reference.json +1892 -0
  253. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/supplement/acetamide_h.mol2 +25 -0
  254. lammps_forcefield_tools-0.1.0/tests/fixtures/gaff/supplement/methane.mol2 +9 -0
  255. lammps_forcefield_tools-0.1.0/tests/ground_truth/charges_multiwfn.json +23 -0
  256. lammps_forcefield_tools-0.1.0/tests/ground_truth/existing-periodic-diamond/manifest.yaml +17 -0
  257. lammps_forcefield_tools-0.1.0/tests/ground_truth/existing-periodic-fecl2/manifest.yaml +17 -0
  258. lammps_forcefield_tools-0.1.0/tests/ground_truth/existing-periodic-sio2/manifest.yaml +17 -0
  259. lammps_forcefield_tools-0.1.0/tests/ground_truth/gt44_catalog.yaml +475 -0
  260. lammps_forcefield_tools-0.1.0/tests/test_am1_semiempirical.py +119 -0
  261. lammps_forcefield_tools-0.1.0/tests/test_am1bcc_reference.py +104 -0
  262. lammps_forcefield_tools-0.1.0/tests/test_charges_vs_reference.py +51 -0
  263. lammps_forcefield_tools-0.1.0/tests/test_cli_workflow.py +90 -0
  264. lammps_forcefield_tools-0.1.0/tests/test_density_charges.py +115 -0
  265. lammps_forcefield_tools-0.1.0/tests/test_dihedral_form_equivalence.py +121 -0
  266. lammps_forcefield_tools-0.1.0/tests/test_docs_consistency.py +97 -0
  267. lammps_forcefield_tools-0.1.0/tests/test_external_tools.py +48 -0
  268. lammps_forcefield_tools-0.1.0/tests/test_gaff_oracle_validation.py +160 -0
  269. lammps_forcefield_tools-0.1.0/tests/test_gaff_typer_differential.py +188 -0
  270. lammps_forcefield_tools-0.1.0/tests/test_gromacs_writer_conventions.py +50 -0
  271. lammps_forcefield_tools-0.1.0/tests/test_idempotency.py +48 -0
  272. lammps_forcefield_tools-0.1.0/tests/test_import.py +37 -0
  273. lammps_forcefield_tools-0.1.0/tests/test_moltemplate_writer.py +58 -0
  274. lammps_forcefield_tools-0.1.0/tests/test_periodic_reference.py +28 -0
  275. lammps_forcefield_tools-0.1.0/tests/test_pipeline_core.py +129 -0
  276. lammps_forcefield_tools-0.1.0/tests/test_resp_multiwfn_reference.py +45 -0
  277. lammps_forcefield_tools-0.1.0/tests/test_topology_pair_classification.py +92 -0
@@ -0,0 +1,339 @@
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ <one line to give the program's name and a brief idea of what it does.>
294
+ Copyright (C) <year> <name of author>
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
+
310
+ Also add information on how to contact you by electronic and paper mail.
311
+
312
+ If the program is interactive, make it output a short notice like this
313
+ when it starts in an interactive mode:
314
+
315
+ Gnomovision version 69, Copyright (C) year name of author
316
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+ This is free software, and you are welcome to redistribute it
318
+ under certain conditions; type `show c' for details.
319
+
320
+ The hypothetical commands `show w' and `show c' should show the appropriate
321
+ parts of the General Public License. Of course, the commands you use may
322
+ be called something other than `show w' and `show c'; they could even be
323
+ mouse-clicks or menu items--whatever suits your program.
324
+
325
+ You should also get your employer (if you work as a programmer) or your
326
+ school, if any, to sign a "copyright disclaimer" for the program, if
327
+ necessary. Here is a sample; alter the names:
328
+
329
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+ <signature of Ty Coon>, 1 April 1989
333
+ Ty Coon, President of Vice
334
+
335
+ This General Public License does not permit incorporating your program into
336
+ proprietary programs. If your program is a subroutine library, you may
337
+ consider it more useful to permit linking proprietary applications with the
338
+ library. If this is what you want to do, use the GNU Lesser General
339
+ Public License instead of this License.
@@ -0,0 +1,16 @@
1
+ include README.md
2
+ include LICENSE
3
+ include pyproject.toml
4
+ include lft.config
5
+ include requirements.lock
6
+ recursive-include docs *.md
7
+ recursive-include examples *.md *.mol2 *.xyz *.pdb
8
+ recursive-include tests *.py *.yaml *.json *.mol2 *.pdb *.xyz *.txt
9
+ recursive-include scripts *.py *.sh
10
+ prune _archive
11
+ prune _scratch
12
+ prune references
13
+ prune thirdparty
14
+ prune research
15
+ prune e2e
16
+ global-exclude __pycache__ *.py[cod] *.so *.egg-info
@@ -0,0 +1,298 @@
1
+ Metadata-Version: 2.4
2
+ Name: lammps-forcefield-tools
3
+ Version: 0.1.0
4
+ Summary: Automated LAMMPS and GROMACS force-field and topology generation from molecular and crystal structures
5
+ Author: tgraphite
6
+ License-Expression: GPL-2.0-only
7
+ Project-URL: Homepage, https://github.com/tgraphite/LammpsForcefieldTools
8
+ Project-URL: Repository, https://github.com/tgraphite/LammpsForcefieldTools
9
+ Project-URL: Documentation, https://github.com/tgraphite/LammpsForcefieldTools/blob/main/docs/MANUAL.md
10
+ Project-URL: Changelog, https://github.com/tgraphite/LammpsForcefieldTools/blob/main/docs/CHANGELOG.md
11
+ Project-URL: Issues, https://github.com/tgraphite/LammpsForcefieldTools/issues
12
+ Project-URL: PyPI, https://pypi.org/project/lammps-forcefield-tools/
13
+ Keywords: lammps,gromacs,force-field,topology,molecular-dynamics,gaff,am1-bcc,resp,computational-chemistry
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Environment :: Console
16
+ Classifier: Intended Audience :: Science/Research
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Scientific/Engineering :: Chemistry
22
+ Classifier: Topic :: Scientific/Engineering :: Physics
23
+ Requires-Python: >=3.11
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: numpy>=1.26
27
+ Requires-Dist: scipy>=1.11
28
+ Requires-Dist: pyscf>=2.14
29
+ Requires-Dist: dftd3>=1.6
30
+ Requires-Dist: cclib>=1.8
31
+ Requires-Dist: openbabel-wheel>=3.1.1
32
+ Requires-Dist: PyYAML>=6.0
33
+ Provides-Extra: test
34
+ Requires-Dist: pytest>=8; extra == "test"
35
+ Dynamic: license-file
36
+
37
+ # LammpsForcefieldTools
38
+
39
+ [![PyPI](https://img.shields.io/pypi/v/lammps-forcefield-tools.svg)](https://pypi.org/project/lammps-forcefield-tools/)
40
+ [![Python](https://img.shields.io/pypi/pyversions/lammps-forcefield-tools.svg)](https://pypi.org/project/lammps-forcefield-tools/)
41
+ [![License: GPL-2.0](https://img.shields.io/badge/license-GPL--2.0-blue.svg)](LICENSE)
42
+
43
+ 把分子/晶体结构自动转换为可运行的 **LAMMPS** 力场与拓扑输入,同时提供 **GROMACS** 兼容输出。命令行入口为 **`lft`**。
44
+
45
+ ```bash
46
+ lft -f molecule.mol2 # 生成 molecule.data + molecule.in
47
+ lmp -in molecule.in # 直接运行
48
+ ```
49
+
50
+ - GitHub:<https://github.com/tgraphite/LammpsForcefieldTools>
51
+ - PyPI:<https://pypi.org/project/lammps-forcefield-tools/>
52
+ - 使用手册:[docs/MANUAL.md](docs/MANUAL.md)
53
+
54
+ ---
55
+
56
+ ## 功能特性
57
+
58
+ | 能力 | 说明 |
59
+ |---|---|
60
+ | 结构读入 | MOL2、PDB/ENT、PQR、GRO、XYZ、CIF/mmCIF、结构 JSON |
61
+ | 连接性 | 显式键优先;无键结构按共价半径与价键上限自动建键 |
62
+ | 拓扑 | 键、角、二面角、improper、1-4 pair,支持周期镜像 |
63
+ | 原子类型 | GAFF 规则引擎;`gaff+uff` 自动回退;支持纯 UFF 与手动映射 |
64
+ | 电荷 | 输入、MMFF94、AM1-BCC、RESP/RESP2、MK、CM5/raw-CM5、ADCH |
65
+ | 量化 | 内置 pySCF:单点、PCM、Hessian、ESP,无外部量化程序依赖 |
66
+ | 参数化 | 经典参数 + Hessian 投影;手动参数 JSON |
67
+ | LAMMPS 输出 | `real` 单位、`atom_style full`、`.data` + `.in`,可选 moltemplate |
68
+ | GROMACS 输出 | `.itp`、`.top`、`.gro`、`.mdp` |
69
+ | 周期体系 | 镜像感知键合项;晶体必须显式提供电荷 |
70
+ | 诊断 | 重要警告直接显示;完整披露写入 `<name>.lft/` |
71
+
72
+ ---
73
+
74
+ ## 安装
75
+
76
+ 要求 **Python 3.11+**。
77
+
78
+ ```bash
79
+ python -m pip install --upgrade pip
80
+ python -m pip install lammps-forcefield-tools
81
+ ```
82
+
83
+ 检查安装:
84
+
85
+ ```bash
86
+ lft --version
87
+ lft --help
88
+ ```
89
+
90
+ 从源码安装:
91
+
92
+ ```bash
93
+ git clone https://github.com/tgraphite/LammpsForcefieldTools.git
94
+ cd LammpsForcefieldTools
95
+ python -m pip install .
96
+ ```
97
+
98
+ 开发/测试安装:
99
+
100
+ ```bash
101
+ python -m pip install -e ".[test]"
102
+ python -m pytest -q
103
+ ```
104
+
105
+ 安装包会自动拉取:`numpy`、`scipy`、`pyscf`、`dftd3`、`cclib`、`openbabel-wheel`、`PyYAML`。
106
+
107
+ ---
108
+
109
+ ## 快速开始
110
+
111
+ 仓库自带一个带电荷的水分子示例:
112
+
113
+ ```bash
114
+ cd examples
115
+ lft -f water.mol2
116
+ ```
117
+
118
+ 输出:
119
+
120
+ ```text
121
+ water.data
122
+ water.in
123
+ ```
124
+
125
+ 运行 LAMMPS:
126
+
127
+ ```bash
128
+ lmp -in water.in
129
+ ```
130
+
131
+ 生成 GROMACS 输入:
132
+
133
+ ```bash
134
+ lft -f water.mol2 --output gromacs
135
+ # water.itp water.top water.gro water.mdp
136
+ ```
137
+
138
+ 生成后立即做引擎输入烟测:
139
+
140
+ ```bash
141
+ lft -f water.mol2 --engine-smoke
142
+ ```
143
+
144
+ ---
145
+
146
+ ## 模块
147
+
148
+ 程序按处理阶段组织,命令行会把各阶段自动串联:
149
+
150
+ | 阶段 | Python 包 | 职责 |
151
+ |---|---|---|
152
+ | 结构 | `lft.io` | 读取常见分子/晶体格式,输出统一结构模型 |
153
+ | 领域模型 | `lft.domain` | 原子、晶胞、拓扑项、参数、单位 |
154
+ | 拓扑 | `lft.topology` | 建键、键合项枚举、周期镜像处理 |
155
+ | 力场 | `lft.forcefields` | GAFF/UFF/manual 原子类型与非键参数 |
156
+ | 电荷 | `lft.charges` | AM1-BCC、RESP、密度电荷、电荷文件 |
157
+ | 量化 | `lft.qc` | pySCF 单点、PCM、Hessian、ESP |
158
+ | 参数化 | `lft.parameterize` | 经典参数与 Hessian 投影 |
159
+ | 后端 | `lft.backends` | LAMMPS 与 GROMACS 文件生成 |
160
+ | 外部程序 | `lft.runners` | gmx、lmp、moltemplate、Packmol 受控调用 |
161
+ | 校验 | `lft.validation` | 结构、电荷、能量与 ground truth 校验 |
162
+
163
+ ---
164
+
165
+ ## 通用参数
166
+
167
+ | 参数 | 默认值 | 说明 |
168
+ |---|---|---|
169
+ | `-f`, `--structure` | 必填 | 输入结构文件 |
170
+ | `-o`, `--output` | `lammps` | `lammps` 或 `gromacs` |
171
+ | `--ff` | `gaff+uff` | `gaff`、`gaff+uff`、`uff`、`manual` |
172
+ | `--charge` | 自动 | 电荷方法名或电荷文件路径 |
173
+ | `--net-charge` | `0` | 分子形式电荷 |
174
+ | `--mult`, `--multiplicity` | `1` | 自旋多重度 |
175
+ | `--outdir` | 当前目录 | 产物目录 |
176
+ | `--force` | 关闭 | 覆盖同名产物 |
177
+ | `--debug` | 关闭 | 写出 `<name>.lft/debug.txt` 诊断包 |
178
+ | `-V`, `--version` | — | 显示版本 |
179
+ | `-h`, `--help` | — | 显示帮助 |
180
+
181
+ ### 电荷自动选择
182
+
183
+ 未指定 `--charge` 时:
184
+
185
+ 1. 结构自带电荷 → 直接使用;
186
+ 2. 非周期且 ≤100 原子 → `resp`;
187
+ 3. 非周期且 >100 原子 → `am1-bcc`;
188
+ 4. 周期结构 → 必须显式提供电荷,否则报错。
189
+
190
+ `--charge` 也可以直接给文件路径:
191
+
192
+ ```bash
193
+ lft -f molecule.xyz --charge charges.txt
194
+ lft -f crystal.pdb --charge charges.txt --ff uff
195
+ ```
196
+
197
+ ### 高级参数
198
+
199
+ 以下参数默认值通常正确,完整说明见[使用手册](docs/MANUAL.md):
200
+
201
+ `--parameter-mode`、`--qc`、`--qc-backend`、`--hessian-file`、`--hessian-method`、`--manual-file`、`--no-qc`、`--engine-smoke`、`--moltemplate`。
202
+
203
+ ---
204
+
205
+ ## 输入与输出
206
+
207
+ ### 输入格式
208
+
209
+ | 后缀 | 连接性 | 周期性 |
210
+ |---|---|---|
211
+ | `.mol2` | `@<TRIPOS>BOND`(推荐) | `@<TRIPOS>CRYSIN` |
212
+ | `.pdb`、`.ent`、`.pqr` | `CONECT` 或距离推断 | `CRYST1` |
213
+ | `.gro` | 距离推断 | box 行 |
214
+ | `.xyz` | 距离推断 | 注释行晶格(可选) |
215
+ | `.cif`、`.mmcif` | 距离推断 | 晶胞参数 |
216
+ | `.json` | 文件内 `bonds` | 文件内 `cell` |
217
+
218
+ ### 输出文件
219
+
220
+ LAMMPS(默认):
221
+
222
+ ```text
223
+ <name>.data 坐标、拓扑、原子类型与系数
224
+ <name>.in units / pair_style / bond_style / 运行设置
225
+ ```
226
+
227
+ GROMACS:
228
+
229
+ ```text
230
+ <name>.itp 原子、键、角、二面角、1-4 pair
231
+ <name>.top 力场默认项与系统定义
232
+ <name>.gro 坐标
233
+ <name>.mdp 最小运行参数
234
+ ```
235
+
236
+ 按需出现:
237
+
238
+ ```text
239
+ <name>.lft/notes.txt 警告与参数来源披露
240
+ <name>.lft/image_map.json 周期图镜像映射
241
+ <name>.lft/debug.txt --debug 诊断
242
+ <name>.lft/normalized_ir.json --debug 规范化结构
243
+ ```
244
+
245
+ ---
246
+
247
+ ## 配置
248
+
249
+ 可选全局配置文件 `lft.config`,格式为 `key = value`:
250
+
251
+ ```ini
252
+ output = lammps
253
+ ff = gaff+uff
254
+ charge = resp
255
+ qc = b3lyp-d3bj/def2-svp
256
+ gmx = /usr/local/gromacs/bin/gmx
257
+ lmp = /opt/lammps/bin/lmp
258
+ ```
259
+
260
+ 查找顺序:`$LFT_CONFIG` → 安装根目录 → Python 包目录。优先级:**命令行 > 配置文件 > 内置默认**。
261
+
262
+ 常用环境变量:
263
+
264
+ | 变量 | 作用 |
265
+ |---|---|
266
+ | `LFT_CONFIG` | 配置文件路径 |
267
+ | `LFT_GMX` | GROMACS 可执行文件 |
268
+ | `LFT_LMP` | LAMMPS 可执行文件 |
269
+ | `LFT_OBABEL` | OpenBabel 可执行文件 |
270
+ | `LFT_AM1BCC_OPTIMIZE` | AM1-BCC 几何优化:`yes`/`no`/`auto` |
271
+ | `LFT_ATOMTYPE_EXTERNAL` | 用外部 `atomtype` 做对照 |
272
+
273
+ ---
274
+
275
+ ## 文档
276
+
277
+ | 文档 | 内容 |
278
+ |---|---|
279
+ | [使用手册](docs/MANUAL.md) | 安装、完整 CLI、电荷、周期、产物、排错 |
280
+ | [模块现状](docs/PROJECT_STATUS.md) | 模块成熟度、能力矩阵、验证结果与已知边界 |
281
+ | [更新日志](docs/CHANGELOG.md) | 版本变更 |
282
+
283
+ ---
284
+
285
+ ## 已知限制
286
+
287
+ - 经典键合参数库尚不完整;未命中项使用确定性通用值,并在 `notes.txt` 中标注。
288
+ - UFF/共轭二面角当前使用占位参数,定量工作前应核对或用 `--manual-file` 覆盖。
289
+ - AM1-BCC 默认不做几何优化,电荷依赖输入构象。
290
+ - 周期体系只接受显式电荷,不做 ESP/密度电荷拟合。
291
+ - LAMMPS 输出固定 10 Å 直接截断,未启用 PPPM/PME。
292
+ - 不提供构象搜索、体系组装、MD 采样或力场重优化。
293
+
294
+ ---
295
+
296
+ ## 许可证
297
+
298
+ GNU General Public License v2.0,见 [LICENSE](LICENSE)。