rvtests icon indicating copy to clipboard operation
rvtests copied to clipboard

bgen logistic regression gives wrong results

Open winkusch opened this issue 6 years ago • 5 comments
trafficstars

Hi !

when running rvtests --single wald with UK biobank bgen files as input and binary oucomes, I am getting results that differ completely from other GWAS tools that allow to perform logistic regression with wald test and the bgen files.

The code I am using is rvtest --inBgen test.bgen --inBgenSample test.sample --pheno test.ped --pheno-name y12 --covar test.ped --covar-name age,sex01 --single wald --out test.out

Please note that the pheno file contains many missing values for the outcome and/or covariates.

Is this a known issue? I hope this can be solved soon - otherwise many analysts may produce erroro prone results.

Thanks!

Best, Thomas

winkusch avatar Nov 25 '18 19:11 winkusch

Small addition:

When adding --peopleIncludeFile test.samples to the command, this always gives a segmentation fault.

Is there an issue with loading samples from bgen files?

Best, Thomas

winkusch avatar Nov 25 '18 20:11 winkusch

Can you please provide more details on input files:

test.bgen, test.sample, test.ped

If you can provide these files, I will debug to find out the exact problem.

zhanxw avatar Dec 06 '18 05:12 zhanxw

I have just sent the data to you via e mail. I hope it can be solved. Thanks!

winkusch avatar Dec 06 '18 10:12 winkusch

Under investigation now. I will update here later.

zhanxw avatar Dec 06 '18 23:12 zhanxw

Fixed in https://github.com/zhanxw/rvtests/commit/ff46d0af7ad49c5a81a2fad5a6a36801ff1b0854 and in master branch.

zhanxw avatar Dec 23 '18 21:12 zhanxw