# Is it possible to convert Gene Symbol to Ensembl ID?

**URL:** <https://community.opentargets.org/t/is-it-possible-to-convert-gene-symbol-to-ensembl-id/679>\
**Category:** General\
**Tags:** ot-platform\
**Created:** [27 June 2022 13:18 UTC](https://community.opentargets.org/t/is-it-possible-to-convert-gene-symbol-to-ensembl-id/679 "2022-06-27T13:18:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![animesh](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/animesh/32/269_2.png) [@animesh](https://community.opentargets.org/u/animesh)\
**Post date:** [27 June 2022 13:18 UTC](https://community.opentargets.org/t/is-it-possible-to-convert-gene-symbol-to-ensembl-id/679/1 "2022-06-27T13:18:03Z")

</div>

AFAIK Open Target needs ID in ensembl-gene format. What is the most convenient way to convert gene-symbol like HGNC to Ensembl preferably within Open Target?

Currently i am using [https://www.genetolist.com/](https://www.genetolist.com/) which is great but requires manual upload and downstream parsing…

---

<div class="post-metadata">

**Author:** ![hcornu](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/hcornu/32/716_2.png) [@hcornu](https://community.opentargets.org/u/hcornu)\
**Post date:** [27 June 2022 14:45 UTC](https://community.opentargets.org/t/is-it-possible-to-convert-gene-symbol-to-ensembl-id/679/2 "2022-06-27T14:45:33Z")

</div>

Hi @animesh, and welcome to the Open Targets Community! 🎉

You can search the Platform’s web application using the gene symbol, rather than the Ensembl ID. For example, I would search for NOD to rather than ENSG00000167207.

The Platform also handles synonyms of the gene, so if I were to search for CLR16.3, it would bring up NOD2 as the relevant target.

 ![Screenshot 2022-06-27 at 15.43.09](https://europe1.discourse-cdn.com/flex017/uploads/opentargets/original/1X/14f954558e58220db2299566db05b688574d16fa.png)

Does this answer your question?

---

<div class="post-metadata">

**Author:** ![animesh](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/animesh/32/269_2.png) [@animesh](https://community.opentargets.org/u/animesh)\
**Post date:** [28 June 2022 07:25 UTC](https://community.opentargets.org/t/is-it-possible-to-convert-gene-symbol-to-ensembl-id/679/3 "2022-06-28T07:25:16Z")

</div>

Thanks 🙂 Is there a way to do this via the API. i.e. using the Gene/Symbol not Ensembl ID?

---

<div class="post-metadata">

**Author:** ![dsuveges](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/dsuveges/32/30_2.png) [@dsuveges](https://community.opentargets.org/u/dsuveges)\
**Post date:** [28 June 2022 15:15 UTC](https://community.opentargets.org/t/is-it-possible-to-convert-gene-symbol-to-ensembl-id/679/4 "2022-06-28T15:15:17Z")

</div>

Hi @animesh ,

If you are planning to do a larger scale analysis on our data, I would highly recommend using our target index accessible via ftp as [JSON](https://community.opentargets.org/pub/databases/opentargets/platform/22.06/output/etl/json/targets) or [parquet](https://community.opentargets.org/pub/databases/opentargets/platform/22.06/output/etl/parquet/targets) format. The data is extremely rich, but has the ensembl identifier as `id` and HGNC gene symbol as `approvedSymbol` . It worth exploring.

If you are fetching data via [GraphQL API requests](https://api.platform.opentargets.org/api/v4/graphql/browser?operationName=assocs&query=query%20assocs%20%7B%0A%20%20search%28queryString%3A%20%22HER3%22%2C%20entityNames%3A%22target%22%29%20%7B%0A%09%09hits%20%7B%0A%20%20%20%20%20%20id%2C%0A%20%20%20%20%20%20name%2C%0A%20%20%20%20%09entity%2C%0A%20%20%20%20%20%20object%20%7B%0A%20%20%20%20%20%20%20%20...%20on%20Target%20%7B%0A%20%20%20%20%20%20%20%20%20%20associatedDiseases%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20count%0A%20%20%20%20%20%20%20%20%20%20%20%20rows%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20score%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20datatypeScores%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20id%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09score%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20disease%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20id%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20name%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A), it is possible to retrieve data based on search query, where you specify that you are looking for a target and then expand the result on the associated diseases:

```auto
query assocs {
  search(queryString: "HER3", entityNames:"target") {
		hits {
      id,
      name,
    	entity,
      object {
        ... on Target {
          associatedDiseases {
            rows {
              score
              datatypeScores{
                id
              	score
              }
              disease {
                id
                name
              }
            }
          }
        }
      }
    }
  }
}

```

Please let us know if this answer did not cover your question.

---

<div class="post-metadata">

**Author:** ![animesh](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/animesh/32/269_2.png) [@animesh](https://community.opentargets.org/u/animesh)\
**Post date:** [28 June 2022 15:55 UTC](https://community.opentargets.org/t/is-it-possible-to-convert-gene-symbol-to-ensembl-id/679/5 "2022-06-28T15:55:12Z")

</div>

Thanks @dsuveges , this worked like charm! Solved another of the problem i was facing as well [Overall association score via graphql/API](https://community.opentargets.org/t/overall-association-score-via-graphql-api/680) !!
