# MDAnalysisData
[](https://travis-ci.com/MDAnalysis/MDAnalysisData)
[](https://codecov.io/gh/MDAnalysis/MDAnalysisData)
[](https://www.mdanalysis.org/MDAnalysisData/)
[](http://makeapullrequest.com)
[](https://zenodo.org/badge/latestdoi/147885122)
Access to data for workshops and extended tests of MDAnalysis.
Data sets are stored at external stable URLs (e.g., on
[figshare](https://figshare.com/), [zenodo](https://zenodo.org/), or
[DataDryad](https://www.datadryad.org/)) and this package provides a
simple interface to download, cache, and access data sets.
## Installation
To use, install the package
```bash
pip install --upgrade MDAnalysisData
```
## Accessing data sets
Import the datasets and access your data set of choice:
```python
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](https://www.mdanalysis.org):
```python
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:
```python
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
```bash
export MDANALYSIS_DATA=/tmp/MDAnalysis_data
```
The location of the data directory can be obtained with
```python
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
```python
MDAnalysisData.base.clear_data_home()
```
## Credits
This package is modelled after
[sklearn.datasets](http://scikit-learn.org/stable/modules/classes.html#module-sklearn.datasets). It
uses code from `sklearn.datasets` (under the [BSD 3-clause
license](https://github.com/scikit-learn/scikit-learn/blob/master/COPYING)).
No data are included; please see the `DESCR` attribute for each data
set for authorship, citation, and license information for the data.
[](https://travis-ci.com/MDAnalysis/MDAnalysisData)
[](https://codecov.io/gh/MDAnalysis/MDAnalysisData)
[](https://www.mdanalysis.org/MDAnalysisData/)
[](http://makeapullrequest.com)
[](https://zenodo.org/badge/latestdoi/147885122)
Access to data for workshops and extended tests of MDAnalysis.
Data sets are stored at external stable URLs (e.g., on
[figshare](https://figshare.com/), [zenodo](https://zenodo.org/), or
[DataDryad](https://www.datadryad.org/)) and this package provides a
simple interface to download, cache, and access data sets.
## Installation
To use, install the package
```bash
pip install --upgrade MDAnalysisData
```
## Accessing data sets
Import the datasets and access your data set of choice:
```python
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](https://www.mdanalysis.org):
```python
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:
```python
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
```bash
export MDANALYSIS_DATA=/tmp/MDAnalysis_data
```
The location of the data directory can be obtained with
```python
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
```python
MDAnalysisData.base.clear_data_home()
```
## Credits
This package is modelled after
[sklearn.datasets](http://scikit-learn.org/stable/modules/classes.html#module-sklearn.datasets). It
uses code from `sklearn.datasets` (under the [BSD 3-clause
license](https://github.com/scikit-learn/scikit-learn/blob/master/COPYING)).
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.3.0
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.3.0.tar.gz | 53.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| MDAnalysisData-0.3.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 74.3 kB
Release files / MDAnalysisData-0.3.0.tar.gz
| Download URL | MDAnalysisData-0.3.0.tar.gz |
|---|---|
| Size | 53.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b27d34fc8facd326ff4bc0de403523d341aa60f9574562f5434c72497adb758
|
|
BLAKE2b-256 checksum How to use checksums |
39a3e88c57aea215a810f7d6c1ab833f994556530edc679a253124ef72a6ced1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.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.3.0-py2.py3-none-any.whl
| Download URL | MDAnalysisData-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e4ba66196905ddda9c756e7982ffe20457ddb9cd56df8310e0463d61476229a3
|
|
BLAKE2b-256 checksum How to use checksums |
fe7e65d14b2e5eb1c0dc32be90668896cf99074352b608b073a2f44650d89d28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.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
|