Skip to main content

The meta-hq CLI.

Project description

Logo

CLI Tests Python Code style: black pypi

A package 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

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-0.1.1.tar.gz (16.5 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-0.1.1-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: metahq_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for metahq_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 919c05bfdeb9ba5c33ee72e7b429dfeb0455aaaf6d46a3a3105617eed2d549f5
MD5 8decdc8ca67c000bd32e88cb3392ca14
BLAKE2b-256 e0e74d4bd7dce12807841436970aa8763c0589c98399131aaafc4bcfffd112b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: metahq_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for metahq_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f01d57d654836650f1a68addcf066a37a99a0bd1db0726cb1236c42dabac330a
MD5 748979b84c9c3723dc9d38ce2edcc7d2
BLAKE2b-256 e69687ece1e18fcd04e23dbaa8cfb90db1cb72456c04ba24f7812644c5d0bc9c

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