Skip to main content

Calculate NMR relaxation time from molecular dynamics trajectory file

Project description

https://raw.githubusercontent.com/simongravelle/nmrformd/main/docs/source/images/NMRforMD_READMEc.png

NMRforMD is a python script to calculate NMR relaxation times from molecular dynamics trajectory files. Used in combination with MDAnalysis, it allows for the analysis of trajectory files from LAMMPS, GROMACS, or AMBER simulation package.

Information

NMRforMD is in development and likely to return errors. Please raise an issue here if you find one.

For details and a tutorial, have a look at the documentation.

Installation

Using pip, type in a terminal:

pip install nmrformd

Or, clone this repository on your computer and use pip from the main directory:

git clone git@github.com:simongravelle/nmrformd.git

cd nmrformd/

pip install .

You can run the test using pytest:

cd tests
pytest mytest.py

Basic example

This is an example showing how to use NMRforMD to measure NMR signal from a molecular dynamics simulations. See the tutorial for more information.

import MDAnalysis as mda
import nmrformd
u = mda.Universe("topology.tpr", "trajectory.xtc")
nmr_result = nmrformd.NMR(u, "type H", "type H", "full", 0, "m0")

The NMR relaxation time T1 is given by nmr_result.T1.

Known issues

  • for very large trajectory file, the code requires a lot of memory

  • currently only residues have been tested

  • the code has mostly been tested with GROMACS trajectory file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nmrformd-0.0.8.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

nmrformd-0.0.8-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file nmrformd-0.0.8.tar.gz.

File metadata

  • Download URL: nmrformd-0.0.8.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for nmrformd-0.0.8.tar.gz
Algorithm Hash digest
SHA256 a14536a7dbcc8acdbf011fa97f066dc0b8f87a1c9840be18fb39b353b6beb469
MD5 0ecadf63524740571cc21ec601840d9d
BLAKE2b-256 19b312df41aebe48fd8de5b6e9ecc98bf04d4d9dbc09a0639d855b7aa260fb79

See more details on using hashes here.

File details

Details for the file nmrformd-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: nmrformd-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for nmrformd-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6bef83f77572f3e18b153480d54a15701aaef4b2a720e8178c57c99586c7ef0c
MD5 be12409f739b4013f954e44f29ecb636
BLAKE2b-256 393d684889af701fa38f687e07e426af51ccfff8781c89ce05af367f32dc2266

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page