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.5.tar.gz
.
File metadata
- Download URL: wags_tails-0.1.5.tar.gz
- Upload date:
- Size: 202.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9bc74868124d1772aabda689ade34719c038b176961f84947a127d22ffbad63 |
|
MD5 | 4dee60f91ee86f4d6954e7784ff3b005 |
|
BLAKE2b-256 | 96494f4bc075b5a7b3212410f5f35a59f1112cfa2c842efa156d5aeb6142f3c8 |
Provenance
The following attestation bundles were made for wags_tails-0.1.5.tar.gz
:
Publisher:
release.yaml
on GenomicMedLab/wags-tails
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
wags_tails-0.1.5.tar.gz
- Subject digest:
e9bc74868124d1772aabda689ade34719c038b176961f84947a127d22ffbad63
- Sigstore transparency entry: 148453589
- Sigstore integration time:
- Predicate type:
File details
Details for the file wags_tails-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: wags_tails-0.1.5-py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8eae8aa2a7c07b13dad6f7965be77c3531560aa9b14b9c7f3e357b045049c77 |
|
MD5 | c030cc56c660b1f9bff13de95680e671 |
|
BLAKE2b-256 | a8cbb51ec3e9ea11a0ce41a35f42057b2d9175f41a3e598ef49880c605504427 |
Provenance
The following attestation bundles were made for wags_tails-0.1.5-py3-none-any.whl
:
Publisher:
release.yaml
on GenomicMedLab/wags-tails
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
wags_tails-0.1.5-py3-none-any.whl
- Subject digest:
b8eae8aa2a7c07b13dad6f7965be77c3531560aa9b14b9c7f3e357b045049c77
- Sigstore transparency entry: 148453593
- Sigstore integration time:
- Predicate type: