npx skills add ...
npx skills add openai/plugins --skill gtex-eqtl-skill
npx skills add openai/plugins --skill gtex-eqtl-skill
Fetch GTEx single-tissue eQTL associations from one variant input by accepting rsID, GRCh37, or GRCh38 input and resolving to the required GRCh38 query for the GTEx v2 API. Use when a user wants eQTL associations returned as JSON.
requests for all network calls.rsid, grch37, grch38, or variant, and resolve to a GRCh38 chrom-pos-ref-alt query.variantId format: chr{chrom}_{pos}_{ref}_{alt}_b38.Accept JSON on stdin as either:
"10-112998590-C-T" (treated as GRCh38)Other accepted object forms include:
Allowed variant separators include -, :, _, /, or whitespace, for example:
10-112998590-C-T10:112998590-C-T10:112998590:C:Tchr10 112998590 C Tmax_results is optional and truncates returned eQTL rows when provided.
Success shape:
Failure shape:
Use:
scripts/gtex_eqtl.pyThe script reads JSON from stdin and prints JSON to stdout.
Example:
{
"ok": true,
"source": "gtex-v2",
"input": {"type": "grch38", "value": "10-112998590-C-T"},
"query_variant": {
"chr": "10",
"pos": 112998590,
"ref": "C",
"alt": "T",
"canonical": "10:112998590-C-T",
"variant_id": "chr10_112998590_C_T_b38"
},
"eqtl_count": 2,
"eqtl_count_total": 2,
"truncated": false,
"eqtls": [],
"paging_info": {},
"warnings": []
}{
"ok": false,
"error": {"code": "...", "message": "..."},
"warnings": []
}echo '{"grch38":"10-112998590-C-T","max_results":5}' | python scripts/gtex_eqtl.py