Skip to main content

The meta-hq CLI.

Project description

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metahq_cli-1.1.0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metahq_cli-1.1.0-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file metahq_cli-1.1.0.tar.gz.

File metadata

  • Download URL: metahq_cli-1.1.0.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for metahq_cli-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4e887ed52c26fc23bf972f756e8c130b117d730265e785a7ec88caddae8030a0
MD5 4f8b7294e5d30854c2664d061841cc9d
BLAKE2b-256 938ccd4a1dae999fdc0442776c41414d483c1c002c1015557ee8f3401ef1d84b

See more details on using hashes here.

File details

Details for the file metahq_cli-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: metahq_cli-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for metahq_cli-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf8c71e02884930f1ce8ab560375f3da66d58b518782a2a0e7d9363c262c1d32
MD5 61980ee8fd2e5f82a558d53a5662b111
BLAKE2b-256 85fa880b0ac68c73a58e6270bcfa1d13cf30dcef425ceb76b12cdc0d494120b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page