CondenSimAdapter 1.0.0b0__py3-none-any.whl

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 (370) hide show
  1. CondenSimAdapter/__init__.py +39 -0
  2. CondenSimAdapter/backmap/__init__.py +9 -0
  3. CondenSimAdapter/backmap/backmapper.py +261 -0
  4. CondenSimAdapter/backmap/cg2all/__init__.py +21 -0
  5. CondenSimAdapter/backmap/cg2all/data/calpha_geometry_params.dat +1073 -0
  6. CondenSimAdapter/backmap/cg2all/data/martini.top +95 -0
  7. CondenSimAdapter/backmap/cg2all/data/martini2.top +95 -0
  8. CondenSimAdapter/backmap/cg2all/data/martini3.top +98 -0
  9. CondenSimAdapter/backmap/cg2all/data/primo.top +159 -0
  10. CondenSimAdapter/backmap/cg2all/data/residue_constants.pkl +0 -0
  11. CondenSimAdapter/backmap/cg2all/data/residue_geometry_params.bound.dat +1073 -0
  12. CondenSimAdapter/backmap/cg2all/data/residue_geometry_params.harmonic.dat +1073 -0
  13. CondenSimAdapter/backmap/cg2all/lib/__init__.py +3 -0
  14. CondenSimAdapter/backmap/cg2all/lib/libcg.py +666 -0
  15. CondenSimAdapter/backmap/cg2all/lib/libconfig.py +14 -0
  16. CondenSimAdapter/backmap/cg2all/lib/libdata.py +554 -0
  17. CondenSimAdapter/backmap/cg2all/lib/libloss.py +785 -0
  18. CondenSimAdapter/backmap/cg2all/lib/libmetric.py +77 -0
  19. CondenSimAdapter/backmap/cg2all/lib/libmodel.py +634 -0
  20. CondenSimAdapter/backmap/cg2all/lib/libpdb.py +490 -0
  21. CondenSimAdapter/backmap/cg2all/lib/libter.py +127 -0
  22. CondenSimAdapter/backmap/cg2all/lib/model_downloader.py +164 -0
  23. CondenSimAdapter/backmap/cg2all/lib/numpy_basics.py +147 -0
  24. CondenSimAdapter/backmap/cg2all/lib/residue_constants.py +305 -0
  25. CondenSimAdapter/backmap/cg2all/lib/residue_constants_base.py +426 -0
  26. CondenSimAdapter/backmap/cg2all/lib/snippets.py +226 -0
  27. CondenSimAdapter/backmap/cg2all/lib/torch_basics.py +87 -0
  28. CondenSimAdapter/backmap/cg2all/model/.gitkeep +0 -0
  29. CondenSimAdapter/backmap/cg2all/model/__init__.py +174 -0
  30. CondenSimAdapter/backmap/se3transformer/__init__.py +3 -0
  31. CondenSimAdapter/backmap/se3transformer/basis.py +214 -0
  32. CondenSimAdapter/backmap/se3transformer/fiber.py +155 -0
  33. CondenSimAdapter/backmap/se3transformer/layers/__init__.py +5 -0
  34. CondenSimAdapter/backmap/se3transformer/layers/attention.py +200 -0
  35. CondenSimAdapter/backmap/se3transformer/layers/convolution.py +420 -0
  36. CondenSimAdapter/backmap/se3transformer/layers/linear.py +65 -0
  37. CondenSimAdapter/backmap/se3transformer/layers/norm.py +90 -0
  38. CondenSimAdapter/backmap/se3transformer/layers/pooling.py +55 -0
  39. CondenSimAdapter/backmap/se3transformer/snippets.py +118 -0
  40. CondenSimAdapter/backmap/se3transformer/transformer.py +299 -0
  41. CondenSimAdapter/backmap/se3transformer/utils.py +138 -0
  42. CondenSimAdapter/cli/__init__.py +155 -0
  43. CondenSimAdapter/cli/__main__.py +51 -0
  44. CondenSimAdapter/cli/commands.py +57 -0
  45. CondenSimAdapter/cli/commands_refactored/__init__.py +28 -0
  46. CondenSimAdapter/cli/commands_refactored/backmap_command.py +129 -0
  47. CondenSimAdapter/cli/commands_refactored/cg_command.py +89 -0
  48. CondenSimAdapter/cli/commands_refactored/droplet_density_command.py +327 -0
  49. CondenSimAdapter/cli/commands_refactored/forcefield_command.py +108 -0
  50. CondenSimAdapter/cli/commands_refactored/info_command.py +56 -0
  51. CondenSimAdapter/cli/commands_refactored/init_command.py +268 -0
  52. CondenSimAdapter/cli/commands_refactored/minimize_command.py +122 -0
  53. CondenSimAdapter/cli/commands_refactored/models_command.py +69 -0
  54. CondenSimAdapter/cli/commands_refactored/pace_opt_command.py +168 -0
  55. CondenSimAdapter/cli/commands_refactored/to_run_command.py +415 -0
  56. CondenSimAdapter/cli/shared.py +255 -0
  57. CondenSimAdapter/core/__init__.py +27 -0
  58. CondenSimAdapter/core/config.py +245 -0
  59. CondenSimAdapter/core/forcefield/__init__.py +64 -0
  60. CondenSimAdapter/core/forcefield/base.py +194 -0
  61. CondenSimAdapter/core/forcefield/calvados.py +160 -0
  62. CondenSimAdapter/core/forcefield/cocomo.py +416 -0
  63. CondenSimAdapter/core/forcefield/data/HPS_Urry_parameters.csv +211 -0
  64. CondenSimAdapter/core/forcefield/data/recharged_params.txt +1764 -0
  65. CondenSimAdapter/core/forcefield/data/residues_CALVADOS2.csv +21 -0
  66. CondenSimAdapter/core/forcefield/data/residues_CALVADOS3.csv +21 -0
  67. CondenSimAdapter/core/forcefield/hps.py +237 -0
  68. CondenSimAdapter/core/forcefield/mpipi.py +236 -0
  69. CondenSimAdapter/core/molecule.py +389 -0
  70. CondenSimAdapter/core/simulation.py +327 -0
  71. CondenSimAdapter/core/topology.py +118 -0
  72. CondenSimAdapter/extern/__init__.py +1 -0
  73. CondenSimAdapter/forcefield/__init__.py +1 -0
  74. CondenSimAdapter/forcefield/a99SBdisp.ff/a99SBdisp_water.gro +55299 -0
  75. CondenSimAdapter/forcefield/a99SBdisp.ff/a99SBdisp_water.itp +25 -0
  76. CondenSimAdapter/forcefield/a99SBdisp.ff/aminoacids.arn +83 -0
  77. CondenSimAdapter/forcefield/a99SBdisp.ff/aminoacids.c.tdb +3 -0
  78. CondenSimAdapter/forcefield/a99SBdisp.ff/aminoacids.hdb +529 -0
  79. CondenSimAdapter/forcefield/a99SBdisp.ff/aminoacids.n.tdb +3 -0
  80. CondenSimAdapter/forcefield/a99SBdisp.ff/aminoacids.r2b +31 -0
  81. CondenSimAdapter/forcefield/a99SBdisp.ff/aminoacids.rtp +3737 -0
  82. CondenSimAdapter/forcefield/a99SBdisp.ff/aminoacids.vsd +225 -0
  83. CondenSimAdapter/forcefield/a99SBdisp.ff/atomtypes.atp +79 -0
  84. CondenSimAdapter/forcefield/a99SBdisp.ff/ffbonded.itp +827 -0
  85. CondenSimAdapter/forcefield/a99SBdisp.ff/ffnonbonded.itp +94 -0
  86. CondenSimAdapter/forcefield/a99SBdisp.ff/forcefield.doc +9 -0
  87. CondenSimAdapter/forcefield/a99SBdisp.ff/forcefield.itp +21 -0
  88. CondenSimAdapter/forcefield/a99SBdisp.ff/ions.itp +88 -0
  89. CondenSimAdapter/forcefield/a99SBdisp.ff/watermodels.dat +1 -0
  90. CondenSimAdapter/forcefield/amber03wsc.ff/aminoacids.arn +83 -0
  91. CondenSimAdapter/forcefield/amber03wsc.ff/aminoacids.c.tdb +3 -0
  92. CondenSimAdapter/forcefield/amber03wsc.ff/aminoacids.hdb +526 -0
  93. CondenSimAdapter/forcefield/amber03wsc.ff/aminoacids.n.tdb +3 -0
  94. CondenSimAdapter/forcefield/amber03wsc.ff/aminoacids.r2b +31 -0
  95. CondenSimAdapter/forcefield/amber03wsc.ff/aminoacids.rtp +3514 -0
  96. CondenSimAdapter/forcefield/amber03wsc.ff/aminoacids.vsd +225 -0
  97. CondenSimAdapter/forcefield/amber03wsc.ff/atomtypes.atp +82 -0
  98. CondenSimAdapter/forcefield/amber03wsc.ff/dna.arn +8 -0
  99. CondenSimAdapter/forcefield/amber03wsc.ff/dna.hdb +160 -0
  100. CondenSimAdapter/forcefield/amber03wsc.ff/dna.r2b +6 -0
  101. CondenSimAdapter/forcefield/amber03wsc.ff/dna.rtp +1235 -0
  102. CondenSimAdapter/forcefield/amber03wsc.ff/ffbonded.itp +548 -0
  103. CondenSimAdapter/forcefield/amber03wsc.ff/ffnonbonded.itp +121 -0
  104. CondenSimAdapter/forcefield/amber03wsc.ff/forcefield.doc +13 -0
  105. CondenSimAdapter/forcefield/amber03wsc.ff/forcefield.itp +22 -0
  106. CondenSimAdapter/forcefield/amber03wsc.ff/gbsa.itp +35 -0
  107. CondenSimAdapter/forcefield/amber03wsc.ff/ions.itp +88 -0
  108. CondenSimAdapter/forcefield/amber03wsc.ff/rna.arn +8 -0
  109. CondenSimAdapter/forcefield/amber03wsc.ff/rna.hdb +205 -0
  110. CondenSimAdapter/forcefield/amber03wsc.ff/rna.r2b +6 -0
  111. CondenSimAdapter/forcefield/amber03wsc.ff/rna.rtp +1244 -0
  112. CondenSimAdapter/forcefield/amber03wsc.ff/spc.itp +33 -0
  113. CondenSimAdapter/forcefield/amber03wsc.ff/spce.itp +33 -0
  114. CondenSimAdapter/forcefield/amber03wsc.ff/tip3p.itp +34 -0
  115. CondenSimAdapter/forcefield/amber03wsc.ff/tip4p.itp +55 -0
  116. CondenSimAdapter/forcefield/amber03wsc.ff/tip4p2005.itp +55 -0
  117. CondenSimAdapter/forcefield/amber03wsc.ff/tip4p2005s.itp +55 -0
  118. CondenSimAdapter/forcefield/amber03wsc.ff/tip4pew.itp +56 -0
  119. CondenSimAdapter/forcefield/amber03wsc.ff/tip5p.itp +74 -0
  120. CondenSimAdapter/forcefield/amber03wsc.ff/urea.itp +36 -0
  121. CondenSimAdapter/forcefield/amber03wsc.ff/watermodels.dat +8 -0
  122. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/Makefile.am +20 -0
  123. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/Makefile.in +444 -0
  124. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/aminoacids.arn +83 -0
  125. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/aminoacids.c.tdb +3 -0
  126. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/aminoacids.hdb +518 -0
  127. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/aminoacids.n.tdb +3 -0
  128. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/aminoacids.r2b +31 -0
  129. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/aminoacids.rtp +3401 -0
  130. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/aminoacids.vsd +225 -0
  131. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/atomtypes.atp +87 -0
  132. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/dna.arn +8 -0
  133. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/dna.hdb +160 -0
  134. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/dna.r2b +6 -0
  135. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/dna.rtp +1223 -0
  136. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/ffbonded.itp +1503 -0
  137. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/ffnonbonded.itp +96 -0
  138. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/forcefield.doc +12 -0
  139. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/forcefield.itp +23 -0
  140. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/gbsa.itp +38 -0
  141. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/ions.itp +88 -0
  142. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/rna.arn +8 -0
  143. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/rna.hdb +205 -0
  144. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/rna.r2b +6 -0
  145. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/rna.rtp +1232 -0
  146. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/spc.itp +33 -0
  147. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/spce.itp +33 -0
  148. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/tip3p.itp +34 -0
  149. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/tip4p.itp +55 -0
  150. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/tip4pew.itp +56 -0
  151. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/tip5p.itp +69 -0
  152. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/urea.itp +36 -0
  153. CondenSimAdapter/forcefield/amber14sb_parmbsc1.ff/watermodels.dat +5 -0
  154. CondenSimAdapter/forcefield/amber99sb-ildn.ff/aminoacids.arn +83 -0
  155. CondenSimAdapter/forcefield/amber99sb-ildn.ff/aminoacids.c.tdb +3 -0
  156. CondenSimAdapter/forcefield/amber99sb-ildn.ff/aminoacids.hdb +518 -0
  157. CondenSimAdapter/forcefield/amber99sb-ildn.ff/aminoacids.n.tdb +3 -0
  158. CondenSimAdapter/forcefield/amber99sb-ildn.ff/aminoacids.r2b +31 -0
  159. CondenSimAdapter/forcefield/amber99sb-ildn.ff/aminoacids.rtp +3530 -0
  160. CondenSimAdapter/forcefield/amber99sb-ildn.ff/aminoacids.vsd +225 -0
  161. CondenSimAdapter/forcefield/amber99sb-ildn.ff/atomtypes.atp +66 -0
  162. CondenSimAdapter/forcefield/amber99sb-ildn.ff/dna.arn +8 -0
  163. CondenSimAdapter/forcefield/amber99sb-ildn.ff/dna.hdb +160 -0
  164. CondenSimAdapter/forcefield/amber99sb-ildn.ff/dna.r2b +6 -0
  165. CondenSimAdapter/forcefield/amber99sb-ildn.ff/dna.rtp +1235 -0
  166. CondenSimAdapter/forcefield/amber99sb-ildn.ff/ffbonded.itp +581 -0
  167. CondenSimAdapter/forcefield/amber99sb-ildn.ff/ffnonbonded.itp +74 -0
  168. CondenSimAdapter/forcefield/amber99sb-ildn.ff/forcefield.doc +12 -0
  169. CondenSimAdapter/forcefield/amber99sb-ildn.ff/forcefield.itp +20 -0
  170. CondenSimAdapter/forcefield/amber99sb-ildn.ff/ions.itp +88 -0
  171. CondenSimAdapter/forcefield/amber99sb-ildn.ff/rna.arn +8 -0
  172. CondenSimAdapter/forcefield/amber99sb-ildn.ff/rna.hdb +205 -0
  173. CondenSimAdapter/forcefield/amber99sb-ildn.ff/rna.r2b +6 -0
  174. CondenSimAdapter/forcefield/amber99sb-ildn.ff/rna.rtp +1244 -0
  175. CondenSimAdapter/forcefield/amber99sb-ildn.ff/spc.itp +33 -0
  176. CondenSimAdapter/forcefield/amber99sb-ildn.ff/spce.itp +33 -0
  177. CondenSimAdapter/forcefield/amber99sb-ildn.ff/tip3p.itp +34 -0
  178. CondenSimAdapter/forcefield/amber99sb-ildn.ff/tip4p.itp +55 -0
  179. CondenSimAdapter/forcefield/amber99sb-ildn.ff/tip4pew.itp +56 -0
  180. CondenSimAdapter/forcefield/amber99sb-ildn.ff/tip5p.itp +74 -0
  181. CondenSimAdapter/forcefield/amber99sb-ildn.ff/urea.itp +36 -0
  182. CondenSimAdapter/forcefield/amber99sb-ildn.ff/watermodels.dat +6 -0
  183. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/aminoacids.arn +83 -0
  184. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/aminoacids.c.tdb +3 -0
  185. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/aminoacids.hdb +518 -0
  186. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/aminoacids.n.tdb +3 -0
  187. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/aminoacids.r2b +31 -0
  188. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/aminoacids.rtp +3578 -0
  189. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/aminoacids.vsd +225 -0
  190. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/atomtypes.atp +68 -0
  191. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/dna.arn +8 -0
  192. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/dna.hdb +160 -0
  193. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/dna.r2b +6 -0
  194. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/dna.rtp +1235 -0
  195. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/ffbonded.itp +581 -0
  196. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/ffnonbonded.itp +91 -0
  197. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/forcefield.doc +14 -0
  198. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/forcefield.itp +22 -0
  199. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/gbsa.itp +38 -0
  200. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/ions.itp +88 -0
  201. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/rna.arn +8 -0
  202. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/rna.hdb +205 -0
  203. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/rna.r2b +6 -0
  204. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/rna.rtp +1244 -0
  205. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/spc.itp +33 -0
  206. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/spce.itp +33 -0
  207. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/tip3p.itp +34 -0
  208. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/tip4p.itp +55 -0
  209. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/tip4p2005.itp +55 -0
  210. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/tip4p2005s.itp +55 -0
  211. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/tip4pew.itp +56 -0
  212. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/tip5p.itp +74 -0
  213. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/urea.itp +36 -0
  214. CondenSimAdapter/forcefield/amber99sbws-STQp.ff/watermodels.dat +8 -0
  215. CondenSimAdapter/forcefield/amber99sbws-stq.ff/aminoacids.arn +83 -0
  216. CondenSimAdapter/forcefield/amber99sbws-stq.ff/aminoacids.c.tdb +3 -0
  217. CondenSimAdapter/forcefield/amber99sbws-stq.ff/aminoacids.hdb +518 -0
  218. CondenSimAdapter/forcefield/amber99sbws-stq.ff/aminoacids.n.tdb +3 -0
  219. CondenSimAdapter/forcefield/amber99sbws-stq.ff/aminoacids.r2b +31 -0
  220. CondenSimAdapter/forcefield/amber99sbws-stq.ff/aminoacids.rtp +3578 -0
  221. CondenSimAdapter/forcefield/amber99sbws-stq.ff/aminoacids.vsd +225 -0
  222. CondenSimAdapter/forcefield/amber99sbws-stq.ff/atomtypes.atp +68 -0
  223. CondenSimAdapter/forcefield/amber99sbws-stq.ff/dna.arn +8 -0
  224. CondenSimAdapter/forcefield/amber99sbws-stq.ff/dna.hdb +160 -0
  225. CondenSimAdapter/forcefield/amber99sbws-stq.ff/dna.r2b +6 -0
  226. CondenSimAdapter/forcefield/amber99sbws-stq.ff/dna.rtp +1235 -0
  227. CondenSimAdapter/forcefield/amber99sbws-stq.ff/ffbonded.itp +581 -0
  228. CondenSimAdapter/forcefield/amber99sbws-stq.ff/ffnonbonded.itp +86 -0
  229. CondenSimAdapter/forcefield/amber99sbws-stq.ff/forcefield.doc +14 -0
  230. CondenSimAdapter/forcefield/amber99sbws-stq.ff/forcefield.itp +23 -0
  231. CondenSimAdapter/forcefield/amber99sbws-stq.ff/gbsa.itp +38 -0
  232. CondenSimAdapter/forcefield/amber99sbws-stq.ff/ions.itp +88 -0
  233. CondenSimAdapter/forcefield/amber99sbws-stq.ff/rna.arn +8 -0
  234. CondenSimAdapter/forcefield/amber99sbws-stq.ff/rna.hdb +205 -0
  235. CondenSimAdapter/forcefield/amber99sbws-stq.ff/rna.r2b +6 -0
  236. CondenSimAdapter/forcefield/amber99sbws-stq.ff/rna.rtp +1244 -0
  237. CondenSimAdapter/forcefield/amber99sbws-stq.ff/tip4p2005.itp +55 -0
  238. CondenSimAdapter/forcefield/amber99sbws-stq.ff/tip4p2005s.itp +55 -0
  239. CondenSimAdapter/forcefield/amber99sbws-stq.ff/tip4pew.itp +56 -0
  240. CondenSimAdapter/forcefield/amber99sbws-stq.ff/tip5p.itp +74 -0
  241. CondenSimAdapter/forcefield/amber99sbws-stq.ff/urea.itp +36 -0
  242. CondenSimAdapter/forcefield/amber99sbws-stq.ff/watermodels.dat +8 -0
  243. CondenSimAdapter/forcefield/charmm36-jul2021.ff/aminoacids.arn +19 -0
  244. CondenSimAdapter/forcefield/charmm36-jul2021.ff/aminoacids.c.tdb +78 -0
  245. CondenSimAdapter/forcefield/charmm36-jul2021.ff/aminoacids.hdb +4032 -0
  246. CondenSimAdapter/forcefield/charmm36-jul2021.ff/aminoacids.n.tdb +68 -0
  247. CondenSimAdapter/forcefield/charmm36-jul2021.ff/aminoacids.r2b +37 -0
  248. CondenSimAdapter/forcefield/charmm36-jul2021.ff/aminoacids.rtp +30314 -0
  249. CondenSimAdapter/forcefield/charmm36-jul2021.ff/atomtypes.atp +713 -0
  250. CondenSimAdapter/forcefield/charmm36-jul2021.ff/carb.c.tdb +10 -0
  251. CondenSimAdapter/forcefield/charmm36-jul2021.ff/carb.hdb +6357 -0
  252. CondenSimAdapter/forcefield/charmm36-jul2021.ff/carb.n.tdb +10 -0
  253. CondenSimAdapter/forcefield/charmm36-jul2021.ff/carb.r2b +8 -0
  254. CondenSimAdapter/forcefield/charmm36-jul2021.ff/carb.rtp +31456 -0
  255. CondenSimAdapter/forcefield/charmm36-jul2021.ff/cgenff.c.tdb +10 -0
  256. CondenSimAdapter/forcefield/charmm36-jul2021.ff/cgenff.hdb +6163 -0
  257. CondenSimAdapter/forcefield/charmm36-jul2021.ff/cgenff.n.tdb +10 -0
  258. CondenSimAdapter/forcefield/charmm36-jul2021.ff/cgenff.r2b +8 -0
  259. CondenSimAdapter/forcefield/charmm36-jul2021.ff/cgenff.rtp +38327 -0
  260. CondenSimAdapter/forcefield/charmm36-jul2021.ff/cmap.itp +1683 -0
  261. CondenSimAdapter/forcefield/charmm36-jul2021.ff/dna.arn +12 -0
  262. CondenSimAdapter/forcefield/charmm36-jul2021.ff/ethers.c.tdb +10 -0
  263. CondenSimAdapter/forcefield/charmm36-jul2021.ff/ethers.hdb +234 -0
  264. CondenSimAdapter/forcefield/charmm36-jul2021.ff/ethers.n.tdb +10 -0
  265. CondenSimAdapter/forcefield/charmm36-jul2021.ff/ethers.r2b +8 -0
  266. CondenSimAdapter/forcefield/charmm36-jul2021.ff/ethers.rtp +1046 -0
  267. CondenSimAdapter/forcefield/charmm36-jul2021.ff/ffbonded.itp +24856 -0
  268. CondenSimAdapter/forcefield/charmm36-jul2021.ff/ffmissingdihedrals.itp +14 -0
  269. CondenSimAdapter/forcefield/charmm36-jul2021.ff/ffnonbonded.itp +51245 -0
  270. CondenSimAdapter/forcefield/charmm36-jul2021.ff/forcefield.doc +194 -0
  271. CondenSimAdapter/forcefield/charmm36-jul2021.ff/forcefield.itp +27 -0
  272. CondenSimAdapter/forcefield/charmm36-jul2021.ff/ions.itp +689 -0
  273. CondenSimAdapter/forcefield/charmm36-jul2021.ff/lipid.c.tdb +10 -0
  274. CondenSimAdapter/forcefield/charmm36-jul2021.ff/lipid.hdb +31304 -0
  275. CondenSimAdapter/forcefield/charmm36-jul2021.ff/lipid.n.tdb +10 -0
  276. CondenSimAdapter/forcefield/charmm36-jul2021.ff/lipid.r2b +8 -0
  277. CondenSimAdapter/forcefield/charmm36-jul2021.ff/lipid.rtp +110299 -0
  278. CondenSimAdapter/forcefield/charmm36-jul2021.ff/merged.arn +12 -0
  279. CondenSimAdapter/forcefield/charmm36-jul2021.ff/metals.c.tdb +10 -0
  280. CondenSimAdapter/forcefield/charmm36-jul2021.ff/metals.hdb +7 -0
  281. CondenSimAdapter/forcefield/charmm36-jul2021.ff/metals.n.tdb +10 -0
  282. CondenSimAdapter/forcefield/charmm36-jul2021.ff/metals.r2b +8 -0
  283. CondenSimAdapter/forcefield/charmm36-jul2021.ff/metals.rtp +56 -0
  284. CondenSimAdapter/forcefield/charmm36-jul2021.ff/na.c.tdb +21 -0
  285. CondenSimAdapter/forcefield/charmm36-jul2021.ff/na.hdb +2495 -0
  286. CondenSimAdapter/forcefield/charmm36-jul2021.ff/na.n.tdb +62 -0
  287. CondenSimAdapter/forcefield/charmm36-jul2021.ff/na.r2b +13 -0
  288. CondenSimAdapter/forcefield/charmm36-jul2021.ff/na.rtp +17750 -0
  289. CondenSimAdapter/forcefield/charmm36-jul2021.ff/nbfix.itp +307 -0
  290. CondenSimAdapter/forcefield/charmm36-jul2021.ff/silicates.c.tdb +10 -0
  291. CondenSimAdapter/forcefield/charmm36-jul2021.ff/silicates.hdb +22 -0
  292. CondenSimAdapter/forcefield/charmm36-jul2021.ff/silicates.n.tdb +10 -0
  293. CondenSimAdapter/forcefield/charmm36-jul2021.ff/silicates.r2b +8 -0
  294. CondenSimAdapter/forcefield/charmm36-jul2021.ff/silicates.rtp +196 -0
  295. CondenSimAdapter/forcefield/charmm36-jul2021.ff/solvent.c.tdb +10 -0
  296. CondenSimAdapter/forcefield/charmm36-jul2021.ff/solvent.hdb +16 -0
  297. CondenSimAdapter/forcefield/charmm36-jul2021.ff/solvent.n.tdb +10 -0
  298. CondenSimAdapter/forcefield/charmm36-jul2021.ff/solvent.r2b +8 -0
  299. CondenSimAdapter/forcefield/charmm36-jul2021.ff/solvent.rtp +411 -0
  300. CondenSimAdapter/forcefield/charmm36-jul2021.ff/spc.itp +30 -0
  301. CondenSimAdapter/forcefield/charmm36-jul2021.ff/spce.itp +30 -0
  302. CondenSimAdapter/forcefield/charmm36-jul2021.ff/tip3p.itp +36 -0
  303. CondenSimAdapter/forcefield/charmm36-jul2021.ff/tip3p_original.itp +34 -0
  304. CondenSimAdapter/forcefield/charmm36-jul2021.ff/tip4p.itp +53 -0
  305. CondenSimAdapter/forcefield/charmm36-jul2021.ff/tip4pew.itp +61 -0
  306. CondenSimAdapter/forcefield/charmm36-jul2021.ff/tip5p.itp +74 -0
  307. CondenSimAdapter/forcefield/charmm36-jul2021.ff/watermodels.dat +7 -0
  308. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/aminoacids.arn +83 -0
  309. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/aminoacids.hdb +529 -0
  310. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/aminoacids.r2b +31 -0
  311. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/aminoacids.rtp +4904 -0
  312. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/atomtypes.atp +83 -0
  313. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/ffbonded.itp +16874 -0
  314. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/ffnonbonded.itp +89 -0
  315. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/forcefield.doc +9 -0
  316. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/forcefield.itp +22 -0
  317. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/ions.itp +79 -0
  318. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/tip3p.itp +34 -0
  319. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/tip4pd.itp +25 -0
  320. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/tip4pd_rerun.itp +30 -0
  321. CondenSimAdapter/forcefield/des-amber-SF1.0.ff/watermodels.dat +3 -0
  322. CondenSimAdapter/forcefield/des-amber.ff/aminoacids.arn +83 -0
  323. CondenSimAdapter/forcefield/des-amber.ff/aminoacids.hdb +529 -0
  324. CondenSimAdapter/forcefield/des-amber.ff/aminoacids.r2b +31 -0
  325. CondenSimAdapter/forcefield/des-amber.ff/aminoacids.rtp +4948 -0
  326. CondenSimAdapter/forcefield/des-amber.ff/atomtypes.atp +79 -0
  327. CondenSimAdapter/forcefield/des-amber.ff/ffbonded.itp +11891 -0
  328. CondenSimAdapter/forcefield/des-amber.ff/ffnonbonded.itp +85 -0
  329. CondenSimAdapter/forcefield/des-amber.ff/forcefield.doc +13 -0
  330. CondenSimAdapter/forcefield/des-amber.ff/forcefield.itp +22 -0
  331. CondenSimAdapter/forcefield/des-amber.ff/ions.itp +79 -0
  332. CondenSimAdapter/forcefield/des-amber.ff/tip3p.itp +34 -0
  333. CondenSimAdapter/forcefield/des-amber.ff/tip4pd.itp +25 -0
  334. CondenSimAdapter/forcefield/des-amber.ff/tip4pd_rerun.itp +30 -0
  335. CondenSimAdapter/forcefield/des-amber.ff/watermodels.dat +3 -0
  336. CondenSimAdapter/forcefield/registry.py +738 -0
  337. CondenSimAdapter/legacy/pace_asm_top_builder/prepare_pace_asm.py +273 -0
  338. CondenSimAdapter/legacy/pace_asm_top_builder/scripts/C-N-ter-debug.py +65 -0
  339. CondenSimAdapter/legacy/pace_asm_top_builder/scripts/C-N-ter.py +58 -0
  340. CondenSimAdapter/legacy/pace_asm_top_builder/scripts/add-cap.py +257 -0
  341. CondenSimAdapter/legacy/pace_asm_top_builder/scripts/change_resid.py +30 -0
  342. CondenSimAdapter/legacy/pace_asm_top_builder/scripts/comb_top.py +81 -0
  343. CondenSimAdapter/legacy/pace_asm_top_builder/scripts/genpair/insert_param.py +59 -0
  344. CondenSimAdapter/legacy/pace_asm_top_builder/scripts/insert_param.py +59 -0
  345. CondenSimAdapter/legacy/pace_asm_top_builder/scripts/pace_genCONH2.py +230 -0
  346. CondenSimAdapter/legacy/pace_asm_top_builder/scripts/rpl_posre.py +42 -0
  347. CondenSimAdapter/legacy/pace_top_builder/C-N-ter.py +68 -0
  348. CondenSimAdapter/legacy/pace_top_builder/change_molecule_name.py +39 -0
  349. CondenSimAdapter/legacy/pace_top_builder/change_resid.py +23 -0
  350. CondenSimAdapter/legacy/pace_top_builder/genPair.py +579 -0
  351. CondenSimAdapter/legacy/pace_top_builder/insert_param.py +59 -0
  352. CondenSimAdapter/legacy/pace_top_builder/insert_posre.py +23 -0
  353. CondenSimAdapter/legacy/pace_top_builder/prepare_peptide.py +185 -0
  354. CondenSimAdapter/legacy/pace_top_builder/ring_refine.py +396 -0
  355. CondenSimAdapter/minimize/__init__.py +20 -0
  356. CondenSimAdapter/minimize/config_loader.py +54 -0
  357. CondenSimAdapter/minimize/minimizer.py +426 -0
  358. CondenSimAdapter/minimize/softcore.py +2643 -0
  359. CondenSimAdapter/minimize/topology_builder.py +823 -0
  360. CondenSimAdapter/minimize/worker.py +352 -0
  361. CondenSimAdapter/src/__init__.py +45 -0
  362. CondenSimAdapter/src/device_utils.py +48 -0
  363. CondenSimAdapter/src/pdb_tool.py +326 -0
  364. CondenSimAdapter/src/plumed_generator.py +399 -0
  365. condensimadapter-1.0.0b0.dist-info/METADATA +127 -0
  366. condensimadapter-1.0.0b0.dist-info/RECORD +370 -0
  367. condensimadapter-1.0.0b0.dist-info/WHEEL +5 -0
  368. condensimadapter-1.0.0b0.dist-info/entry_points.txt +2 -0
  369. condensimadapter-1.0.0b0.dist-info/licenses/LICENSE +674 -0
  370. condensimadapter-1.0.0b0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ CondenSimAdapter
