Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variant information available via the REST API but not via the web search interface #82

Open
ramiromagno opened this issue Oct 15, 2018 · 2 comments

Comments

@ramiromagno
Copy link

For SNP rs6431996:

Retrieving variant information via the REST API works:

curl 'https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996' -i -H 'Accept: application/json'
HTTP/2 200 
server: Apache-Coyote/1.1
cache-control: no-cache, no-store, max-age=0, must-revalidate
content-type: application/json;charset=UTF-8
strict-transport-security: max-age=0
date: Mon, 15 Oct 2018 17:02:15 GMT
x-application-context: application
expires: 0
x-xss-protection: 1; mode=block
pragma: no-cache
x-content-type-options: nosniff
x-frame-options: DENY

{
  "rsId" : "rs6431996",
  "merged" : 0,
  "functionalClass" : "intron_variant",
  "lastUpdateDate" : "2018-07-23T02:31:12.565+0000",
  "locations" : [ {
    "chromosomeName" : "2",
    "chromosomePosition" : 9278145,
    "region" : {
      "name" : "2p25.1"
    },
    "_links" : {
      "snps" : {
        "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
      }
    }
  } ],
  "genomicContexts" : [ {
    "isIntergenic" : true,
    "isUpstream" : true,
    "isDownstream" : false,
    "distance" : 6517,
    "gene" : {
      "geneName" : "EIF1P7",
      "entrezGeneIds" : [ {
        "entrezGeneId" : "106481691"
      } ],
      "ensemblGeneIds" : [ {
        "ensemblGeneId" : "ENSG00000213772"
      } ]
    },
    "location" : {
      "chromosomeName" : "2",
      "chromosomePosition" : 9278145,
      "region" : {
        "name" : "2p25.1"
      },
      "_links" : {
        "snps" : {
          "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
        }
      }
    },
    "source" : "Ensembl",
    "mappingMethod" : "Ensembl_pipeline",
    "isClosestGene" : true,
    "_links" : {
      "snp" : {
        "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
      }
    }
  }, {
    "isIntergenic" : true,
    "isUpstream" : true,
    "isDownstream" : false,
    "distance" : 71666,
    "gene" : {
      "geneName" : "LOC100506317",
      "entrezGeneIds" : [ {
        "entrezGeneId" : "100506317"
      } ],
      "ensemblGeneIds" : [ ]
    },
    "location" : {
      "chromosomeName" : "2",
      "chromosomePosition" : 9278145,
      "region" : {
        "name" : "2p25.1"
      },
      "_links" : {
        "snps" : {
          "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
        }
      }
    },
    "source" : "NCBI",
    "mappingMethod" : "Ensembl_pipeline",
    "isClosestGene" : false,
    "_links" : {
      "snp" : {
        "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
      }
    }
  }, {
    "isIntergenic" : false,
    "isUpstream" : false,
    "isDownstream" : false,
    "distance" : 0,
    "gene" : {
      "geneName" : "ASAP2",
      "entrezGeneIds" : [ {
        "entrezGeneId" : "8853"
      } ],
      "ensemblGeneIds" : [ {
        "ensemblGeneId" : "ENSG00000151693"
      } ]
    },
    "location" : {
      "chromosomeName" : "2",
      "chromosomePosition" : 9278145,
      "region" : {
        "name" : "2p25.1"
      },
      "_links" : {
        "snps" : {
          "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
        }
      }
    },
    "source" : "Ensembl",
    "mappingMethod" : "Ensembl_pipeline",
    "isClosestGene" : false,
    "_links" : {
      "snp" : {
        "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
      }
    }
  }, {
    "isIntergenic" : true,
    "isUpstream" : true,
    "isDownstream" : false,
    "distance" : 6517,
    "gene" : {
      "geneName" : "EIF1P7",
      "entrezGeneIds" : [ {
        "entrezGeneId" : "106481691"
      } ],
      "ensemblGeneIds" : [ {
        "ensemblGeneId" : "ENSG00000213772"
      } ]
    },
    "location" : {
      "chromosomeName" : "2",
      "chromosomePosition" : 9278145,
      "region" : {
        "name" : "2p25.1"
      },
      "_links" : {
        "snps" : {
          "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
        }
      }
    },
    "source" : "NCBI",
    "mappingMethod" : "Ensembl_pipeline",
    "isClosestGene" : true,
    "_links" : {
      "snp" : {
        "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
      }
    }
  }, {
    "isIntergenic" : false,
    "isUpstream" : false,
    "isDownstream" : false,
    "distance" : 0,
    "gene" : {
      "geneName" : "ASAP2",
      "entrezGeneIds" : [ {
        "entrezGeneId" : "8853"
      } ],
      "ensemblGeneIds" : [ {
        "ensemblGeneId" : "ENSG00000151693"
      } ]
    },
    "location" : {
      "chromosomeName" : "2",
      "chromosomePosition" : 9278145,
      "region" : {
        "name" : "2p25.1"
      },
      "_links" : {
        "snps" : {
          "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
        }
      }
    },
    "source" : "NCBI",
    "mappingMethod" : "Ensembl_pipeline",
    "isClosestGene" : false,
    "_links" : {
      "snp" : {
        "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
      }
    }
  }, {
    "isIntergenic" : true,
    "isUpstream" : false,
    "isDownstream" : true,
    "distance" : 127536,
    "gene" : {
      "geneName" : "ITGB1BP1",
      "entrezGeneIds" : [ {
        "entrezGeneId" : "9270"
      } ],
      "ensemblGeneIds" : [ {
        "ensemblGeneId" : "ENSG00000119185"
      } ]
    },
    "location" : {
      "chromosomeName" : "2",
      "chromosomePosition" : 9278145,
      "region" : {
        "name" : "2p25.1"
      },
      "_links" : {
        "snps" : {
          "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
        }
      }
    },
    "source" : "NCBI",
    "mappingMethod" : "Ensembl_pipeline",
    "isClosestGene" : true,
    "_links" : {
      "snp" : {
        "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
      }
    }
  }, {
    "isIntergenic" : true,
    "isUpstream" : true,
    "isDownstream" : false,
    "distance" : 63347,
    "gene" : {
      "geneName" : "LOC107985851",
      "entrezGeneIds" : [ {
        "entrezGeneId" : "107985851"
      } ],
      "ensemblGeneIds" : [ ]
    },
    "location" : {
      "chromosomeName" : "2",
      "chromosomePosition" : 9278145,
      "region" : {
        "name" : "2p25.1"
      },
      "_links" : {
        "snps" : {
          "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
        }
      }
    },
    "source" : "NCBI",
    "mappingMethod" : "Ensembl_pipeline",
    "isClosestGene" : false,
    "_links" : {
      "snp" : {
        "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
      }
    }
  }, {
    "isIntergenic" : true,
    "isUpstream" : false,
    "isDownstream" : true,
    "distance" : 125330,
    "gene" : {
      "geneName" : "ITGB1BP1",
      "entrezGeneIds" : [ {
        "entrezGeneId" : "9270"
      } ],
      "ensemblGeneIds" : [ {
        "ensemblGeneId" : "ENSG00000119185"
      } ]
    },
    "location" : {
      "chromosomeName" : "2",
      "chromosomePosition" : 9278145,
      "region" : {
        "name" : "2p25.1"
      },
      "_links" : {
        "snps" : {
          "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
        }
      }
    },
    "source" : "Ensembl",
    "mappingMethod" : "Ensembl_pipeline",
    "isClosestGene" : true,
    "_links" : {
      "snp" : {
        "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
    },
    "singleNucleotidePolymorphism" : {
      "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996"
    },
    "associationsBySnpSummary" : {
      "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996/associations?projection=associationBySnp"
    },
    "associations" : {
      "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996/associations"
    },
    "currentSnp" : {
      "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996/currentSnp"
    },
    "studies" : {
      "href" : "https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996/studies"
    }
  }
}

But not via the web search interface:

https://www.ebi.ac.uk/gwas/variants/rs6431996

rs6431996_not_found

@cmalangone
Copy link
Contributor

cmalangone commented Oct 16, 2018

Hi Ramiro,
this is a bug. The study was not published and this variant should not be available.

HATEOAS gives the related endpoint
https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/rs6431996/studies

This endpoint gave an empty resultset.
The JIRA Task:
https://www.ebi.ac.uk/panda/jira/browse/GOCI-2447

@ramiromagno
Copy link
Author

The same happens with variant rs7546498 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants