Data acquisition tools for Wagnerds
Project description
Wags-TAILS
Technology-Assisted Information Loading and Structure (TAILS) for Wagnerds.
This tool provides data acquisition and access utilities for several projects developed by the Wagner Lab. It designates a storage location in user-space where external data files can be saved, and provides methods to download and update them when available.
It is currently used in:
- Thera-Py
- Gene Normalizer
- Disease Normalizer
- and more!
Documentation · Installation · Usage · API reference
Installation
Install from PyPI:
python3 -m pip install wags_tails
Usage
Data source classes provide a get_latest()
method that acquires the most recent available data file and returns a pathlib.Path object with its location:
>>> from wags_tails.mondo import MondoData
>>> m = MondoData()
>>> m.get_latest(force_refresh=True)
Downloading mondo.obo: 100%|█████████████████| 171M/171M [00:28<00:00, 6.23MB/s]
PosixPath('/Users/genomicmedlab/.local/share/wags_tails/mondo/mondo_v2023-09-12.obo'), 'v2023-09-12'
Initialize the source class with the silent
parameter set to True to suppress console output:
>>> from wags_tails.mondo import MondoData
>>> m = MondoData(silent=True)
>>> latest_file, version = m.get_latest(force_refresh=True)
Configuration
All data is stored within source-specific subdirectories of a designated WagsTails data directory. By default, this location is ~/.local/share/wags_tails/
, but it can be configured by passing a Path directly to a data class on initialization, via the $WAGS_TAILS_DIR
environment variable, or via XDG data environment variables.
Feedback and contributing
We welcome bug reports, feature requests, and code contributions from users and interested collaborators. The documentation contains guidance for submitting feedback and contributing new code.
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 wags_tails-0.1.4.tar.gz
.
File metadata
- Download URL: wags_tails-0.1.4.tar.gz
- Upload date:
- Size: 200.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fe08dfbfac852ddd2ff1dfffeb5eb238630a6ae34c3d060a4862fd36cc5ab0a |
|
MD5 | 1d205638e0e1c2617c8a3905ff505cf0 |
|
BLAKE2b-256 | 5ca240cc53ab8c1fd01a533b93d3bd805d54851d813ad15fc8b495634eb1041a |
File details
Details for the file wags_tails-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: wags_tails-0.1.4-py3-none-any.whl
- Upload date:
- Size: 33.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 426dc1b9a4311e178d4fcbbd3a7efc064e7bad7dc90f3764dc616082a8cdb3ea |
|
MD5 | 69df3440b6715a9f16339b08d745128e |
|
BLAKE2b-256 | 319c92ce999af6cc1be6696570ed9db50127fe5cd6aadc2d0095cee6dc9c89a7 |