Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mpharrigan/trajprocess
Process trajectories
https://github.com/mpharrigan/trajprocess
Last synced: 25 days ago
JSON representation
Process trajectories
- Host: GitHub
- URL: https://github.com/mpharrigan/trajprocess
- Owner: mpharrigan
- License: mit
- Created: 2015-08-29T00:16:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-12T20:56:22.000Z (over 8 years ago)
- Last Synced: 2023-08-02T04:58:55.766Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 7.94 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `trajprocess`
Take MD trajectories from a variety of sources and normalize them.
Each trajectory can be in multiple chunks ("gens" in FAH vocabulary). The
processing on each gen will not be duplicated. The files will never be concatenated.
Use mdtraj's support for loading multiple files per trajectory when doing your
analysis: `md.load(["fn1.nc", "fn2.nc"], top="whatever.prmtop")`An extensive cache of metadata is stored in one `info.json` file per trajectory.
Your analysis should start by grepping all the json files, saving the order
in which they were grepped, and loading trajectories based on the contents of
the json file: `md.load(info['ctr']['gens'], top=info['stp']['outtop'])`This package was developed to support combining the output of heterogeneous
MD engines (openmm, gromacs, and amber), heterogeneous hpc environments
(supercomputers, fah), and slightly heterogeneous topologies
(different numbers of waters, lipids, ions). Output trajectories should be
immediately ready for any quantitative or visual analysis.Trajectories are processed in stages. Each stage codename serves as a key
in the metadata `info.json`:- `cnv1`: optionally convert trajectories using `gmx trjconv -pbc whole`
- `cnv2`: convert to netcdf using `mdtraj` for use in `cpptraj`
- `stp`: strip all but closest N waters, lipids, ions using `cpptraj`
- `ctr`: autoimage and center using `cpptraj`Other metadata includes:
- `raw`: input
- `meta`: project, run, clone information
- `path`: relevant filesystem paths## Requirements
- `mdtraj` >= 1.5 (fix for netcdf writing)
- `gmx trjconv` from Gromacs
- `cpptraj` from AmberTools## Customization
Currently, you have to edit the source code to customize settings
for new projects or project types.