Closed addramir closed 4 days ago
After discussing with @addramir, the issue seems to lie with the gentropy implementation of coloc not returning a way of interpreting direction of effect. This can be resolved by generating a ratio of the SuSiE posterior means (mu) between either the GWAS and GWAS or the GWAS and molQTL.
In the instance where the two lead variants are the same, this is trivial. When these do not align a decision must be made about what the most appropriate comparison is.
Actions:
Just as an idea: calculate the signed CLPP weighed on CLPP, similar to eCAVIAR but taking into account the sign of the betas. E.g.: -----|CS1 pip,beta|CS2 pip,beta snp1 |. 0.3,+1. | 0.6, +1 snp2 | 0.5, -1. | 0.3, -1 snp3 | 0.2, +1. | 0.1, -1
signed_CLPP=sum(sign_1 sign2 pip1 pip2)/(sum(pip1 pip2))=(0.3 1 0.6 1+0.5 (-1) 0.3 (-1)+0.2 1 0.1 (-1)) / (0.3 0.6+0.5 0.3+0.2 0.1)=0.8857
OR
-----|CS1 pip,beta|CS2 pip,beta snp1 |. 0.3,-1. | 0.6, +1 snp2 | 0.5, -1. | 0.3, +1 snp3 | 0.2, -1. | 0.1, +1
signed_CLPP=sum(sign_1 sign2 pip1 pip2)/(sum(pip1 pip2))=(0.3 (-1) 0.6 1+0.5 (-1) 0.3 1)+0.2 (-1) 0.1 (1)) / (0.3 0.6+0.5 0.3+0.2 0.1)=-1
Currently I've been working on a subset of the data and trying to determine how many credible sets contain variants which all have agreeing sign(beta1/beta2). Assuming most (90%+) sets have all variants in agreement, I was considering reporting, for the lead variant, the beta ratio or potentially more simply whether the eQTL effect is positive or negative relative to a positive GWAS effect (as this circumvents the choosing a variant issue and is all we really care about, right?).
I'm a little cautious about the above approach... I don't like the idea of a signed probability, personally, and whilst I can see the logic behind it, I'm afraid it may be a little confusing to explain/justify to a casual user of the portal to immediately interpret with a tooltip/FAQ.
Resolved with https://github.com/opentargets/gentropy/pull/854
Old OTG platform in colocalisation page there is a study beta: https://genetics-docs.opentargets.org/faqs#why-are-betas-and-odds-ratios-displayed-inconsistently-in-the-portal
We need something similar for our colocalisation widget.