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_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
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 are included; please see the DESCR attribute for each data
set for authorship, citation, and license information for the data.
Metadata
Release files for MDAnalysisData 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| MDAnalysisData-0.1.1.tar.gz | 23.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| MDAnalysisData-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 32.5 kB
Release files / MDAnalysisData-0.1.1.tar.gz
| Download URL | MDAnalysisData-0.1.1.tar.gz |
|---|---|
| Size | 23.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b446daf8e07df4028c3d23c8accac566040b986a961473fd4388d46a1ab9986
|
|
BLAKE2b-256 checksum How to use checksums |
c998cd52a4977f3607bfc76329fdc655beb44b931691112e881b1bcc2c402a7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / MDAnalysisData-0.1.1-py2.py3-none-any.whl
| Download URL | MDAnalysisData-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
459e956fa0b6707832c7c27c25f63d197325277f62ca424d2a7853738302308a
|
|
BLAKE2b-256 checksum How to use checksums |
2756b79ea6c5301116843ff985f471e97f3a9a331ba22f07a6ccca4daa8a2a1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|