Data Science in Chemistry by Thorsten Gressling
Author:Thorsten Gressling [Thorsten Gressling]
Language: eng
Format: epub
Publisher: De Gruyter
Published: 2020-10-30T00:00:00+00:00
# Analyze coordinates in a trajectory (MDAnalysis) # author: MDAnalysis team # license: GPL-2 # code: github.com/MDAnalysis/â¦/examples/ # activity: active (2020) # index: 53-2 import MDAnalysis from MDAnalysis.tests.datafiles import PSF, DCD # test trajectory import numpy.linalg u = MDAnalysis.Universe(PSF,DCD) # always start with a Universe # can access via segid (4AKE) and atom name # we take the first atom named N and the last atom named C nterm = u.select_atoms('segid 4AKE and name N')[0] cterm = u.select_atoms('segid 4AKE and name C')[-1] bb = u.select_atoms('protein and backbone') # a selection (AtomGroup) for ts in u.trajectory: # iterate through all frames r = cterm.position - nterm.position # end-to-end vector from atom positions d = numpy.linalg.norm(r) # end-to-end distance rgyr = bb.radius_of_gyration() # method of AtomGroup print("frame = {0}: d = {1} A, Rgyr = {2} A".format( ts.frame, d, rgyr))
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Alchemy and Alchemists by C. J. S. Thompson(3448)
The Elements by Theodore Gray(2995)
The Club by A.L. Brooks(2862)
How to Make Your Own Soap by Sally Hornsey(2826)
Drugs Unlimited by Mike Power(2544)
Wheels of Life by Anodea Judith(2095)
Cracking the LSAT, 2012 Edition by Princeton Review(1869)
Cracking the Sat French Subject Test, 2013-2014 Edition by The Princeton Review(1827)
Perfume by Jean-Claude Ellena(1781)
The Flavor Matrix by James Briscione(1774)
The Cosmic Machine: The Science That Runs Our Universe and the Story Behind It by Scott Bembenek(1725)
MCAT Physics and Math Review by Princeton Review(1634)
1000 Multiple-Choice Questions in Organic Chemistry by Organic Chemistry Academy(1621)
The Thing Around Your Neck by Chimamanda Ngozi Adichie(1599)
Handbook of Modern Sensors by Jacob Fraden(1542)
Cracking the SAT Premium Edition with 6 Practice Tests, 2017 by Princeton Review(1535)
Synchrotron Light Sources and Free-Electron Lasers by Eberhard J. Jaeschke Shaukat Khan Jochen R. Schneider & Jerome B. Hastings(1523)
A is for Arsenic: The Poisons of Agatha Christie (Bloomsbury Sigma) by Kathryn Harkup(1506)
Harry Potter All Books: 8 Books by J.k.rowling(1491)