Giter Site home page Giter Site logo

Comments (6)

rmsegnitz avatar rmsegnitz commented on July 17, 2024

In my analysis I encountered such SNPs as extreme outliers similar to the SNP demonstrated in the linked script. Here a SNP that is confounded with a covariate results in an extreme outlier & large deviation from corresponding lm() fit.

image

image

from genesis.

amstilp avatar amstilp commented on July 17, 2024

We have also encountered this behavior before in GENESIS, when running a conditional analysis with SNPs that are perfectly correlated with one of the conditional variants. I agree it would be ideal to try to detect this and set them to NA it in the association testing, but we don't have the bandwidth to try to fix it at the moment. For now, we suggest filtering your association test results to remove any variants where the absolute value of the estimated effect and standard error is above some threshold (e.g., >1e10).

I'll leave the issue open in case we do get a chance to make an update to address this.

from genesis.

rmsegnitz avatar rmsegnitz commented on July 17, 2024

Great, just wanted to make sure developers were aware! It has of course been easy enough to simply filter the problematic results. Thanks!

from genesis.

amstilp avatar amstilp commented on July 17, 2024

Yes, no problem! Thanks for the report. Also useful for other users who might run into the same behavior.

from genesis.

HuaLing1 avatar HuaLing1 commented on July 17, 2024

I've came across the same issue while doing conditional analyses on the same SNP. However, what's really intriguing is it only happens to the snp with MAF of 0.005. While i was doing similar things on some common SNPs, this did not happen. Is this just coincidence or there is a reason behind?

from genesis.

mconomos avatar mconomos commented on July 17, 2024

This happens because of the way that GENESIS uses two steps to perform the association testing: (1) fit the regression model with fitNullModel -- this is where you've included your covariates; (2) perform score tests for each variant with assocTestSingle. If you run a score test for a variant in step 2 after conditioning on a covariate in step 1 that is perfectly collinear, the results of the score test blow up. You shouldn't be able to get a result of that score test, but as mentioned, we don't currently have the bandwidth to implement a fix.

I wanted to make a note about detecting this. As depicted in the original issue, this can often be seen as a very large effect size estimate Est. However, what is actually happening is that the score value (Score) and its standard error (Score.SE) are both very close to 0 (e.g. < 1e-10). When Score and Score.SE are both approximately 0, the effect size estimate (Est) and the test statistic (Score.Stat) are both essentially computed as the ratio 0/0. Depending on the actual values of the score and its se, these ratios can get very big or very small, and consequentially, the p-value for that variant can be either highly significant or very insignificant (i.e. p approximately 1). Therefore, the best way to detect this is to check for variants where both the absolute value of the Score and the Score.SE are very small.

from genesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.