Skip to main content

MDAnalysis example data

Project description

MDAnalysisData

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

Accessing data sets

Import the datasets and access your data set of choice:

from MDAnalysisData import datasets

adk = datasets.fetch_adk()

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

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 (but not at later).

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 is 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.1.0.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

MDAnalysisData-0.1.0-py2.py3-none-any.whl (9.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for MDAnalysisData-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d538cdfe6fe2d9ff3f811597a7ef6c62e0a73228cece926d597cb5b057dda961
MD5 db2bb67f782b2738b1052276d1ba0c78
BLAKE2b-256 f58a772b8e507a6daf0ed604b2ba1b4360d195531ae52d956aa87f336c1d3402

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: MDAnalysisData-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.1 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/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for MDAnalysisData-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7ed4cb93bf0dcae0035b343c28353e98f09aad6cc3ec3686016eded6f3fcef94
MD5 8ba0ef84d1f2a628498be62ecc415b0c
BLAKE2b-256 6686d263fbd094a65818eeffc6b1703e501f8c7eddf122ae7f260ef3c6166387

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