Comments (6)
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.
from genesis.
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.
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.
Yes, no problem! Thanks for the report. Also useful for other users who might run into the same behavior.
from genesis.
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.
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)
- ERROR:unused arguments (two.stage = TRUE, norm.option = "all", rescale = "residSD") HOT 2
- Error when running the pcrelate function HOT 2
- High Memory Consumption with Large Dataset in PC-Relate HOT 1
- Conditional analysis HOT 1
- HOW to FIX - PCAir excludes all my SNPs because there is no chromosome information HOT 1
- Error using assocTestAggregate HOT 1
- Issue with PCAir - Segmentation fault (core dumped) HOT 1
- Adding functions to perform meta-analysis HOT 2
- errors trying to use makeSparseMatrix HOT 5
- SPA association tests are incorrect for non-mixed models HOT 1
- `fitted.values` in non-mixed null models are not what we expect
- pcrelateToMatrix slow on 50k samples HOT 10
- fitNullModel doesn't converge when provided a list of matrices with more than 1 matrix HOT 3
- Error in seqVCF2GDS(vcf.files, gds.file, verbose = FALSE) HOT 1
- correctK2() drops samples under specific conditions HOT 1
- Estimate PVE HOT 1
- add check in varCompCI that family is gaussian
- pcrelate REDUCE error while calculating individual AF betas HOT 8
- analysis pipeline for chromosome X HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genesis.