I could be wrong, but I think you might be able to achieve this using the eQTL RESTful API as described here.

For example, for gene TP53BP1 (ENSG00000067369), here are the first two results:

curl -s https://www.ebi.ac.uk/eqtl/api/genes/ENSG00000067369/associations?size=2 | jsonpp
{
  "_embedded": {
    "associations": {
      "0": {
        "qtl_group": "macrophage_IFNg",
        "se": 0.0312781,
        "beta": 0.0306393,
        "median_tpm": 3.798,
        "study_id": "Alasoo_2018",
        "neg_log10_pvalue": 0.4806052046189824,
        "rsid": "rs4573906",
        "chromosome": "15",
        "type": "SNP",
        "alt": "A",
        "position": 42512802,
        "ac": 124.0,
        "maf": 0.255952,
        "variant": "chr15_42512802_G_A",
        "ref": "G",
        "pvalue": 0.33067,
        "r2": 0.81584,
        "an": 168.0,
        "molecular_trait_id": "ENSG00000067369",
        "gene_id": "ENSG00000067369",
        "tissue": "CL_0000235"
      },
      "1": {
        "qtl_group": "macrophage_IFNg",
        "se": 0.0312826,
        "beta": 0.0307136,
        "median_tpm": 3.798,
        "study_id": "Alasoo_2018",
        "neg_log10_pvalue": 0.4820470569928696,
        "rsid": "rs5812225",
        "chromosome": "15",
        "type": "INDEL",
        "alt": "C",
        "position": 42514003,
        "ac": 125.0,
        "maf": 0.255952,
        "variant": "chr15_42514003_CG_C",
        "ref": "CG",
        "pvalue": 0.329574,
        "r2": 0.81564,
        "an": 168.0,
        "molecular_trait_id": "ENSG00000067369",
        "gene_id": "ENSG00000067369",
        "tissue": "CL_0000235"
      }
    }
  },
  "_links": {
    "self": {
      "href": "http://www.ebi.ac.uk/eqtl/api/genes/ENSG00000067369/associations?links=False"
    },
    "first": {
      "href": "http://www.ebi.ac.uk/eqtl/api/genes/ENSG00000067369/associations?size=2&links=False&start=0"
    },
    "next": {
      "href": "http://www.ebi.ac.uk/eqtl/api/genes/ENSG00000067369/associations?size=2&links=False&start=2"
    }
  }
}

Note that the API is paginated, so you'll need to specify the number of results to return on each page (the default is 20) and the link to the next page is returned in _links.next.href. There are more query parameters that you can tweak, such as p_lower and p_upper.



Source link