4
+
5
+ Automated multi-stage workflow for protein condensate simulations:
6
+ CG simulation -> CG-to-AA backmapping -> softcore minimization -> production
7
+
8
+ Architecture:
9
+ core/ - Unified OpenMM CG engine (CALVADOS, HPS, COCOMO, Mpipi)
10
+ backmap/ - cg2all neural-network backmapper
11
+ minimize/ - three-stage softcore AA minimization
12
+ cli/ - adapter command-line interface
13
+ forcefield/- AA force field registry (.ff directories)
14
+ """
15
+
16
+ import warnings
17
+ warnings.filterwarnings('ignore')
18
+
19
+ from .core import (
20
+ CGConfig,
21
+ Component,
22
+ ComponentType,
23
+ TopologyType,
24
+ SimulationResult,
25
+ CGSimulation,
26
+ create_forcefield,
27
+ list_forcefields,
28
+ )
29
+
30
+ __all__ = [
31
+ "CGConfig",
32
+ "Component",
33
+ "ComponentType",
34
+ "TopologyType",
35
+ "SimulationResult",
36
+ "CGSimulation",
37
+ "create_forcefield",
38
+ "list_forcefields",
39
+ ]
@@ -0,0 +1,9 @@
1
+ """
2
+ CG -> all-atom backmapping.
3
+
4
+ Wraps the cg2all neural-network model with a minimal clean interface.
5
+ """
6
+
7
+ from .backmapper import Backmapper, BackmapResult
8
+
9
+ __all__ = ["Backmapper", "BackmapResult"]
@@ -0,0 +1,261 @@
1
+ """
2
+ Simplified CG -> all-atom backmapper.
3
+
4
+ The entire logic reduces to:
5
+ 1. Validate input PDB exists.
6
+ 2. Call convert_cg2all().
7
+ 3. Optionally re-centre slab structures in z.
8
+
9
+ Supported model types (from cg2all checkpoints):
10
+ CalphaBasedModel -- standard CA-based CG (CALVADOS, HPS, COCOMO, Mpipi output)
11
+ ResidueBasedModel -- residue-bead CG
12
+ Martini -- Martini 2
13
+ Martini3 -- Martini 3
14
+ """
15
+
16
+ from __future__ import annotations
17
+
18
+ import logging
19
+ from dataclasses import dataclass
20
+ from pathlib import Path
21
+ from typing import Optional
22
+
23
+ import numpy as np
24
+
25
+ log = logging.getLogger(__name__)
26
+
27
+ # Valid model types exported by cg2all
28
+ SUPPORTED_MODELS = (
29
+ "CalphaBasedModel",
30
+ "ResidueBasedModel",
31
+ "Martini",
32
+ "Martini3",
33
+ )
34
+
35
+
36
+ @dataclass
37
+ class BackmapResult:
38
+ success: bool
39
+ output_pdb: Optional[str] = None
40
+ input_pdb: Optional[str] = None
41
+ model_type: Optional[str] = None
42
+ error: Optional[str] = None
43
+
44
+
45
+ class Backmapper:
46
+ """
47
+ Minimal wrapper around convert_cg2all.
48
+
49
+ All the old source-detection / config-hunting / directory-walking
50
+ logic has been removed. The caller provides explicit paths.
51
+ """
52
+
53
+ def run(
54
+ self,
55
+ cg_pdb: str,
56
+ output_dir: str,
57
+ model_type: str = "CalphaBasedModel",
58
+ device: str = "cpu",
59
+ fix_atom: bool = True,
60
+ topology_type: Optional[str] = None,
61
+ ) -> BackmapResult:
62
+ """
63
+ Backmap a CG PDB to all-atom representation.
64
+
65
+ Args:
66
+ cg_pdb: Path to the CG PDB file (CA-only or Martini beads).
67
+ output_dir: Directory to write the all-atom PDB into.
68
+ model_type: cg2all model name (see SUPPORTED_MODELS).
69
+ device: 'cpu' or 'cuda' / 'cuda:0' etc.
70
+ fix_atom: Fix CA position during reconstruction (CalphaBasedModel only).
71
+ topology_type: Pass 'slab' to re-centre the output along z axis.
72
+
73
+ Returns:
74
+ BackmapResult with output_pdb path on success.
75
+ """
76
+ cg_pdb = str(cg_pdb)
77
+ out_dir = Path(output_dir)
78
+ out_dir.mkdir(parents=True, exist_ok=True)
79
+
80
+ if not Path(cg_pdb).exists():
81
+ return BackmapResult(success=False, input_pdb=cg_pdb,
82
+ error=f"Input file not found: {cg_pdb}")
83
+
84
+ if model_type not in SUPPORTED_MODELS:
85
+ log.warning(
86
+ f"Unknown model type '{model_type}'. "
87
+ f"Supported: {SUPPORTED_MODELS}. Proceeding anyway."
88
+ )
89
+
90
+ output_pdb = str(out_dir / "backmapped.pdb")
91
+
92
+ # For CalphaBasedModel, fix_atom=True requires CalphaBasedModel-FIX.ckpt.
93
+ # Auto-degrade to fix_atom=False if that checkpoint is absent.
94
+ effective_fix = fix_atom
95
+ if fix_atom and model_type == "CalphaBasedModel":
96
+ from .cg2all.lib.libconfig import MODEL_HOME
97
+ fix_ckpt = MODEL_HOME / "CalphaBasedModel-FIX.ckpt"
98
+ if not fix_ckpt.exists():
99
+ log.info(
100
+ "CalphaBasedModel-FIX.ckpt not found; "
101
+ "using normal checkpoint (fix_atom=False)."
102
+ )
103
+ effective_fix = False
104
+
105
+ try:
106
+ from .cg2all import convert_cg2all
107
+ convert_cg2all(
108
+ in_pdb_fn=cg_pdb,
109
+ out_fn=output_pdb,
110
+ model_type=model_type,
111
+ device=device,
112
+ fix_atom=effective_fix,
113
+ )
114
+ except Exception as exc:
115
+ log.exception("cg2all conversion failed")
116
+ return BackmapResult(
117
+ success=False,
118
+ input_pdb=cg_pdb,
119
+ model_type=model_type,
120
+ error=str(exc),
121
+ )
122
+
123
+ if topology_type and topology_type.lower() == "slab":
124
+ try:
125
+ output_pdb = _center_slab_in_z(output_pdb)
126
+ except Exception as exc:
127
+ log.warning(f"Slab re-centering failed (non-fatal): {exc}")
128
+
129
+ return BackmapResult(
130
+ success=True,
131
+ output_pdb=output_pdb,
132
+ input_pdb=cg_pdb,
133
+ model_type=model_type,
134
+ )
135
+
136
+
137
+ # ---------------------------------------------------------------------------
138
+ # Slab geometry helper
139
+ # ---------------------------------------------------------------------------
140
+
141
+ def _center_slab_in_z(pdb_path: str) -> str:
142
+ """Re-centre a slab PDB so the protein COM sits at box_z/2.
143
+
144
+ Algorithm (matches old backmap.py):
145
+ 1. Read box_z from the CRYST1 record (Angstrom).
146
+ 2. Compute mass-weighted protein COM in z via MDAnalysis (preferred)
147
+ or fall back to unweighted mean over ATOM records.
148
+ 3. Shift all atoms so that COM_z → box_z/2.
149
+ 4. After MDAnalysis writes the file, fix C-terminal atom names
150
+ (OT1→O, OT2→OXT) and re-insert TER records.
151
+ """
152
+ pdb_path = str(pdb_path)
153
+
154
+ # --- read box_z from CRYST1 -------------------------------------------------
155
+ box_z_ang: Optional[float] = None
156
+ for line in Path(pdb_path).read_text().splitlines():
157
+ if line.startswith("CRYST1"):
158
+ try:
159
+ box_z_ang = float(line[24:33])
160
+ except ValueError:
161
+ pass
162
+ break
163
+
164
+ # --- try MDAnalysis (mass-weighted, respects PBC) ---------------------------
165
+ try:
166
+ import MDAnalysis as mda # type: ignore
167
+
168
+ u = mda.Universe(pdb_path)
169
+ protein = u.select_atoms("protein")
170
+ if len(protein) == 0:
171
+ protein = u.atoms
172
+
173
+ com = protein.center_of_mass()
174
+ z_com = com[2] # Angstrom
175
+
176
+ if box_z_ang is None and u.dimensions is not None:
177
+ box_z_ang = u.dimensions[2]
178
+ if box_z_ang is None:
179
+ box_z_ang = 2.0 * z_com # last resort
180
+
181
+ offset = box_z_ang / 2.0 - z_com
182
+ log.info(
183
+ f" Slab z-centering: COM_z={z_com/10:.2f} nm "
184
+ f"box_z={box_z_ang/10:.2f} nm offset={offset/10:+.2f} nm"
185
+ )
186
+
187
+ positions = u.atoms.positions.copy()
188
+ positions[:, 2] += offset
189
+ u.atoms.positions = positions
190
+ u.atoms.write(pdb_path)
191
+
192
+ _fix_c_terminus_atom_names(pdb_path)
193
+ _insert_ter_after_oxt(pdb_path)
194
+ return pdb_path
195
+
196
+ except ImportError:
197
+ log.warning("MDAnalysis not available; falling back to plain-text z-centering")
198
+
199
+ # --- plain-text fallback (no MDAnalysis) ------------------------------------
200
+ lines_in = Path(pdb_path).read_text().splitlines()
201
+ atom_z = []
202
+ for line in lines_in:
203
+ if line.startswith("ATOM"):
204
+ try:
205
+ atom_z.append(float(line[46:54]))
206
+ except ValueError:
207
+ pass
208
+
209
+ if not atom_z:
210
+ return pdb_path
211
+
212
+ z_com = float(np.mean(atom_z))
213
+ if box_z_ang is None:
214
+ box_z_ang = 2.0 * z_com
215
+ offset = box_z_ang / 2.0 - z_com
216
+
217
+ out_lines = []
218
+ for line in lines_in:
219
+ if line.startswith(("ATOM", "HETATM")):
220
+ try:
221
+ z = float(line[46:54]) + offset
222
+ line = line[:46] + f"{z:8.3f}" + line[54:]
223
+ except (ValueError, IndexError):
224
+ pass
225
+ out_lines.append(line)
226
+
227
+ Path(pdb_path).write_text("\n".join(out_lines))
228
+ return pdb_path
229
+
230
+
231
+ def _fix_c_terminus_atom_names(pdb_path: str) -> None:
232
+ """Fix C-terminal oxygen names written by MDAnalysis (OT1/OT2 → O/OXT)."""
233
+ rename_map = {"OT1": " O ", "OT2": " OXT"}
234
+ try:
235
+ lines = Path(pdb_path).read_text().splitlines()
236
+ except OSError:
237
+ return
238
+ out = []
239
+ for line in lines:
240
+ if line.startswith(("ATOM", "HETATM")):
241
+ atom_name = line[12:16]
242
+ if atom_name.strip() in rename_map:
243
+ line = line[:12] + rename_map[atom_name.strip()] + line[16:]
244
+ out.append(line)
245
+ Path(pdb_path).write_text("\n".join(out))
246
+
247
+
248
+ def _insert_ter_after_oxt(pdb_path: str) -> None:
249
+ """Insert TER records after OXT atoms if not already present."""
250
+ try:
251
+ lines = Path(pdb_path).read_text().splitlines()
252
+ except OSError:
253
+ return
254
+ out = []
255
+ for i, line in enumerate(lines):
256
+ out.append(line)
257
+ if line.startswith(("ATOM", "HETATM")) and line[12:16].strip() == "OXT":
258
+ next_line = lines[i + 1] if i + 1 < len(lines) else ""
259
+ if not next_line.startswith("TER"):
260
+ out.append("TER")
261
+ Path(pdb_path).write_text("\n".join(out))
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env python
2
+ """
3
+ ms2_cg2all - Convert coarse-grained protein structures to all-atom models.
4
+
5
+ This module provides functionality to convert single CG PDB files to all-atom PDB files
6
+ using the cg2all neural network model.
7
+
8
+ Usage:
9
+ from CondenSimAdapter.backmap.cg2all import convert_cg2all
10
+
11
+ # Convert a CA-trace to all-atom structure
12
+ convert_cg2all(
13
+ in_pdb_fn="input.ca.pdb",
14
+ out_fn="output.all.pdb",
15
+ model_type="CalphaBasedModel"
16
+ )
17
+ """
18
+
19
+ from .lib.snippets import convert_cg2all
20
+
21
+ __all__ = ["convert_cg2all"]