Try pytraj
online:
Supported
Note
pytraj does not support writing trajectory in parallel. Please check cpptraj manual for this option.
Contents
pmap
if using pytraj’s methodspmap
if using cpptraj’s command styleopenmp
pmap
or openmp
?Note
This is experimental design, syntax might be changed.
In [1]: import pytraj as pt
In [2]: traj = pt.iterload('data/tz2.ortho.nc', 'data/tz2.ortho.parm7')
In [3]: pt.pmap(pt.radgyr, traj, n_cores=4)
Out[3]:
OrderedDict([('RoG_00000',
array([ 18.9111, 18.9365, 18.8497, 18.9045, 18.8569, 18.8892,
18.943 , 18.8888, 18.9167, 18.8707]))])
# auto-join the data
In [4]: pt.pmap(pt.radgyr, traj, n_cores=4)