Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.357.566 Times

Convert Gromacs v 4.5 trajectory files into MatLab matrix 1.0

  Date Added: August 26, 2013  |  Visits: 501

Convert Gromacs v 4.5 trajectory files into MatLab matrix

Report Broken Link
Printer Friendly Version


Product Homepage
Download (48 downloads)



%trr2matlab.mby Evan Arthur, University of Michigan, October 2011 Matlab outputs trajectories in a relatively consistent format that isfundamentally challanging and inefficient for Matlab to read directly.This program translates most trr files from recent versions of Gromacsinto binary files that can be read quickly and efficiently into Matlabvia readGmx2Matlab.m.readGmx2Matlab.m is a sibling program that reads the output ofthis program. Currently only coordinates, velocities, and forces areoutput. If I get requests for other outputs (box dimensions, lambdaparameters, 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 otherprograms to read. These are by default in a ".binary format". The matrixhas introductory code, and the trajectory. There are options to read onlya small portion of the trajectory with a starting frame and ending frameoption. Skipping frames during the reading process (say, to read in everyother 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

Requirements: No special requirements
Platforms: Matlab
Keyword: Introductory Matlab Matricies Matrix Options Programs Proteina Proteina Xdatabinary Turns
Users rating: 0/10

License: Shareware Size: 204.8 KB
USER REVIEWS
More Reviews or Write Review


CONVERT GROMACS V 4.5 TRAJECTORY FILES INTO MATLAB MATRIX RELATED
Development Tools  -  mat2colon 1.0
Usage: strMat = mat2colon(Matrix, options) Options are: 'Delimiter' - 'on','yes','off','no' {default on} : Including square brackets [] (or curly brackets {} when output's dimensions are not consistent) 'auto' by default. 'Sort' -...
10 KB  
Boot Managers  -  Program Plus 1.2.0.0
Extends programs launching with options from system menu.It's already used for compilation (as options-manager and launcher) in the "Compile Plus" and "Source Editor".
522.24 KB  
Development Tools  -  Euklid (Inverse) Distance Weight Matrix 1.0
function W = euklid_W(ws,d,n)function W = euklid_invW(ws,d,n) PURPOSE: create an (inverse) euklidean distance spatial weight matrix (n x m 'moving-window' style matrix with distance to center cell weighted.)...
10 KB  
Development Tools  -  Mix Database 1.0
Use SQL-queries to access a matrix in matlab and save it using less memory than with usual cell-arrays
10 KB  
Audio Tools  -  pfstools 1.8.5
pfstools package is a set of command line programs for reading, writing and manipulating high-dynamic range (HDR) images and video frames. It includes also Qt and OpenGL HDR image viewers. pfstools can be integrated with GNU Octave or matlab, so...
829.44 KB  
Development Tools  -  sym2str 1.0
Converts symbolic variables to a Matlab equation string insuring that only array opps are used. Symbolic arrays are converted to linear Cell arrays of strings. This function is most often used to prepare symbolic answers for use with the "eval()"...
10 KB  
Utilities  -  Job-scheduler 1.1.0
Job-scheduler is a program that schedules programs to be run at their specified times. It gives users several options for scheduling programs. Job-scheduler reads an input file which contains necessary information for scheduling possibly several...
307.2 KB  
Education  -  Rlab for Linux 2. 10. 2005
Rlab is an interactive, interpreted scientific programming environment. Rlab is a very high level language intended to provide fast prototyping and program development, as well as easy data-visualization, and processing. Rlab is not a clone of...
1.92 MB  
Education  -  Rlab for Windows 2. 10. 2005
Rlab is an interactive, interpreted scientific programming environment. Rlab is a very high level language intended to provide fast prototyping and program development, as well as easy data-visualization, and processing. Rlab is not a clone of...
1.52 MB  
Development Tools  -  Solar Test Suite 1.0
Several programs exist for measuring solar cell data, mainly written in labview. Since data analysis is more native to me in matlab, and I needed some custom instrumentation, I wrote my own in MATLAB. Some other industrial programs exist on the...
61.44 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB