Skip to main content

MDAnalysis example data

Project description

MDAnalysisData

Build Status codecov docs PRs welcome Anaconda-Server Badge DOI

Access to data for workshops and extended tests of MDAnalysis.

Data sets are stored at external stable URLs (e.g., on figshare, zenodo, or DataDryad) and this package provides a simple interface to download, cache, and access data sets.

Installation

To use, install the package

pip install --upgrade MDAnalysisData

or install with conda

conda install --channel conda-forge mdanalysisdata

Accessing data sets

Import the datasets and access your data set of choice:

from MDAnalysisData import datasets

adk = datasets.fetch_adk_equilibrium()

The returned object contains attributes with the paths to topology and trajectory files so that you can use it directly with, for instance, MDAnalysis:

import MDAnalysis as mda
u = mda.Universe(adk.topology, adk.trajectory)

The metadata object also contains a DESCR attribute with a description of the data set, including relevant citations:

print(adk.DESCR)

Managing data

Data are locally stored in the data directory ~/MDAnalysis_data (i.e., in the user's home directory). This location can be changed by setting the environment variable MDANALYSIS_DATA, for instance

export MDANALYSIS_DATA=/tmp/MDAnalysis_data

The location of the data directory can be obtained with

MDAnalysisData.base.get_data_home()

If the data directory is removed then data are downloaded again. Data file integrity is checked with a SHA256 checksum when the file is downloaded.

The data directory can we wiped with the function

MDAnalysisData.base.clear_data_home()

Credits

This package is modelled after sklearn.datasets. It uses code from sklearn.datasets (under the BSD 3-clause license).

No data are included; please see the DESCR attribute for each data set for authorship, citation, and license information for the data.

Download files

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

Source Distribution

MDAnalysisData-0.5.0.tar.gz (54.9 kB view details)

Uploaded Source

Built Distribution

MDAnalysisData-0.5.0-py2.py3-none-any.whl (23.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file MDAnalysisData-0.5.0.tar.gz.

File metadata

  • Download URL: MDAnalysisData-0.5.0.tar.gz
  • Upload date:
  • Size: 54.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for MDAnalysisData-0.5.0.tar.gz
Algorithm Hash digest
SHA256 7bf84795bc0e5b1f2bb3769614c75fd4a6fa6a1eb9a8681ae3a5d2321c91242c
MD5 1dbb7a13c03bc025c2c2fa51e403c8b1
BLAKE2b-256 7feddc8981f928fad4b7bdc0fa0ad26150518e1b2114f5008687bea6e6290e5f

See more details on using hashes here.

Provenance

File details

Details for the file MDAnalysisData-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: MDAnalysisData-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for MDAnalysisData-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2b5c18b5ea60d68bfbb25ec7a3f8de9690c4322dcb69dcfcc9d8dbd43d0ba26c
MD5 f65a4feda6f206d9a20707db0782ba8b
BLAKE2b-256 e43f96e8727bbe59b81e18b2845f9698287e16a35753f8498d0259661d318fa9

See more details on using hashes here.

Provenance

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