MD trajectory library
Project description
EasyTrajH5
Trajectory management for mdtraj H5 files
- EasyH5File wrapper for h5py
- methods-based interface for dataset/attr management
- string, json, file import/export methods
- useful schema dictionary
- select_mask with new atom selection language for MD
- proper set operations using 'not', 'diff', 'merge', 'intersect'
- allows both amber and mdtraj style selections
- proper 0-based indexing using flexible numbering list and ranges
- user defined residue classes
- EasyTrajH5File
- drop-in replacement for mdtraj.H5TrajecotryFile
- subclasses EasyH5File with all above methods
- allows simple override to h5pyd
- efficient streaming of mdtraj.Trajectory from file using fancy indexing and atom masks with select_mask
- conveient transforms between mdtraj, parmed and openmm
- cli for interrogating h5 files
Selection Language
Selects atom based on a selection string which is based on a combination atom selection langauge.There are several different types of selection modes strings, where the first word is often used a mode selector.
- keywords
- If more than one keyword is specified, it is assumed they are joined with "or" operation (i.e. 'ligand protein' will return both ligand and protein atom indices).
- accepts (in any order): 'ligand', 'protein', 'water', 'lipid', 'salt', 'solvent', 'lipid', 'nucleic', 'resname', 'resid', 'atom'
- 'ligand' will find the residue 'LIG', 'UNL', 'UNK', or whatever is in 'ligand' in the h5 'easytrajh5/data/select.yaml'
- 'pocket' will find the closest 6 residues to the 'ligand' group.
- 'near' will require a following resname, with an optional integer, e.g.: 'near ATP' 'near ATP 5'
- 'resname' identifies a single residue type (usually a ligand): 'resname LEU'
- 'resi' for residue 0-indexed selections "resi 0 10-13" - selects atoms in the first and 11th, 12th and 13th residues
- 'atom' atom 0-indexed selections "atom 0 55 43 101-105" - selects the first, 56th, 44th, 101 to 105th atom
- AMBER-style atom selection https://parmed.github.io/ParmEd/html/amber.html#amber-mask-syntax "amber :ALA,LYS" - selects all alanine and lysine residues
- MDTraj-style atom selection - https://mdtraj.org/1.9.4/atom_selection.html "mdtraj protein and water" - selects protein and water
- furthermore, selections can be combined with set operators ("not", "intersect", "merge", "diff"), "intersect {not {amber :ALA}} {protein}" "diff {protein} {not {amber :ALA}}" "not {resname LEU}" "merge {near BSM 8} {amber :ALA}"
- some useful masks:
- no solvent "not {solvent}"
- just the protein "protein"
- heavy protein atoms "diff {protein} {amber @/H}"
- no hydrogens "not {amber @/H}"
- pocket and ligand "pocket ligand"
- specified ligand with 10 closest neighbours "resname UNL near UNL 10"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easytrajh5-0.2.1.tar.gz
(23.1 kB
view hashes)
Built Distribution
easytrajh5-0.2.1-py3-none-any.whl
(25.5 kB
view hashes)
Close
Hashes for easytrajh5-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edf07fd0faedd00982af625acfafb1c48b5e8a717f45907829e251d416765a66 |
|
MD5 | 7e7bc259f9b4cae39aa0b1d9ce148c1f |
|
BLAKE2b-256 | f21f7e972f9a0aed44c9451cd36a065aac4ec00f9466ab0126659dd2eaa87ce7 |