# Getting signs of GWAS effects relative to major alleles instead of alt alleles

**URL:** <https://community.opentargets.org/t/getting-signs-of-gwas-effects-relative-to-major-alleles-instead-of-alt-alleles/1224>\
**Category:** Feature requests\
**Tags:** genetics-portal\
**Created:** [28 September 2023 15:06 UTC](https://community.opentargets.org/t/getting-signs-of-gwas-effects-relative-to-major-alleles-instead-of-alt-alleles/1224 "2023-09-28T15:06:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eczech](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/eczech/32/416_2.png) [@eczech](https://community.opentargets.org/u/eczech)\
**Post date:** [28 September 2023 15:06 UTC](https://community.opentargets.org/t/getting-signs-of-gwas-effects-relative-to-major-alleles-instead-of-alt-alleles/1224/1 "2023-09-28T15:06:42Z")

</div>

Have there been past discussions on how to get GWAS effect signs for major alleles using data already in Open Targets?

I see [https://genetics-docs.opentargets.org/faqs#what-is-the-alternative-allele-why-not-use-the-minor-allele](https://genetics-docs.opentargets.org/faqs#what-is-the-alternative-allele-why-not-use-the-minor-allele), specifically the section on preferring alt alleles over minor alleles and it makes sense. Nevertheless, I would like to be able to interpret effect signs according to population frequency instead.

Is there existing code for doing this somewhere in the OT ecosystem? Or is this rarely asked for?

---

<div class="post-metadata">

**Author:** ![eczech](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/eczech/32/416_2.png) [@eczech](https://community.opentargets.org/u/eczech)\
**Post date:** [12 October 2023 18:24 UTC](https://community.opentargets.org/t/getting-signs-of-gwas-effects-relative-to-major-alleles-instead-of-alt-alleles/1224/2 "2023-10-12T18:24:38Z")

</div>

Any chance somebody could reclassify this as a [feature request](https://community.opentargets.org/c/feature-requests/16) for me? @Prashant_Uniyal or @dsuveges perhaps? Sorry, I’m realizing now that would have been a better category for it.

I’d like to reclassify [Inferring direction of therapeutic effect implied by coding genetic evidence](https://community.opentargets.org/t/inferring-direction-of-therapeutic-effect-implied-by-coding-genetic-evidence/1225) that way too if possible.

---

<div class="post-metadata">

**Author:** ![Annalisa\_Buniello](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/annalisa_buniello/32/426_2.png) [@Annalisa\_Buniello](https://community.opentargets.org/u/Annalisa_Buniello)\
**Post date:** [13 October 2023 07:57 UTC](https://community.opentargets.org/t/getting-signs-of-gwas-effects-relative-to-major-alleles-instead-of-alt-alleles/1224/3 "2023-10-13T07:57:09Z")

</div>

Hi Eric,  
i have reclassified both messages as “feature request”.  
Thank you for your contribution!

Annalisa

---

<div class="post-metadata">

**Author:** ![eczech](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/eczech/32/416_2.png) [@eczech](https://community.opentargets.org/u/eczech)\
**Post date:** [13 October 2023 13:38 UTC](https://community.opentargets.org/t/getting-signs-of-gwas-effects-relative-to-major-alleles-instead-of-alt-alleles/1224/4 "2023-10-13T13:38:08Z")

</div>

Thanks @Annalisa_Buniello!

---

<div class="post-metadata">

**Author:** ![Xiangyu](https://avatars.discourse-cdn.com/v4/letter/x/90db22/32.png) [@Xiangyu](https://community.opentargets.org/u/Xiangyu)\
**Post date:** [19 October 2023 08:40 UTC](https://community.opentargets.org/t/getting-signs-of-gwas-effects-relative-to-major-alleles-instead-of-alt-alleles/1224/5 "2023-10-19T08:40:19Z")

</div>

Hi Eric, it is also possible to perform a join between your variants of interest with the `variant` table from bigquery, or the variant index table from [ftp](http://ftp.ebi.ac.uk/pub/databases/opentargets/genetics/latest/variant-index/) , these tables have a nested column of the effect allele frequencies within the major ancestries from Gnomad. As the beta signs have been harmonised with respect to the alt alleles, they can then be flipped according to their allele frequencies to obtain their directionality with respect to the major alleles.

Hope that helps,  
Xiangyu

---

<div class="post-metadata">

**Author:** ![eczech](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/eczech/32/416_2.png) [@eczech](https://community.opentargets.org/u/eczech)\
**Post date:** [19 October 2023 18:51 UTC](https://community.opentargets.org/t/getting-signs-of-gwas-effects-relative-to-major-alleles-instead-of-alt-alleles/1224/6 "2023-10-19T18:51:32Z")

</div>

Thanks @Xiangyu. Has it been requested before to be able to see effects harmonized to minor/major alleles in the genetics UI instead of ref/alt? I think that would be useful, though admittedly much less so outside of variants with clear causal impacts on a gene/protein.
