MDAnalysis example data
Project description
# MDAnalysisData
[![DOI](https://zenodo.org/badge/147885122.svg)](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
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 (but not at later).
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.
[![DOI](https://zenodo.org/badge/147885122.svg)](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
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 (but not at later).
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.
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
MDAnalysisData-0.2.0.tar.gz
(27.3 kB
view details)
Built Distribution
File details
Details for the file MDAnalysisData-0.2.0.tar.gz
.
File metadata
- Download URL: MDAnalysisData-0.2.0.tar.gz
- Upload date:
- Size: 27.3 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 | 9fcc141cd689a494e336dcdeb2404c37362651b1c71f9ed6f2b532ef6922670e |
|
MD5 | 751b2d0f19b3fa7c9cfcc2272261a7e0 |
|
BLAKE2b-256 | 9734d83dca2a2884d0bdded194d296255f3c7fdf9d1af0b1bfbbe3660422a184 |
Provenance
File details
Details for the file MDAnalysisData-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: MDAnalysisData-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 21.4 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 | 97ab584a245a196f13ce848bb9b617b0bb0b6db666b169059722616abe836ce6 |
|
MD5 | 31bee6f7c6e2167f7ee1fe9d1ae86ac1 |
|
BLAKE2b-256 | dc870d7c32f4d9e5ad08573869a5fbed9dc04baafdb7a76f8af741fb856d5216 |