A SPIRE wrapper and command-line tool for interacting with global microbiome data.
Project description
SPIREpy
SPIREpy is a Python package and command-line tool that allows users to interact with the SPIRE database in a more convinient way.
Usage
Python package
The Python package encapsulates the study and samples types from SPIRE into classes with properties that allow you to access and interact with their data. To load a study, we do:
from spirepy import Study
study = Study("Lloyd-Price_2019_HMP2IBD")
We can then obtain the list of samples that belong to this study.
study.get_samples()
The study's metadata:
study.get_metadata()
Or even the assembled genomes:
study.get_mags()
Likewise, many of these attributes and operations are parallel to samples
(Sample class) as well. For the full documentation and how to interact with
them, see here
Command-line tool
The command-line interface tool allows the interaction with data from SPIRE directly in the terminal. It possesses 2 main interfaces:
viewdownload
These 2 sub-commands allows us to print tables and download data from both studies and samples. For more information on the available commands use:
spire --help
To view a study's metadata we can use:
spire --study view metadata Lloyd-Price_2019_HMP2IBD
And to download the same table as a .csv file we can instead:
spire --study download metadata Lloyd-Price_2019_HMP2IBD -o study/
Installation
TODO: need to add to PyPI and conda first
Documentation
TODO: need readthedocs
Credits
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spirepy-0.1.0.tar.gz.
File metadata
- Download URL: spirepy-0.1.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a3b4b1d77da279404aee244527a85d3e9f8bab995445a8cca2f92bb35a3dbd4
|
|
| MD5 |
c654bf0d648b785e55617208f7a7c2a4
|
|
| BLAKE2b-256 |
c5e8207e83e7475488368ce41098bb423fd62b7035f061d2a362194e7d4eb0d2
|
File details
Details for the file spirepy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spirepy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
165f3c909909af865ab6ca2589ef2943a2f7fe855ca271b54f5b9a0aa2d8b734
|
|
| MD5 |
3af3753f4e8b6587fa47d7f12d0e43dd
|
|
| BLAKE2b-256 |
7463e095aad28ab1d50a9ad9eed1963a1260da9c3439a6f697a84ea481be85bb
|