The meta-hq CLI.
Project description
A command line interface to query the MetaHQ database.
Key features
- Query standardized and harmonized biomedical annotations
- Access metadata for samples and studies in GEO and SRA
- Convert annotations to labels
- Fast execution time
- Search for relevant ontology terms with free-text queries
- Contribute new annotation sets to the database
Docs
Documentation: https://meta-hq.readthedocs.io/en/latest
Source Code: https://github.com/krishnanlab/meta-hq/tree/main/packages/cli
Installation and setup
To install:
pip install metahq-cli
Setup: This command must be run with every metahq-cli installation. The setup command downloads the
MetaHQ database from Zenodo.
metahq setup --doi latest
Retrieve
Query the MetaHQ database to retrieve sample or study annotations for tissues, diseases, sex, and age.
metahq retrieve diseases --terms "MONDO:0004994,MONDO:0008903" \
--level sample --filters "species=human,tech=rnaseq,ecode=expert" \
--metadata "sample,series,platform,srp" --fmt parquet
Search
If you do not have ontology terms memorized off-hand, shame on you. However, you can cheat and run the following command to find the ontology term IDs most similar to a free-text query of a disease, tissue, or cell line.
metahq search --query "heart attack" --type disease --ontology MONDO
Supported
Run the following to view supported attributes, filters, formats, etc.
metahq supported
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 metahq_cli-1.1.1.tar.gz.
File metadata
- Download URL: metahq_cli-1.1.1.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5baecfd4cae31e7079b8209312a51e32fc369b555297f929b7565168825103ff
|
|
| MD5 |
3c030fc9d682380db540ab11be9c6811
|
|
| BLAKE2b-256 |
9f6067ba63a538d782342adc1070f62ae05e9c21b390b0246d4e2b8977176832
|
File details
Details for the file metahq_cli-1.1.1-py3-none-any.whl.
File metadata
- Download URL: metahq_cli-1.1.1-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3554421887dc44178de4c57e53e27b3c218b2d924babfdcc268cedaa948df8f3
|
|
| MD5 |
d0ee9289ba5c1b24d27bebdf51d55441
|
|
| BLAKE2b-256 |
81701f4a9fecd676f1f651c541eed34116db6a005ea1de254e99b2cb1f16a3e0
|