nglviewer/mdsrv
Fork: 10 Star: 35 (更新于 2024-11-28 13:26:56)
license: NOASSERTION
Language: Python .
MD trajectory server
最后发布版本: v0.3.5-1 ( 2019-10-09 01:48:42)
MDsrv is a simple server that enables remote access to coordinate trajectories from molecular dynamics simulations. It can be used together with the NGL Viewer (http://github.com/arose/ngl) to interactively view trajectories of molecular complexes in a web-browser, either within a local network or from anywhere over the internet.
See it in action:
Features
- Coordinate trajectories (animation, remote access)
- Trajectory formats supported (xtc/trr, nc/netcdf, dcd, lammpstrj, xyz, binpos, hdf5, dtr, arc, tng)
- Additional trajectory formats supported - only unix with py2 (mdcrd/crd, dms, trj, ent ncdf)
- NGL Viewer (Molecular structures, Density volumes, User interaction, Embeddable)
- Lightweight coordinate-only trajecotry reader (via MDTraj and MDAnalysis )
Table of contents
- Documentation
- RESTful API
- [NGL browser support](#ngl browser-support)
- Acknowledgments
- Cite
Documentation
Detailed information concerning the installation, deployment, usage and scripting examples can be found at the documentation.
Installation
From PyPI:
pip install mdsrv
From conda: conda config --add channels conda-forge conda install -c ngl mdsrv
MDsrv depends on MDtraj. Please ensure that this is installed correctly and functional.
Running
The mdsrv
command starts a local server and opens a browser window with the web application.
To use a custom configuration file
mdsrv --cfg my_conf.cfg
Load a topology and trajectory at startup
mdsrv struc.gro traj.xtc
For more options, please consult the documentation
Configuration file
Optional. Copy/rename the sample app.cfg file. It allows e.g. setting data_dir
data directories that will be accessible through the web server and to define access restrictions.
Deployment
The Apache Webserver can used to run the server via mod_wsgi
. First make sure you have everything required installed:
sudo apt-get install apache2 libapache2-mod-wsgi
Then you need to create a wsgi configuration file to be referenced in the Apache configuration. There is an example named mdsrv.wsgi.sample in the root directory of this package. Also, a snippet showing how the configuration for Apache should look like can be found in the apache.config.sample file.
Finally, to restart apache issue
sudo /etc/init.d/apache2 restart
More information can be found at the documentation.
RESTful API
The RESTful API is the interface through which the web application gets all data but it may be also used to access the served trajectory data from other applications.
You can retrieve information about directory content (e.g. name of sub-directory, file name, file size), number of frames and frame coordinates.
For more information, please visit the documentation.
NGL browser support
The NGL Viewer requires your browser to support WebGL. To see if your browser supports WebGL and what you might need to do to activate it, visit the Get WebGL page.
Generally, WebGL is available in recent browser versions of Mozilla Firefox (>29) or Google Chrome (>27). The Internet Explorer supports WebGL only since version 11. The Safari Browser since version 8 (though WebGL can be activated in earlier version: first enable the Develop menu in Safari’s Advanced preferences, then secondly in the now visible Develop menu enable WebGL).
See also this page for details on which graphics card drivers are supported by the browsers.
WebGL draft extensions: For a smoother appearance of cylinders and spheres your browser needs to have the EXT_frag_depth
extension available. The WebGL Report should list the extension if active. If not, you can enable WebGL draft extensions in your browser following these instructions:
- Chrome: browse to
about:flags
, enable theEnable WebGL Draft Extensions
option, then relaunch. - Firefox: browse to
about:config
and setwebgl.enable-draft-extensions
totrue
. - Safari: Currently, the
EXT_frag_depth
extension is not supported. - Internet Explorer: Currently, the
EXT_frag_depth
extension is not supported.
Acknowledgments
Thanks to code from MDAnalysis (http://www.mdanalysis.org/) there is random access to xtc/trr trajectory files via indexing and seeking capabilities added to the libxdrfile2 library.
Funding sources:
- NCI/NIH award number U01 CA198942
- DFG project HI 1502
- HLRN project bec00085
Cite
When using MGsrv please cite:
- A. S. Rose, and MDsrv Contributors. MDsrv v0.2 Zenodo (2016), doi:10.5281/zenodo.45961. doi:10.5281/zenodo.45961
- AS Rose, AR Bradley, Y Valasatava, JM Duarte, A Prlić and PW Rose. Web-based molecular graphics for large complexes. ACM Proceedings of the 21st International Conference on Web3D Technology (Web3D '16): 185-186, 2016. doi:10.1145/2945292.2945324
- AS Rose and PW Hildebrand. NGL Viewer: a web application for molecular visualization. Nucl Acids Res (1 July 2015) 43 (W1): W576-W579 first published online April 29, 2015. doi:10.1093/nar/gkv402
- RT McGibbon, KA Beauchamp, MP Harrigan, C Klein, JM Swails, CX Hernández, CR Schwantes, LP Wang, TJ Lane, VS Pande. MDTraj: A Modern Open Library for the Analysis of Molecular Dynamics Trajectories. Biophys J. (20 October 2015) 109(8):1528-32. doi: 10.1016/j.bpj.2015.08.015
最近版本更新:(数据更新于 2024-09-21 07:20:16)
2019-10-09 01:48:42 v0.3.5-1
2017-08-14 21:05:24 v0.3.5
2017-07-31 19:49:56 v0.3.4
2017-07-27 19:16:12 v0.3.3
2017-01-11 23:15:55 v0.3
2016-02-12 14:06:56 v0.2
2016-01-03 07:48:58 v0.1.1
nglviewer/mdsrv同语言 Python最近更新仓库
2024-12-22 18:18:34 LeslieLeung/heimdallr
2024-12-22 09:03:32 ultralytics/ultralytics
2024-12-21 13:26:40 notepad-plus-plus/nppPluginList
2024-12-21 11:42:53 XiaoMi/ha_xiaomi_home
2024-12-21 04:33:22 comfyanonymous/ComfyUI
2024-12-20 18:47:56 home-assistant/core