Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

CLI Logo

CLI Tests Python Code style: black pypi License

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

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

Metadata

Release files for metahq-cli 1.2.3rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metahq-cli 1.2.3rc1
File Size Uploaded Provenance Actions
metahq_cli-1.2.3rc1.tar.gz 24.5 kB Without provenance Details for metahq_cli-1.2.3rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metahq-cli 1.2.3rc1
File Interpreter ABI Platform Actions
metahq_cli-1.2.3rc1-py3-none-any.whl Python 3 none any Details for metahq_cli-1.2.3rc1-py3-none-any.whl

Total release size: 55.7 kB

Release files / metahq_cli-1.2.3rc1.tar.gz

Download URL metahq_cli-1.2.3rc1.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6c9bce05228d178a785c442ccb7647947e6687d3d213d8faafc0460e185cf6c9
BLAKE2b-256 checksum
How to use checksums
1aeecf6edbbff3e5f0b83c548af9851098d7322809b3e3d7f0a3041cd917c6be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / metahq_cli-1.2.3rc1-py3-none-any.whl

Download URL metahq_cli-1.2.3rc1-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdfd3d0c40842c9f11b167d0923f54d1e0b12237468eb894be16b1cebde65010
BLAKE2b-256 checksum
How to use checksums
b716b109c012680619f7b7ceb650f5e915dab33c5e39cc37b47d4f3718cefb2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for metahq-cli 1.2.3rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page