HTPolyNet 1.0.7.2__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.
- HTPolyNet/__init__.py +1 -0
- HTPolyNet/ambertools.py +94 -0
- HTPolyNet/analyze.py +258 -0
- HTPolyNet/banner.py +26 -0
- HTPolyNet/bondlist.py +206 -0
- HTPolyNet/bondtemplate.py +111 -0
- HTPolyNet/checkpoint.py +88 -0
- HTPolyNet/command.py +42 -0
- HTPolyNet/configuration.py +240 -0
- HTPolyNet/coordinates.py +1071 -0
- HTPolyNet/countTime.py +26 -0
- HTPolyNet/curecontroller.py +767 -0
- HTPolyNet/dataframetools.py +130 -0
- HTPolyNet/driver.py +250 -0
- HTPolyNet/expandreactions.py +154 -0
- HTPolyNet/gromacs.py +333 -0
- HTPolyNet/inputcheck.py +51 -0
- HTPolyNet/linkcell.py +322 -0
- HTPolyNet/molecule.py +1279 -0
- HTPolyNet/plot.py +607 -0
- HTPolyNet/postsim.py +444 -0
- HTPolyNet/projectfilesystem.py +483 -0
- HTPolyNet/reaction.py +282 -0
- HTPolyNet/resources/README.md +20 -0
- HTPolyNet/resources/__init__.py +0 -0
- HTPolyNet/resources/cfg/DGE-PAC-hi.yaml +115 -0
- HTPolyNet/resources/cfg/DGE-PAC-lo.yaml +115 -0
- HTPolyNet/resources/cfg/FDE-DFDA-hi.yaml +116 -0
- HTPolyNet/resources/cfg/FDE-DFDA-lo.yaml +116 -0
- HTPolyNet/resources/cfg/GMASTY-hi.yaml +158 -0
- HTPolyNet/resources/cfg/GMASTY-lo.yaml +158 -0
- HTPolyNet/resources/cfg/README.md +1 -0
- HTPolyNet/resources/cfg/STY.yaml +23 -0
- HTPolyNet/resources/cfg/pMSTY-hi.yaml +101 -0
- HTPolyNet/resources/cfg/pMSTY-lo.yaml +101 -0
- HTPolyNet/resources/cfg/pSTY-hi.yaml +101 -0
- HTPolyNet/resources/cfg/pSTY-lo.yaml +101 -0
- HTPolyNet/resources/example_depot/0-liquid-styrene.tgz +0 -0
- HTPolyNet/resources/example_depot/1-polystyrene.tgz +0 -0
- HTPolyNet/resources/example_depot/2-polymethylstyrene.tgz +0 -0
- HTPolyNet/resources/example_depot/3-bisgma-styrene-thermoset.tgz +0 -0
- HTPolyNet/resources/example_depot/4-pacm-dgeba-epoxy-thermoset.tgz +0 -0
- HTPolyNet/resources/example_depot/5-dfda-fde-epoxy-thermoset.tgz +0 -0
- HTPolyNet/resources/mdp/README.md +1 -0
- HTPolyNet/resources/mdp/drag-min.mdp +13 -0
- HTPolyNet/resources/mdp/drag-npt.mdp +36 -0
- HTPolyNet/resources/mdp/drag-nvt.mdp +31 -0
- HTPolyNet/resources/mdp/min.mdp +14 -0
- HTPolyNet/resources/mdp/npt.mdp +37 -0
- HTPolyNet/resources/mdp/nvt.mdp +29 -0
- HTPolyNet/resources/mdp/relax-min.mdp +13 -0
- HTPolyNet/resources/mdp/relax-npt.mdp +37 -0
- HTPolyNet/resources/mdp/relax-nvt.mdp +31 -0
- HTPolyNet/resources/mdp/single-molecule-min.mdp +12 -0
- HTPolyNet/resources/mdp/single-molecule-nvt.mdp +25 -0
- HTPolyNet/resources/molecules/inputs/DFA.pdb +62 -0
- HTPolyNet/resources/molecules/inputs/DGE.mol2 +115 -0
- HTPolyNet/resources/molecules/inputs/EMB.mol2 +50 -0
- HTPolyNet/resources/molecules/inputs/FDE.pdb +72 -0
- HTPolyNet/resources/molecules/inputs/GMA.mol2 +163 -0
- HTPolyNet/resources/molecules/inputs/PAC.mol2 +91 -0
- HTPolyNet/resources/molecules/inputs/STY.mol2 +44 -0
- HTPolyNet/resources/molecules/make-monomers.sh +64 -0
- HTPolyNet/resources/molecules/pics/DFA.png +0 -0
- HTPolyNet/resources/molecules/pics/DGE.png +0 -0
- HTPolyNet/resources/molecules/pics/EMB.png +0 -0
- HTPolyNet/resources/molecules/pics/FDE.png +0 -0
- HTPolyNet/resources/molecules/pics/GMA.png +0 -0
- HTPolyNet/resources/molecules/pics/PAC.png +0 -0
- HTPolyNet/resources/molecules/pics/STY.png +0 -0
- HTPolyNet/resources/molecules/sample-inputs/DFA.pdb +62 -0
- HTPolyNet/resources/molecules/sample-inputs/DGE.mol2 +115 -0
- HTPolyNet/resources/molecules/sample-inputs/EMB.mol2 +50 -0
- HTPolyNet/resources/molecules/sample-inputs/FDE.pdb +72 -0
- HTPolyNet/resources/molecules/sample-inputs/GMA.mol2 +163 -0
- HTPolyNet/resources/molecules/sample-inputs/PAC.mol2 +91 -0
- HTPolyNet/resources/molecules/sample-inputs/STY.mol2 +44 -0
- HTPolyNet/resources/tcl/readbonds.tcl +32 -0
- HTPolyNet/resources/tcl/readgrx.tcl +46 -0
- HTPolyNet/resources/tcl/render.tcl +74 -0
- HTPolyNet/ring.py +155 -0
- HTPolyNet/runtime.py +709 -0
- HTPolyNet/software.py +106 -0
- HTPolyNet/stringthings.py +39 -0
- HTPolyNet/topocoord.py +1877 -0
- HTPolyNet/topology.py +1288 -0
- HTPolyNet/unused_symmetry_stuff.py +291 -0
- HTPolyNet/utils.py +405 -0
- htpolynet-1.0.7.2.dist-info/METADATA +84 -0
- htpolynet-1.0.7.2.dist-info/RECORD +93 -0
- htpolynet-1.0.7.2.dist-info/WHEEL +4 -0
- htpolynet-1.0.7.2.dist-info/entry_points.txt +2 -0
- htpolynet-1.0.7.2.dist-info/licenses/LICENSE +21 -0
HTPolyNet/utils.py
ADDED
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
"""
|
|
2
|
+
|
|
3
|
+
.. module:: utils
|
|
4
|
+
:synopsis: various utility methods for plotting and postprocessing
|
|
5
|
+
|
|
6
|
+
.. moduleauthor: Cameron F. Abrams, <cfa22@drexel.edu>
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
from HTPolyNet.coordinates import Coordinates
|
|
10
|
+
from HTPolyNet.topocoord import TopoCoord
|
|
11
|
+
from HTPolyNet.gromacs import gmx_energy_trace
|
|
12
|
+
from scipy.constants import physical_constants
|
|
13
|
+
from scipy.optimize import curve_fit
|
|
14
|
+
import pandas as pd
|
|
15
|
+
import os
|
|
16
|
+
import numpy as np
|
|
17
|
+
import networkx as nx
|
|
18
|
+
import logging
|
|
19
|
+
|
|
20
|
+
logger=logging.getLogger(__name__)
|
|
21
|
+
|
|
22
|
+
def density_from_gro(gro,mollib='./lib/molecules/parameterized',units='SI'):
|
|
23
|
+
"""density_from_gro computes density from a Gromacs gro file
|
|
24
|
+
|
|
25
|
+
:param gro: name of gro file
|
|
26
|
+
:type gro: str
|
|
27
|
+
:param mollib: location of parameterized molecular templates, defaults to './lib/molecules/parameterized'
|
|
28
|
+
:type mollib: str, optional
|
|
29
|
+
:param units: string indicating unit system, defaults to 'SI'
|
|
30
|
+
:type units: str, optional
|
|
31
|
+
:return: density
|
|
32
|
+
:rtype: float
|
|
33
|
+
"""
|
|
34
|
+
C=Coordinates.read_gro(gro)
|
|
35
|
+
resnames=list(set(C.A['resName']))
|
|
36
|
+
templates={x:TopoCoord.from_top_gro(os.path.join(mollib,f'{x}.top'),os.path.join(mollib,f'{x}.gro')) for x in resnames}
|
|
37
|
+
mass=0.0
|
|
38
|
+
counts={}
|
|
39
|
+
for nm,T in templates.items():
|
|
40
|
+
if not nm in counts:
|
|
41
|
+
counts[nm]={}
|
|
42
|
+
for an in T.Topology.D['atoms']['atom']:
|
|
43
|
+
counts[nm][an]=0
|
|
44
|
+
these=C.A[C.A['resName']==nm]['atomName']
|
|
45
|
+
for n in these:
|
|
46
|
+
counts[nm][n]+=1
|
|
47
|
+
for nm,adict in counts.items():
|
|
48
|
+
T=templates[nm].Topology.D['atoms']
|
|
49
|
+
for aname,c in adict.items():
|
|
50
|
+
mass+=c*T[T['atom']==aname]['mass'].values[0]
|
|
51
|
+
volume=np.prod(C.box.diagonal())
|
|
52
|
+
fac=1.0
|
|
53
|
+
if units=='SI':
|
|
54
|
+
mfac=physical_constants['atomic mass constant'][0]
|
|
55
|
+
lfac=1.e-9
|
|
56
|
+
vfac=lfac**3
|
|
57
|
+
fac=mfac/vfac
|
|
58
|
+
return fac*mass/volume
|
|
59
|
+
|
|
60
|
+
""" These globals are used in traversing a project directory to extract data from edr files """
|
|
61
|
+
_system_dirs=['densification','precure',r'iter-{iter:d}','capping','postcure']
|
|
62
|
+
_postsim_dirs=['anneal','equilibrate']
|
|
63
|
+
_measurement_dirs=['Tg','E']
|
|
64
|
+
_md_ensembles={'nvt':['Temperature','Potential'],'npt':['Temperature','Potential','Density'],'default':['Temperature','Potential']}
|
|
65
|
+
_indir_pfx={}
|
|
66
|
+
_indir_pfx['densification']=[r'densified-{ens:s}',r'densified-repeat-{repeat:d}-{ens:s}']
|
|
67
|
+
_indir_pfx['precure']=[r'preequilibration-{ens:s}',r'annealed',r'postequilibration-{ens:s}']
|
|
68
|
+
_indir_pfx['iter-n']=[r'1-cure_drag-stage-{stage:d}-{ens:s}',r'3-cure_relax-stage-{stage:d}-{ens:s}',r'4-cure_equilibrate-{ens:s}']
|
|
69
|
+
_indir_pfx['capping']=[r'7-cap_relax-stage-{stage:d}-{ens:s}',r'8-cap_equilibrate-{ens:s}']
|
|
70
|
+
_indir_pfx['postcure']=[r'preequilibration-{ens:s}',r'annealed',r'postequilibration-{ens:s}']
|
|
71
|
+
def _concat_from_edr(df,edr,names,add=[],add_if_missing=[('Density',0.0)]):
|
|
72
|
+
"""_concat_from_edr concentates rows onto dataframe df by reading data from an edr file
|
|
73
|
+
|
|
74
|
+
:param df: a dataframe with data read in from edr files
|
|
75
|
+
:type df: pandas.DataFrame
|
|
76
|
+
:param edr: name of a new edr file to read from
|
|
77
|
+
:type edr: str
|
|
78
|
+
:param names: names of energy-like quantities to be read in; each must have a column in df already
|
|
79
|
+
:type names: list of strings
|
|
80
|
+
:param add: names and values to add to dataset, defaults to []
|
|
81
|
+
:type add: list, optional
|
|
82
|
+
:param add_if_missing: names and values to add if not found in edr file, defaults to [('Density',0.0)]
|
|
83
|
+
:type add_if_missing: list, optional
|
|
84
|
+
:return: a tuple of the dataframe and the scalar value of last time *before* this data increment is read in
|
|
85
|
+
:rtype: tuple
|
|
86
|
+
"""
|
|
87
|
+
xshift=0.0
|
|
88
|
+
if not df.empty: xshift=df.iloc[-1]['time(ps)']
|
|
89
|
+
if len(names)==0: return df,xshift
|
|
90
|
+
# print(f'{add_if_missing}')
|
|
91
|
+
this_df=gmx_energy_trace(edr,names,xshift=xshift)
|
|
92
|
+
for m in add:
|
|
93
|
+
nm,val=m
|
|
94
|
+
this_df[nm]=np.ones(this_df.shape[0],dtype=type(val))*val
|
|
95
|
+
for m in add_if_missing:
|
|
96
|
+
nm,val=m
|
|
97
|
+
if not nm in this_df:
|
|
98
|
+
this_df[nm]=np.ones(this_df.shape[0],dtype=type(val))*val
|
|
99
|
+
df=pd.concat((df,this_df),ignore_index=True)
|
|
100
|
+
return df,xshift
|
|
101
|
+
|
|
102
|
+
def postsim_density_evolution(proj_dir,append_dirname=False):
|
|
103
|
+
"""postsim_density_evolution returns a single dataframe that is a concatenation of the csv files
|
|
104
|
+
in the 'postsim' subdirectories
|
|
105
|
+
|
|
106
|
+
:param proj_dir: name of complete project directory
|
|
107
|
+
:type proj_dir: str
|
|
108
|
+
:return: the dataframe
|
|
109
|
+
:rtype: pandas.DataFrame
|
|
110
|
+
"""
|
|
111
|
+
if not os.path.exists(proj_dir): return
|
|
112
|
+
sysd=os.path.join(proj_dir,'postsim')
|
|
113
|
+
fn=[f'{sysd}/anneal/anneal.csv',f'{sysd}/equilibrate/equilibrate.csv']
|
|
114
|
+
df=pd.DataFrame()
|
|
115
|
+
lt=0.0
|
|
116
|
+
for f in fn:
|
|
117
|
+
t=pd.read_csv(f,header=0,index_col=None)
|
|
118
|
+
logger.debug(f'shifting by {lt}')
|
|
119
|
+
t['time(ps)']+=lt
|
|
120
|
+
lt=t['time(ps)'].to_list()[-1]
|
|
121
|
+
df=pd.concat((df,t))
|
|
122
|
+
if append_dirname:
|
|
123
|
+
df.rename(columns={x:f'{x}-{proj_dir}' for x in df.columns})
|
|
124
|
+
return df
|
|
125
|
+
|
|
126
|
+
def density_evolution(proj_dir):
|
|
127
|
+
"""density_evolution returns a single dataframe containing density, temperture, number of bonds vs time by reading all edrs in the correct order from a complete project directory
|
|
128
|
+
|
|
129
|
+
:param proj_dir: name of complete project directory
|
|
130
|
+
:type proj_dir: str
|
|
131
|
+
:return: the dataframe
|
|
132
|
+
:rtype: pandas.DataFrame
|
|
133
|
+
"""
|
|
134
|
+
if not os.path.exists(proj_dir): return
|
|
135
|
+
sysd=os.path.join(proj_dir,'systems')
|
|
136
|
+
df=pd.DataFrame()
|
|
137
|
+
xshift=0.0
|
|
138
|
+
transition_times=[xshift]
|
|
139
|
+
interval_labels=[]
|
|
140
|
+
markers=[]
|
|
141
|
+
nbonds=0
|
|
142
|
+
for subd in _system_dirs:
|
|
143
|
+
# print(f'subd {subd}')
|
|
144
|
+
if subd==r'iter-{iter:d}' or subd=='capping' or subd=='densification':
|
|
145
|
+
# loooking for iterations
|
|
146
|
+
# print(iter_mark0)
|
|
147
|
+
iter=1
|
|
148
|
+
iter_subd_rel=subd if subd in ['capping','densification'] else subd.format(iter=iter)
|
|
149
|
+
iter_subd=os.path.join(sysd,iter_subd_rel)
|
|
150
|
+
while os.path.exists(iter_subd):
|
|
151
|
+
logger.info(f'Reading edrs in {iter_subd_rel}...')
|
|
152
|
+
if r'iter' in subd:
|
|
153
|
+
markers.append(df.iloc[-1]['time(ps)'])
|
|
154
|
+
dirkey='iter-n' if subd==r'iter-{iter:d}' else subd
|
|
155
|
+
if subd==r'iter-{iter:d}':
|
|
156
|
+
if os.path.exists(os.path.join(iter_subd,'2-cure_update-bonds.csv')):
|
|
157
|
+
bdf=pd.read_csv(os.path.join(iter_subd,'2-cure_update-bonds.csv'),sep='\s+',header=0,index_col=None)
|
|
158
|
+
nbonds+=bdf.shape[0]
|
|
159
|
+
else:
|
|
160
|
+
if os.path.exists(os.path.join(iter_subd,'6-cap_update-bonds.csv')):
|
|
161
|
+
bdf=pd.read_csv(os.path.join(iter_subd,'6-cap_update-bonds.csv'),sep='\s+',header=0,index_col=None)
|
|
162
|
+
nbonds+=bdf.shape[0]
|
|
163
|
+
# print(f'iter_subd {iter_subd} dirkey {dirkey}')
|
|
164
|
+
for pfx in _indir_pfx[dirkey]:
|
|
165
|
+
# print(f'pfx {pfx}')
|
|
166
|
+
if r'stage' in pfx or r'repeat' in pfx:
|
|
167
|
+
stg=1
|
|
168
|
+
stg_present=any([os.path.exists(os.path.join(iter_subd,pfx.format(stage=stg,repeat=stg,ens=x))+r'.edr') for x in _md_ensembles])
|
|
169
|
+
# print(f'{iter_subd} {stg} {pfx} stg_present {stg_present}')
|
|
170
|
+
while stg_present:
|
|
171
|
+
for ens,qtys in _md_ensembles.items():
|
|
172
|
+
edr_pfx=os.path.join(iter_subd,pfx.format(stage=stg,repeat=stg,ens=ens))
|
|
173
|
+
gro=edr_pfx+r'.gro'
|
|
174
|
+
# print(edr_pfx,os.path.exists(edr_pfx+r'.edr'))
|
|
175
|
+
if os.path.exists(edr_pfx+r'.edr'):
|
|
176
|
+
density=0.0
|
|
177
|
+
if ens!='npt':
|
|
178
|
+
if os.path.exists(gro):
|
|
179
|
+
density=density_from_gro(gro,os.path.join(proj_dir,'molecules/parameterized'))
|
|
180
|
+
# print(f'density from gro {density}')
|
|
181
|
+
df,xshift=_concat_from_edr(df,edr_pfx,qtys,add=[('nbonds',nbonds)],add_if_missing=[('Density',density)])
|
|
182
|
+
transition_times.append(xshift)
|
|
183
|
+
interval_labels.append([edr_pfx])
|
|
184
|
+
stg+=1
|
|
185
|
+
stg_present=any([os.path.exists(os.path.join(iter_subd,pfx.format(stage=stg,repeat=stg,ens=x))+r'.edr') for x in _md_ensembles])
|
|
186
|
+
# print(f'->{iter_subd} {stg} {pfx} stg_present {stg_present}')
|
|
187
|
+
elif r'equil' in pfx or r'densif' in pfx:
|
|
188
|
+
eq_present=any([os.path.exists(os.path.join(iter_subd,pfx.format(ens=x))+r'.edr') for x in _md_ensembles])
|
|
189
|
+
# print(f'{iter_subd} eq_present? {eq_present}')
|
|
190
|
+
if eq_present:
|
|
191
|
+
for ens,qtys in _md_ensembles.items():
|
|
192
|
+
edr_pfx=os.path.join(iter_subd,pfx.format(ens=ens))
|
|
193
|
+
gro=edr_pfx+r'.gro'
|
|
194
|
+
# print(edr_pfx,os.path.exists(edr_pfx+r'.edr'),ens,qtys)
|
|
195
|
+
if os.path.exists(edr_pfx+r'.edr'):
|
|
196
|
+
density=0.0
|
|
197
|
+
if ens!='npt':
|
|
198
|
+
if os.path.exists(gro):
|
|
199
|
+
density=density_from_gro(gro,os.path.join(proj_dir,'molecules/parameterized'))
|
|
200
|
+
df,xshift=_concat_from_edr(df,edr_pfx,qtys,add=[('nbonds',nbonds)],add_if_missing=[('Density',density)])
|
|
201
|
+
transition_times.append(xshift)
|
|
202
|
+
interval_labels.append([edr_pfx])
|
|
203
|
+
iter+=1
|
|
204
|
+
iter_subd_rel=subd.format(iter=iter)
|
|
205
|
+
iter_subd=os.path.join(sysd,iter_subd_rel) if r'iter' in subd else 'I_BET_THIS_FILE_DNE'
|
|
206
|
+
# if r'iter' in subd: markers.append(df.iloc[-1]['time (ps)'])
|
|
207
|
+
else:
|
|
208
|
+
this_subd=os.path.join(sysd,subd)
|
|
209
|
+
logger.info(f'Reading edrs in {subd}...')
|
|
210
|
+
|
|
211
|
+
for pfx in _indir_pfx[subd]:
|
|
212
|
+
# print(f'this_subd {this_subd} pfx {pfx}')
|
|
213
|
+
if 'ens' in pfx:
|
|
214
|
+
for ens,qtys in _md_ensembles.items():
|
|
215
|
+
edr_pfx=os.path.join(this_subd,pfx.format(ens=ens))
|
|
216
|
+
gro=edr_pfx+r'.gro'
|
|
217
|
+
# print(edr_pfx,os.path.exists(edr_pfx+r'.edr'))
|
|
218
|
+
# print(gro,os.path.exists(gro))
|
|
219
|
+
if os.path.exists(edr_pfx+r'.edr'):
|
|
220
|
+
density=0.0
|
|
221
|
+
if ens=='nvt' and os.path.exists(gro):
|
|
222
|
+
density=density_from_gro(gro,os.path.join(proj_dir,'molecules/parameterized'))
|
|
223
|
+
df,xshift=_concat_from_edr(df,edr_pfx,qtys,add=[('nbonds',nbonds)],add_if_missing=[('Density',density)])
|
|
224
|
+
transition_times.append(xshift)
|
|
225
|
+
interval_labels.append([edr_pfx])
|
|
226
|
+
else:
|
|
227
|
+
edr_pfx=os.path.join(this_subd,pfx.format(ens=ens))
|
|
228
|
+
gro=edr_pfx+r'.gro'
|
|
229
|
+
# print(edr_pfx,os.path.exists(edr_pfx+r'.edr'))
|
|
230
|
+
if os.path.exists(edr_pfx+r'.edr'):
|
|
231
|
+
density=0.0
|
|
232
|
+
if os.path.exists(gro):
|
|
233
|
+
density=density_from_gro(gro,os.path.join(proj_dir,'molecules/parameterized'))
|
|
234
|
+
df,xshift=_concat_from_edr(df,edr_pfx,_md_ensembles['default'],add=[('nbonds',nbonds)],add_if_missing=[('Density',density)])
|
|
235
|
+
transition_times.append(xshift)
|
|
236
|
+
interval_labels.append([edr_pfx])
|
|
237
|
+
return df,transition_times,markers,interval_labels
|
|
238
|
+
|
|
239
|
+
def graph_from_bondsfile(bondsfile):
|
|
240
|
+
"""graph_from_bondsfile generates a networkx Graph in which each node is a molecule (from 'mi' and 'mj' records in the bondsfile) and edges indicate two molecules are joined by a covalent bond
|
|
241
|
+
|
|
242
|
+
:param bondsfile: name of bondsfile
|
|
243
|
+
:type bondsfile: str
|
|
244
|
+
:return: the graph
|
|
245
|
+
:rtype: networkx.Graph
|
|
246
|
+
"""
|
|
247
|
+
G=nx.Graph()
|
|
248
|
+
df=pd.read_csv(bondsfile,header=0,index_col=None,sep='\s+')
|
|
249
|
+
for i,r in df.iterrows():
|
|
250
|
+
G.add_edge(r['mi'],r['mj'])
|
|
251
|
+
return G
|
|
252
|
+
|
|
253
|
+
def mwbxl(G:nx.Graph,crosslinker='GMA',monomer='STY'):
|
|
254
|
+
"""mwbxl computes the histogram of monomer counts 'n' between crosslinking sites using a molecular connectivity graph; used mainly for vinyl-based polymerizations
|
|
255
|
+
|
|
256
|
+
:param G: molecular connectivity graph
|
|
257
|
+
:type G: nx.Graph
|
|
258
|
+
:param crosslinker: name of crosslinker molecule, defaults to 'GMA'
|
|
259
|
+
:type crosslinker: str, optional
|
|
260
|
+
:param monomer: name of monomer, defaults to 'STY'
|
|
261
|
+
:type monomer: str, optional
|
|
262
|
+
:return: a dataframe of 'n' and 'count'
|
|
263
|
+
:rtype: pd.DataFrame
|
|
264
|
+
"""
|
|
265
|
+
xG=G.copy()
|
|
266
|
+
# traverse edges and label hetero/homo participants
|
|
267
|
+
for n in xG.nodes():
|
|
268
|
+
xG.nodes[n]['neighbor_count']=0
|
|
269
|
+
for u,v in xG.edges():
|
|
270
|
+
n,m=xG.nodes[u],xG.nodes[v]
|
|
271
|
+
n['neighbor_count']+=1
|
|
272
|
+
m['neighbor_count']+=1
|
|
273
|
+
if n['molecule_name']!=m['molecule_name']:
|
|
274
|
+
n['monomer_type']='hetero'
|
|
275
|
+
m['monomer_type']='hetero'
|
|
276
|
+
else:
|
|
277
|
+
n['monomer_type']='homo'
|
|
278
|
+
m['monomer_type']='homo'
|
|
279
|
+
wipe_us=[]
|
|
280
|
+
for n in xG.nodes():
|
|
281
|
+
if xG.nodes[n]['molecule_name']==crosslinker:
|
|
282
|
+
wipe_us.append(n)
|
|
283
|
+
xG.remove_nodes_from(wipe_us)
|
|
284
|
+
chaintype=[]
|
|
285
|
+
ch=nx.connected_components(xG)
|
|
286
|
+
mwhist={}
|
|
287
|
+
nb=0
|
|
288
|
+
for c in ch:
|
|
289
|
+
nhetero=0
|
|
290
|
+
for n in c:
|
|
291
|
+
node=xG.nodes[n]
|
|
292
|
+
if node.get('monomer_type','none')=='hetero':
|
|
293
|
+
nhetero+=1
|
|
294
|
+
if nhetero==0:
|
|
295
|
+
chaintype.append('isolated')
|
|
296
|
+
elif nhetero==1:
|
|
297
|
+
if len(c)==1:
|
|
298
|
+
node=list(xG.nodes.values())[0]
|
|
299
|
+
if node['neighbor_count']==1:
|
|
300
|
+
chaintype.append('dangling')
|
|
301
|
+
elif node['neighbor_count']==2:
|
|
302
|
+
chaintype.append('bridging')
|
|
303
|
+
if len(c) not in mwhist:
|
|
304
|
+
mwhist[len(c)]=0
|
|
305
|
+
mwhist[len(c)]+=1
|
|
306
|
+
else:
|
|
307
|
+
chaintype.append('dangling')
|
|
308
|
+
elif nhetero==2:
|
|
309
|
+
chaintype.append('bridging')
|
|
310
|
+
if len(c) not in mwhist:
|
|
311
|
+
mwhist[len(c)]=0
|
|
312
|
+
mwhist[len(c)]+=1
|
|
313
|
+
nb+=1
|
|
314
|
+
maxlen=max(list(mwhist.keys()))
|
|
315
|
+
mw=[]
|
|
316
|
+
counts=[]
|
|
317
|
+
for n in range(maxlen):
|
|
318
|
+
cnt=mwhist.get(n,0)
|
|
319
|
+
mw.append(n)
|
|
320
|
+
counts.append(cnt)
|
|
321
|
+
df=pd.DataFrame({'n':mw,'counts':counts})
|
|
322
|
+
return df
|
|
323
|
+
|
|
324
|
+
def clusters(G:nx.Graph):
|
|
325
|
+
"""clusters performs a clustering analysis and returns a histgram of cluster sizes (in numbers of molecules) as a pandas DataFrame
|
|
326
|
+
|
|
327
|
+
:param G: molecular connectivity graph
|
|
328
|
+
:type G: nx.Graph
|
|
329
|
+
:return: cluster size histogram
|
|
330
|
+
:rtype: pd.DataFrame
|
|
331
|
+
"""
|
|
332
|
+
counts={}
|
|
333
|
+
for c in sorted(nx.connected_components(G),key=len,reverse=True):
|
|
334
|
+
size=len(c)
|
|
335
|
+
if not size in counts:
|
|
336
|
+
counts[size]=0
|
|
337
|
+
counts[size]+=1
|
|
338
|
+
sizes=[]
|
|
339
|
+
numbers=[]
|
|
340
|
+
for s,c in counts.items():
|
|
341
|
+
sizes.append(s)
|
|
342
|
+
numbers.append(c)
|
|
343
|
+
df=pd.DataFrame({'sizes':sizes,'counts':numbers})
|
|
344
|
+
df.sort_values(by='sizes',ascending=False,inplace=True)
|
|
345
|
+
return df
|
|
346
|
+
|
|
347
|
+
def compute_tg(T,v,n_points=[10,20]):
|
|
348
|
+
"""compute_tg peforms a Tg determination from (volume or density) vs temperature data by fitting lines to the low-T region and another to the high-T region, taking Tg as the temperature at which they intersect.
|
|
349
|
+
|
|
350
|
+
:param T: temperature values
|
|
351
|
+
:type T: numpy.array
|
|
352
|
+
:param v: volume or density data
|
|
353
|
+
:type v: numpy.array
|
|
354
|
+
:param n_points: number of points on the low and high side to fit lines to, defaults to [10,20]
|
|
355
|
+
:type n_points: list, optional
|
|
356
|
+
"""
|
|
357
|
+
def func(x,a,b):
|
|
358
|
+
return x*a+b
|
|
359
|
+
hot_par=[]
|
|
360
|
+
cold_par=[]
|
|
361
|
+
x=np.array(T)[:n_points[0]]
|
|
362
|
+
y=np.array(v)[:n_points[0]]
|
|
363
|
+
# logger.info(f'Tg: {len(x)} data points on cold side; begins at {x[0]}')
|
|
364
|
+
cold_par,pcov=curve_fit(func,x,y)
|
|
365
|
+
sse=(y-func(x,*cold_par))**2
|
|
366
|
+
sst=(y-x.mean())**2
|
|
367
|
+
r2=1-sse.sum()/sst.sum()
|
|
368
|
+
# logger.info(f'cold fit: {cold_par} {r2}')
|
|
369
|
+
|
|
370
|
+
x=np.array(T)[-n_points[1]:]
|
|
371
|
+
y=np.array(v)[-n_points[1]:]
|
|
372
|
+
# logger.info(f'Tg: {len(x)} data points on hot side; ends at {x[-1]}')
|
|
373
|
+
hot_par,pcov=curve_fit(func,x,y)
|
|
374
|
+
sse=(y-func(x,*hot_par))**2
|
|
375
|
+
sst=(y-x.mean())**2
|
|
376
|
+
r2=1-sse.sum()/sst.sum()
|
|
377
|
+
# logger.info(f'hot fit: {hot_par} {r2}')
|
|
378
|
+
Tg=-1
|
|
379
|
+
if len(hot_par)>0 and len(cold_par)>0:
|
|
380
|
+
Tg=-(hot_par[1]-cold_par[1])/(hot_par[0]-cold_par[0])
|
|
381
|
+
return Tg,cold_par,hot_par
|
|
382
|
+
|
|
383
|
+
def compute_E(strain,stress,fit_domain=[10,100]):
|
|
384
|
+
"""compute_E compute the Young's modulus by peforming a linear fit to an elastic regime in stress-vs-strain data
|
|
385
|
+
|
|
386
|
+
:param strain: strain values
|
|
387
|
+
:type strain: numpy.array
|
|
388
|
+
:param stress: stress values
|
|
389
|
+
:type stress: numpy.array
|
|
390
|
+
:param fit_domain: domain over which fit is made, defaults to [10,100]
|
|
391
|
+
:type fit_domain: list, optional
|
|
392
|
+
:return: E and R2 from fit
|
|
393
|
+
:rtype: tuple(float,float)
|
|
394
|
+
"""
|
|
395
|
+
x=np.array(strain[fit_domain[0]:fit_domain[1]])
|
|
396
|
+
y=np.array(stress[fit_domain[0]:fit_domain[1]])
|
|
397
|
+
# logger.info(f'x: {x[0]} -> {x[-1]}')
|
|
398
|
+
# logger.info(f'y: {y[0]} -> {y[-1]}')
|
|
399
|
+
def func(x,a):
|
|
400
|
+
return a*x
|
|
401
|
+
popt,pcov=curve_fit(func,x,y,p0=(1000.0))
|
|
402
|
+
sse=(y-func(x,*popt))**2
|
|
403
|
+
sst=(y-y.mean())**2
|
|
404
|
+
r2=1-sse.sum()/sst.sum()
|
|
405
|
+
return popt[0],r2
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: HTPolyNet
|
|
3
|
+
Version: 1.0.7.2
|
|
4
|
+
Summary: Automated MD System Builder for Amorphous Network Polymers
|
|
5
|
+
Project-URL: Source, https://github.com/AbramsGroup/HTPolyNet
|
|
6
|
+
Project-URL: Documentation, https://abramsgroup.github.io/HTPolyNet/
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/AbramsGroup/HTPolyNet/issues
|
|
8
|
+
Author-email: Cameron F Abrams <cfa22@drexel.edu>
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
16
|
+
Requires-Python: >=3.7
|
|
17
|
+
Requires-Dist: gputil>=1.4
|
|
18
|
+
Requires-Dist: networkx>=2.8
|
|
19
|
+
Requires-Dist: numpy>=1.24
|
|
20
|
+
Requires-Dist: pandas>=2
|
|
21
|
+
Requires-Dist: parmed>=4
|
|
22
|
+
Requires-Dist: pyyaml>=6
|
|
23
|
+
Requires-Dist: requests>=2.28
|
|
24
|
+
Requires-Dist: scipy>=1.10
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# HTPolyNet
|
|
28
|
+
> High-Throughput Polymer Network Atomistic Simulations
|
|
29
|
+
|
|
30
|
+
HTPolyNet is a Python utility for generating atomistic models of cross-linked polymer networks together with appropriate topology and parameter files required for molecular dynamics simulations using Gromacs. It is intended as a fully automated system builder requiring as inputs only the molecular structures of any monomer species, a description of the polymerization chemistry, and a handful of options describing desired system size and composition. HTPolyNet uses the Generalized Amber Force Field for atom-typing and parameter generation.
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
The programs ``antechamber``, ``parmchk2`` and ``tleap`` from AmberTools must be in your path.
|
|
35
|
+
|
|
36
|
+
From PyPI:
|
|
37
|
+
```bash
|
|
38
|
+
pip install htpolynet
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
From source:
|
|
42
|
+
```bash
|
|
43
|
+
git clone git@github.com:AbramsGroup/HTPolyNet.git
|
|
44
|
+
cd HTPolyNet
|
|
45
|
+
pip install -e .
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Once installed, the user has access to the main `htpolynet` command.
|
|
49
|
+
|
|
50
|
+
## Release History
|
|
51
|
+
|
|
52
|
+
* 1.0.7.2
|
|
53
|
+
* moved Library package to resources subpackage of HTPolyNet.HTPolyNet
|
|
54
|
+
* 1.0.6
|
|
55
|
+
* gmx-style analyze subcommand added
|
|
56
|
+
* 1.0.5
|
|
57
|
+
* Post-build MD simulations and plotting functionalities added
|
|
58
|
+
* 1.0.2
|
|
59
|
+
* Enhanced molecule-network graph drawing in the plot subcommand
|
|
60
|
+
* 1.0.1
|
|
61
|
+
* Fixed atom index assignment issue for systems with more than 100,000 atoms
|
|
62
|
+
* 1.0.0
|
|
63
|
+
* First release
|
|
64
|
+
* 0.0.1
|
|
65
|
+
* Initial beta version
|
|
66
|
+
|
|
67
|
+
## Meta
|
|
68
|
+
|
|
69
|
+
Cameron F. Abrams – cfa22@drexel.edu
|
|
70
|
+
|
|
71
|
+
Distributed under the MIT license. See ``LICENSE`` for more information.
|
|
72
|
+
|
|
73
|
+
[https://github.com/cameronabrams](https://github.com/cameronabrams/)
|
|
74
|
+
|
|
75
|
+
[https://github.com/AbramsGroup](https://github.com/AbramsGroup/)
|
|
76
|
+
|
|
77
|
+
## Contributing
|
|
78
|
+
|
|
79
|
+
1. Fork it (<https://github.com/AbramsGroup/HTPolyNet/fork>)
|
|
80
|
+
2. Create your feature branch (`git checkout -b feature/fooBar`)
|
|
81
|
+
3. Commit your changes (`git commit -am 'Add some fooBar'`)
|
|
82
|
+
4. Push to the branch (`git push origin feature/fooBar`)
|
|
83
|
+
5. Create a new Pull Request
|
|
84
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
HTPolyNet/__init__.py,sha256=y9rymWKgHtaJkcFJwUkJFIAPuk27SKZqu10IQDz9R9w,28
|
|
2
|
+
HTPolyNet/ambertools.py,sha256=fkkSlYqjoue0agb-PKa_Vz_imBlA0QPtxHT1LFZq3sc,4295
|
|
3
|
+
HTPolyNet/analyze.py,sha256=rmJzT4UwNOYoizfRJjgM9H2kz34_shht7e2uSE9fuc4,9376
|
|
4
|
+
HTPolyNet/banner.py,sha256=p91CzpNRHFugTcvqbzwu5cvPF0eDiBQTMSKS_4cN6h8,651
|
|
5
|
+
HTPolyNet/bondlist.py,sha256=vEkmzYyvMzXkZi1Jlz6LLat8Mo28zD7VITDYW3D9lPk,6410
|
|
6
|
+
HTPolyNet/bondtemplate.py,sha256=yPQcUE8s7uCqAPB4kSj4aACb2_aKXqHn5AGjW63lc-Q,5524
|
|
7
|
+
HTPolyNet/checkpoint.py,sha256=uDKlnJEHc6TNF0bqLDqbjxxenhJpKnQ8S9mNUQerxUs,3051
|
|
8
|
+
HTPolyNet/command.py,sha256=CEJ3z-NklYKiGmiFb_w4sNDxWOHdxFKCxoc4gcoikHs,1817
|
|
9
|
+
HTPolyNet/configuration.py,sha256=-OMvTZ-D0iVXw_JNYN_rzoaf8ypuziW-5jS2q2Jj2Xc,9579
|
|
10
|
+
HTPolyNet/coordinates.py,sha256=uHTVdla2wx_zRZkg27VBYBJqcX9sLt_Kv9Fec8EjZak,46972
|
|
11
|
+
HTPolyNet/countTime.py,sha256=S8zgtmjI6EFq26suXz5m0AZE9qgSJ9blWFUQ40e_lvY,704
|
|
12
|
+
HTPolyNet/curecontroller.py,sha256=3AvwaIq9RmLczmDP4V17zTheZ2RvYs5ACEUjg5hjIcM,36639
|
|
13
|
+
HTPolyNet/dataframetools.py,sha256=RDDkYm7aZJfv5kxFTC5YMA7TXv8nFLb0eG6fm3N9LGg,4770
|
|
14
|
+
HTPolyNet/driver.py,sha256=kFqHXajmy5No4EvQ_iP_yaDxwfyh-FLlroFD2jWzt0Q,14881
|
|
15
|
+
HTPolyNet/expandreactions.py,sha256=CrLXAg_eHpINO9DAKqMcgEudd6sDEENaolc5wzabc9s,7458
|
|
16
|
+
HTPolyNet/gromacs.py,sha256=8_RUaBPAlQfw-Wwn7MObzU50K7TP4dQxhsPEFSnEyXQ,13329
|
|
17
|
+
HTPolyNet/inputcheck.py,sha256=zpkd87tpDCZs0yTyPerZtKs81Hh82zWEoIDvgNuLoYg,2146
|
|
18
|
+
HTPolyNet/linkcell.py,sha256=_Nx5Z_0kVrz-2tOxRRh9bSINl--vmKR4gdpzxUdZq3U,12840
|
|
19
|
+
HTPolyNet/molecule.py,sha256=nWwzSQFj3hSg0KrjXAapqPX1KTxALvDo6RbH7PPTR7A,61478
|
|
20
|
+
HTPolyNet/plot.py,sha256=mc1iE3DTJ1yxhXQBmhA2vnCBI9QV9D3uAKepMF8ZkKg,25485
|
|
21
|
+
HTPolyNet/postsim.py,sha256=nIRHL3pVtZU6y0nY67aN3u7KjybY0hJr28NoAhoUAj8,17122
|
|
22
|
+
HTPolyNet/projectfilesystem.py,sha256=4KaidHv-d8MhEGjrCGNyThPnDFV2UCH8DWV5MpmbpUg,19095
|
|
23
|
+
HTPolyNet/reaction.py,sha256=RI919RNfRtRBG1EEma1fmDPxTXwRc2P_SlUmov0Zud0,10988
|
|
24
|
+
HTPolyNet/ring.py,sha256=JnV_T7u7u8Q9LGOLRTFZBS7H65JKTloLOkiPDckUOa0,5583
|
|
25
|
+
HTPolyNet/runtime.py,sha256=R018psUrOTuIIf1DK-ECjFVP4e_Wvne-0MqO-O9G11g,33377
|
|
26
|
+
HTPolyNet/software.py,sha256=LIDN7UjqPgS7TXKmBnGsP83FyWFWWg_XVvv3dsIJqoY,3674
|
|
27
|
+
HTPolyNet/stringthings.py,sha256=Mr6o55EM8o4YAaVYpjIJj2IxDToNdbPzb-lpQ3w3jFk,1176
|
|
28
|
+
HTPolyNet/topocoord.py,sha256=-LmecHUCY5e22YnAnkso5HGYc17qwFIdbnzkxQHASaI,89727
|
|
29
|
+
HTPolyNet/topology.py,sha256=XrRpwak8f0iNa50_D5XBBBn6A_N72wtZQ90FQKTL2GQ,60407
|
|
30
|
+
HTPolyNet/unused_symmetry_stuff.py,sha256=JRPfOyOfcDI74ZQy1SgNNkDHhQYUoqoteykC3zv-ydA,13459
|
|
31
|
+
HTPolyNet/utils.py,sha256=ROwcOaco5dxMqIssV0b8pgRSmr0gx8Nr7Czwucq6_Ck,17831
|
|
32
|
+
HTPolyNet/resources/README.md,sha256=epKLyqtcxtQOSzTYvaGlwhz970UA4vAU7r-iSBbbpmA,1432
|
|
33
|
+
HTPolyNet/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
+
HTPolyNet/resources/cfg/DGE-PAC-hi.yaml,sha256=398rNMjSGswApv46xrJQIIymI8ulPMxuoZ4BHJZFwys,2826
|
|
35
|
+
HTPolyNet/resources/cfg/DGE-PAC-lo.yaml,sha256=X3kUxNQkfEuntlhlo14ZtGGWOgKVyrWb5enh26gPM3g,2826
|
|
36
|
+
HTPolyNet/resources/cfg/FDE-DFDA-hi.yaml,sha256=jeN1s1Xb-lB-izI4pMcwCboDRAAevP42FzlGRxcSUgM,2796
|
|
37
|
+
HTPolyNet/resources/cfg/FDE-DFDA-lo.yaml,sha256=nHJc-Nosa9riDgx9Th29zRZVjqjiqZ5dNok9iOv2xDY,2796
|
|
38
|
+
HTPolyNet/resources/cfg/GMASTY-hi.yaml,sha256=kiwVGiROzIuVUKT9IBW1hAxcerN0BjxZ_mhRumm7PNA,3775
|
|
39
|
+
HTPolyNet/resources/cfg/GMASTY-lo.yaml,sha256=01JPwxJlAqvQWgqD0aPYkQLPVrbZFUvTAm77NJKrrZw,3775
|
|
40
|
+
HTPolyNet/resources/cfg/README.md,sha256=YTLOGMwgZOepXJa2j9dFgPd--3tVyDS0e9eXzmU0ptw,40
|
|
41
|
+
HTPolyNet/resources/cfg/STY.yaml,sha256=2bjcnfc80-FIQeklVEvHwFi-LxRW2w3ipk32cWEB3QY,423
|
|
42
|
+
HTPolyNet/resources/cfg/pMSTY-hi.yaml,sha256=ZtxhjaIfsukaPJVck5miFJ46ElNAmb5SZXRD4OeyVfo,2260
|
|
43
|
+
HTPolyNet/resources/cfg/pMSTY-lo.yaml,sha256=lyWsCEFFL0A2tVk67p6yEUAZvRdxN5GmIJosAuQbPH0,2260
|
|
44
|
+
HTPolyNet/resources/cfg/pSTY-hi.yaml,sha256=LY_qkriC27USciia3m5a0Ue_k8861-yeezR3h-jh7fw,2260
|
|
45
|
+
HTPolyNet/resources/cfg/pSTY-lo.yaml,sha256=wUuIMijfVLez3BmIYlKSpRTLfoaRVxhYoYcHoRFQG2Y,2260
|
|
46
|
+
HTPolyNet/resources/example_depot/0-liquid-styrene.tgz,sha256=tbkJ0lgquz9__FaCvxigPYPnhKsI6RvT-l2u0GnKeIU,2097
|
|
47
|
+
HTPolyNet/resources/example_depot/1-polystyrene.tgz,sha256=Dds5USxW3Dhy8fxKs7B43mMsPiQvDJQo1IAT65iv73c,2337
|
|
48
|
+
HTPolyNet/resources/example_depot/2-polymethylstyrene.tgz,sha256=SpdqYfFcrXJccfeLu_JMG-NnMKmuRtD1SFYkbwnlGw8,2325
|
|
49
|
+
HTPolyNet/resources/example_depot/3-bisgma-styrene-thermoset.tgz,sha256=pzVuRr2GDvYbXHZwgMbhDV9Yd3YXw9GW7xIihyRRIRM,2801
|
|
50
|
+
HTPolyNet/resources/example_depot/4-pacm-dgeba-epoxy-thermoset.tgz,sha256=BBQGbvA8P4a2tdJoPOdAFdvJRWGRVoZbT62PStVDD64,2556
|
|
51
|
+
HTPolyNet/resources/example_depot/5-dfda-fde-epoxy-thermoset.tgz,sha256=ZFs4bxge0iLAFAV4qOB1vBZ8rWIwVxXmYly4Pv3ottk,2797
|
|
52
|
+
HTPolyNet/resources/mdp/README.md,sha256=48RjM7HLRF776FUJXUxQIw8RZxc7z1ti6za3YB7_U80,20
|
|
53
|
+
HTPolyNet/resources/mdp/drag-min.mdp,sha256=CrMRQIzwtG4TlYRY-nB1P7HPgdwrpwSJJW6yoYdfahY,225
|
|
54
|
+
HTPolyNet/resources/mdp/drag-npt.mdp,sha256=vbU-LuDH-CLmB8s3kRx0SYkKMxR7Qjh8PuXGgpC2EGs,911
|
|
55
|
+
HTPolyNet/resources/mdp/drag-nvt.mdp,sha256=YtyjVt_uMZUn2JtvbC8ESWLKKru2JyNXbr_GJfWz10w,636
|
|
56
|
+
HTPolyNet/resources/mdp/min.mdp,sha256=xIViAc9gTE5rMAsYrPGYCNu1fnit_NWdcsBI786XvZc,226
|
|
57
|
+
HTPolyNet/resources/mdp/npt.mdp,sha256=nc3bToKi-bjgweTRJ9gRETml-iTST92_Aw1f7Z6AzuI,939
|
|
58
|
+
HTPolyNet/resources/mdp/nvt.mdp,sha256=e8H7nzLmcyFJRXLAhY70liuEXe6tbtRKOoklzhdvRII,575
|
|
59
|
+
HTPolyNet/resources/mdp/relax-min.mdp,sha256=KsOkmEi3FLBRtAhEUpUPUhuCe_zArfJqTKInKDnl1us,213
|
|
60
|
+
HTPolyNet/resources/mdp/relax-npt.mdp,sha256=-OsDj4E5rS6YjrF_zEvoWyjZD-_IyCQBbj-amR9cWYo,919
|
|
61
|
+
HTPolyNet/resources/mdp/relax-nvt.mdp,sha256=iqxPgPU0fxS4cKwd_mOQ4-b0JG8ySArdlFhJvpmTF44,644
|
|
62
|
+
HTPolyNet/resources/mdp/single-molecule-min.mdp,sha256=LinjsbugiKvJrh2fcog9tACaOyWHiUB8lQX5RzTy5xE,211
|
|
63
|
+
HTPolyNet/resources/mdp/single-molecule-nvt.mdp,sha256=JJy4TV32m1cBUxyCHTGZnW0EsQyNpKiDHVdLP_VSvRI,493
|
|
64
|
+
HTPolyNet/resources/molecules/make-monomers.sh,sha256=klvyRoFxP2AtvQKssgc4KlmvmlCeFx8nohBCFtI0gXg,2437
|
|
65
|
+
HTPolyNet/resources/molecules/inputs/DFA.pdb,sha256=Fp52MS9C9GjWk78ysyVaA3RXcSRsljK_HIeYvlAo-Bc,4538
|
|
66
|
+
HTPolyNet/resources/molecules/inputs/DGE.mol2,sha256=18Bctj6GdMtrtS1HErukojUqlPUAlxIuL9aHkhGxWtU,5457
|
|
67
|
+
HTPolyNet/resources/molecules/inputs/EMB.mol2,sha256=oGs1EOiPtNcxJZ6jWGz4-bkV13fLttKEpX5MdXU9yKw,2201
|
|
68
|
+
HTPolyNet/resources/molecules/inputs/FDE.pdb,sha256=fe8yRAGT0EkjxY5EHvONDi0tFPP9GdBfuqHu-6sKrlY,5298
|
|
69
|
+
HTPolyNet/resources/molecules/inputs/GMA.mol2,sha256=UN0xbEzNVF5ud0JJeo-6v5MTHHslfvu7Fw8uVOxSEdc,7881
|
|
70
|
+
HTPolyNet/resources/molecules/inputs/PAC.mol2,sha256=5EWrFsh-O15c5Nvi8Ovxlqap-yZ93tG4bw-kqsG5UAQ,4245
|
|
71
|
+
HTPolyNet/resources/molecules/inputs/STY.mol2,sha256=r1NqpovL6L7E96Kkyc6UTZpPlWa0eWf6yo1kH16HAZY,1898
|
|
72
|
+
HTPolyNet/resources/molecules/pics/DFA.png,sha256=_o1I8Hz7xZBdHhb3JlmxUo3ZX-FsLSc3D1VWi-zH7S4,16294
|
|
73
|
+
HTPolyNet/resources/molecules/pics/DGE.png,sha256=1P00cktL5CDM00xt6v88wO92ZZe-0e9qijhJsIUoP1w,24272
|
|
74
|
+
HTPolyNet/resources/molecules/pics/EMB.png,sha256=b6eN3dGhGctau1G80fL4UQdv60K0FaC5QFGq7hBMLtQ,14957
|
|
75
|
+
HTPolyNet/resources/molecules/pics/FDE.png,sha256=UILcNnF-fFU5c56QZQGFjtQkIdsjKtuMi4RVUU8SBrs,20372
|
|
76
|
+
HTPolyNet/resources/molecules/pics/GMA.png,sha256=DWfNdc1avewENsImwP-tx6EGrp_EJIq19_ldZaJASdM,13607
|
|
77
|
+
HTPolyNet/resources/molecules/pics/PAC.png,sha256=6OLti_FfNKqpbVOysKPQ_9-NZwykxDlKgm4Pn152f8w,9112
|
|
78
|
+
HTPolyNet/resources/molecules/pics/STY.png,sha256=0sYaCTcNVuXWh2uLz-GsxEnu705dCr_GhlA70XiHfuQ,13109
|
|
79
|
+
HTPolyNet/resources/molecules/sample-inputs/DFA.pdb,sha256=96q_X4gnn23GuTN8cO7nHPuHGgDlqmdxcSkerQXQUyU,4538
|
|
80
|
+
HTPolyNet/resources/molecules/sample-inputs/DGE.mol2,sha256=A6j8mQUVf8RIwkU4pTBa0n3BrmdPHefMWZvQjkyNWLc,5457
|
|
81
|
+
HTPolyNet/resources/molecules/sample-inputs/EMB.mol2,sha256=oGs1EOiPtNcxJZ6jWGz4-bkV13fLttKEpX5MdXU9yKw,2201
|
|
82
|
+
HTPolyNet/resources/molecules/sample-inputs/FDE.pdb,sha256=0yJy25Q1VCQ-bmVY0g9hDKVpdxExk-Iwpidd753FVks,5298
|
|
83
|
+
HTPolyNet/resources/molecules/sample-inputs/GMA.mol2,sha256=pSEHhDiHf28QM6MPb_wouNJSPQPSo39iWjka_X7s5Pw,7881
|
|
84
|
+
HTPolyNet/resources/molecules/sample-inputs/PAC.mol2,sha256=qlCF27yDV7uogeUY3yGdkIz0BV3hNyPrpYUF-D_Tun4,4245
|
|
85
|
+
HTPolyNet/resources/molecules/sample-inputs/STY.mol2,sha256=r1NqpovL6L7E96Kkyc6UTZpPlWa0eWf6yo1kH16HAZY,1898
|
|
86
|
+
HTPolyNet/resources/tcl/readbonds.tcl,sha256=l_bh7eMjbxVi44UMPMi32bFntZltij92KmKfXC1qDz4,972
|
|
87
|
+
HTPolyNet/resources/tcl/readgrx.tcl,sha256=A1KvyIpFC_lwfze3XOqTCPqLIkq7HwmqJ96lZH42W0U,1731
|
|
88
|
+
HTPolyNet/resources/tcl/render.tcl,sha256=KUszYxzWtfuL7OXdtdk8n6eAQbz8DJfKJrGbb0pOdrI,2379
|
|
89
|
+
htpolynet-1.0.7.2.dist-info/METADATA,sha256=382H2-YFz4WqdtFEf6McdZxjpIfX8WZ31NGGEmVO8GM,2939
|
|
90
|
+
htpolynet-1.0.7.2.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
|
91
|
+
htpolynet-1.0.7.2.dist-info/entry_points.txt,sha256=Lwf9z_k-EGw8neD_m-81djjpnURXEy4WGshvZgQFsgo,51
|
|
92
|
+
htpolynet-1.0.7.2.dist-info/licenses/LICENSE,sha256=piPSGqJdmTGyzF9HOnjlO2KvgOKT8NHwhCuGYM778tY,1071
|
|
93
|
+
htpolynet-1.0.7.2.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Cameron Abrams
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|