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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file MDAnalysisData-0.6.0.tar.gz
.
File metadata
- Download URL: MDAnalysisData-0.6.0.tar.gz
- Upload date:
- Size: 55.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.14.2 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0cbec31c79075148f007e6e6914eec7ef4a9307283a6d81e2896240d92f97d8 |
|
MD5 | 7b670b6148a09141410f67527d87c82b |
|
BLAKE2b-256 | ebf22e6562f5676d7c6e895ff77feccd452320e6bb5957443e7807571b5a3548 |
Provenance
File details
Details for the file MDAnalysisData-0.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: MDAnalysisData-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.14.2 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f50e542186b51a94c036a6f503a6a83aab211543b1d741d0c0e603ddf9d7072e |
|
MD5 | f563d2de2723f3a5797b9485df3b3c19 |
|
BLAKE2b-256 | f90479c0a379c44dc39de13ff44b68ac1143462483314a9a368571c0d5d5a816 |