Convert Gromacs v 4.5 trajectory files into MatLab matrix
- Downloads:
- Views:
- Rating:

%trr2matlab.m
by Evan Arthur, University of Michigan, October 2011
Matlab outputs trajectories in a relatively consistent format that is
fundamentally challanging and inefficient for Matlab to read directly.
This program translates most trr files from recent versions of Gromacs
into binary files that can be read quickly and efficiently into Matlab
via readGmx2Matlab.m.
readGmx2Matlab.m is a sibling program that reads the output of
this program. Currently only coordinates, velocities, and forces are
output. If I get requests for other outputs (box dimensions, lambda
parameters, etc) I'll fit it in.
Requirements:
- Gromacs trr trajectory file (GMX trn format)
tested on version 4.5 and later
- readGmx2Matlab.m (reads the output from this script)
- Free RAM: not much. Less than 500 kb for most simulations.
- Free Hard Disk: between 1 to 2 times the .trr you input.
By default the entire trajectory is copied and reformatted. It
takes the output, converts it into a usable format, and then it
rewrites the output with useful information. Temp files are
removed after all calculations are done, so at most the
trajectory is just duplicated in a cleaner format.
Limitations:
- Broken trr files. If there is a broken frame, it probably should be
removed before inputting the trajectory.
Inputs:
- path to trr file (required, must be first input)
- path to output file (optional)
if none given, a default name is chosen (such as 'xdata.binary')
- 'x' (optional)
outputs xyz atomic coordinates
- 'v' (optional)
outputs xyz of instantaneous velocities
- 'f' (optional)
outputs xyz of atomic forces
Outputs:
- xyz data
output either by default or if 'x' option is given
default name is 'xdata.binary'
- velocity data
output either by default or if 'v' option is given
default name is 'vdata.binary'
- force data
output either by default or if 'f' option is given
default name is 'fdata.binary'
Example inputs and outputs:
trr2matlab ('traj.trr')
outputs all atomic coordinates, velocities, and forces as files
'xdata.binary', 'vdata.binary', and 'fdata.binary'
trr2matlab ('traj.trr', 'x', 'f')
outputs all atomic coordinates and forces as files
'xdata.binary' and 'fdata.binary' (velocity data is not output)
trr2matlab ('traj.trr', 'x')
outputs only atomic coordinates as file 'xdata.binary'
(velocity and force data are not output)
trr2matlab ('traj.trr', 'f', 'proteinA')
outputs only atomic forces as file 'proteinA_xdata.binary'
(velocity and coordinates data are not output)
% readGmx2Matlab.m
This program turns the output from trr2matlab.m into matricies for other
programs to read. These are by default in a ".binary format". The matrix
has introductory code, and the trajectory. There are options to read only
a small portion of the trajectory with a starting frame and ending frame
option. Skipping frames during the reading process (say, to read in every
other frame), is not implimented. If I get requests, I will add it.
Requirements:
- binary file from trr2matlab.m program
- Free RAM: a little more than the size of the binaries being read.
10,000 atoms * 3 axes * 1000 frames = 30 mb (single precision)
- Free Hard Disk: none
Inputs:
- path to binary file (required, must be first input)
- start frame (optional)
integer, starts reading at this point
- end frame (optional)
integer, stops reading at this point
Outputs:
- trajectory matrix
this is output as "coodData.trajectory" in the file
this is a 3D matrix is made of the trajectory with the format
(atom number ; xyz value ; frame number)
- information of trajectory
coodData.num_atoms has number of atoms
coodData.num_frames has number of frames
coodData.time_step has the time incriment between frames
Example inputs and outputs:
[coodData] = readGmx2Matlab('xdata.binary')
- makes a 3D matrix (coodData.trajectory) of entire coordinate trajectory
[coodData] = readGmx2Matlab('vdata.binary', 1000)
- makes a 3D matrix (coodData.trajectory) of velocity trajectory from frames 1 to 1000
[coodData] = readGmx2Matlab('fdata.binary', 1000, 2000)
- makes a 3D matrix (coodData.trajectory) of force trajectory from frames 1000 to 2000
[coodData] = readGmx2Matlab('intermedBinary_xdata.binary');
trajectory = coodData.trajectory(:,:,1:2:end);
for n = 1:size(trajectory)
plot3(trajectory(:,1,n), trajectory(:,2,n), trajectory(:,3,n),'.');
pause(0.2);
end
- plot out every other frame of trajectory as a 3D figure
Free download from Shareware Connection - %trr2matlab.m by Evan Arthur, University of Michigan, October 2011 Matlab outputs trajectories in a relatively consistent format that is fundamentally challanging and inefficient for Matlab to read directly.
Version: 1.0 | Size: 205 KB | Platform: Matlab, Scripts
Released Date: 13-01-2013 | Rating: 0 | Title: Convert Gromacs v 4.5 trajectory files into MatLab matrix
Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/33312/4/Gmx2Matlab_v1.2.zip
a fast method of reading data from PDB files - Some of the logic from this program was provided from PDBRead.m by Sachin Nikumbh.
Plot Groups of Stacked Bars - Plot a set of stacked bars, but group them according to labels provided.
eEvidence Analyzer - eEvidence Analyzer is an open source digital forensic analysis toolkit.
SimpleTest
WordPress Auto Poster Plugin
Professional Simulink Audio Equalizer
PHP Print / Echo
Ends Smart Form
Output buffering, and how it can change your life
ScriptCase - PHP Code Generator
Advanced Istaller for Java
FORMfields - The PHP Framework
C to C++ Converter
C++ Compiler
Wind Turbine Model
RTFGen - the PHP RTF generator
Cumulative Mann-Kendall trend test
Affiliate Programs
Animation
Auctions
Audio Systems
Banner Rotation
Blog
Bulletin Boards & Forums
Business & Enterprise
Buttons
Calendars & Events
Charts & Graphs
Chat
Classified Ad Managers
Communication
Combine Pdf Files Matlab
Wma Files Matlab
Combine Text Files Matlab
Combining Text Files Matlab
Concatenate Text Files Matlab
Recover Lost Files Pro - Recover Lost Files ( Recommended by Microsoft(R) ). How to recover lost files? Recover deleted files with the lost file recovery software, Recommended by Microsoft(R) Corporation. Recover Lost Files - Download software at Recover-Lost-Files.org !
How to Organize Music Files - How to Organize Music Files - now with new technologies it is clear how to organize music files. Special tool, designed by our programmers will show how to organize music files automatically! Learn how to organize music files.
Recover Files from Recycle bin - Recover Files from Recycle bin - How to recover files from Recycle bin? Recover deleted files from Recycle bin with the Recycle bin recovery software. Recover Files from Recycle bin - Download software at Recover-Files.ca
Find Duplicate Files Platinum - Find Duplicate Files - easily with the Software, Recommended by Microsoft(R) Corporation as the BEST software to find duplicate files on any computer. Find file duplicates, delete and remove duplicates - Download software at Find-Duplicate-Files.net
Recover Deleted Files Pro - Recover Deleted Files - easily with the Software, Recommended by Microsoft(R) Corp. as the best program to recover deleted files. Recover deleted files from recycle bin and other places. Recover Deleted Files - Download at Recover-Deleted-Files.us !
Shareware Connection periodically updates pricing and software information of 'Convert Gromacs v 4.5 trajectory files into MatLab matrix' from company source 'Evan' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using 'Convert Gromacs v 4.5 trajectory files into MatLab matrix' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Convert Gromacs v 4.5 trajectory files into MatLab matrix.
Sony Movie Studio 13 Platinum - Sony enjoys a prime position in consumer level media software development and its Movie Studio has a large fan following. However, in recent years competition from Adobe and Corel has caught up. The recent overhaul of Sony’s video editor ...
Eset Cyber Security Pro - There was a time Mac users were simply oblivious to the existence of malware and viruses, partially encouraged by Apple’s claim that Mac’s do not fall prey to malicious code. In last few years, that perception has been shattered owing ...
CCleaner Network Edition - Keeping computers clean of redundant and junk data is a prerequisite and these are various methods to do that. Apart from integrated utilities that come with Windows, you can also use third party utilities to keep PC clean of junk files and ...
Diver Reviver - It is not only malware and viruses that can affect performance of your computer. Malfunctioning and outdated drivers for hardware components can also affect speed and performance of a PC perceptibly. While seasoned users take the pain of ...
KeePass Password Safe - Using password becomes mandatory for performing various online operations, at both home and workplace. For accessing email accounts, shopping online, making banking transactions and similar tasks it is necessary to use user ids and passwords ...
Quick Heal PCTuner - Performance deficit or unexpected slowdown is something most PC users are acquainted with. Even those with powerful laptops and desktops have to face these issues from time to time. A PC can run slowly when temporary files clutter the HDD or ...
TrustPort Tools - Nowadays, PC users need to deal with several types of third party apps to ensure security and privacy of data. From encrypting files to getting rid of sensitive data, the needs can be numerous. There are many such tools that can be used in this ...
ProAnimator - In Post production setups and 3D animation studios, using specialized CG and special effects app becomes a necessity. ProAnimator is a feature rich 3D design application targeted at motion graphics sector. It is ideal when you want to add some ...
Pixelmator - There is no denying the fact that Mac users are often left with fewer third party app choices than those who use Windows based PCs. However, when it comes to imaging, the situation is a little better. If you want a versatile image editor for Mac ...
Reallusion iClone - Nowadays, there is no scarcity of 3D animation and modeling software in market. However, not all such apps are user friendly and easy on wallet. If you want an intuitive and capable tool for making 3D animations without requiring much time, give ...
