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()

Contributing new datasets

Please add new datasets to MDAnalysisData. See Contributing new datasets for details, but in short:

  1. raise an issue in the issue tracker describing what you want to add; this issue will become the focal point for discussions where the developers can easily give advice
  2. deposit data in an archive under an Open Data compatible license (CC0 or CC-BY preferred)
  3. write accessor code in MDAnalysisData

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.

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

mdanalysisdata-0.9.1.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdanalysisdata-0.9.1-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

Details for the file mdanalysisdata-0.9.1.tar.gz.

File metadata

  • Download URL: mdanalysisdata-0.9.1.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mdanalysisdata-0.9.1.tar.gz
Algorithm Hash digest
SHA256 1958636ab982e86bde5358e3cad29a484aa64fafbb320a8d4064b6538aa38fc1
MD5 f45f9f57c8bb6c0712863a926fd29e14
BLAKE2b-256 8737a21f5c48265658883ba6fb8df4deff4339d2aeba0758139f4c5fbe6f880b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdanalysisdata-0.9.1.tar.gz:

Publisher: deploy.yml on MDAnalysis/MDAnalysisData

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mdanalysisdata-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: mdanalysisdata-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 37.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mdanalysisdata-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7080298c48eb8ded6d90e1a123f5afdefa7a0cb73b4bf1ca26ea70ab4f3691cd
MD5 d5bc71e035eca519bfaac6a08c9ae9ba
BLAKE2b-256 99ebcb5b73e67bcd5d2f27eefb8250749b5dd054f85d2210d5916c94648ee309

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdanalysisdata-0.9.1-py3-none-any.whl:

Publisher: deploy.yml on MDAnalysis/MDAnalysisData

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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