Commit 444e2f1e authored by zhanxw's avatar zhanxw
Browse files

fix #34, zero af in famscore

parent 47c64ea3
2017-06-13 Xiaowei Zhan <zhanxw@bunny.swmed.edu>
* Fix a bug related Wald test outputs (fix #30)
* Fix zero af in famscore (fix #34)
2017-06-09 Xiaowei Zhan <zhanxw@fantasia.csgstat.sph.umich.edu>
......
......@@ -567,7 +567,8 @@ class SingleVariantFamilyScore : public ModelFitter {
*dc->getKinshipSForAuto())
? true
: false);
af = model.GetAF(*dc->getKinshipUForAuto(), *dc->getKinshipSForAuto());
af = model.GetAF(*dc->getKinshipUForAuto(), *dc->getKinshipSForAuto(),
dc->getGenotype());
u = model.GetUStat();
v = model.GetVStat();
pvalue = model.GetPvalue();
......@@ -659,7 +660,8 @@ class SingleVariantFamilyLRT : public ModelFitter {
model.TestCovariate(cov, phenotype, genotype,
*dc->getKinshipUForAuto(),
*dc->getKinshipSForAuto()));
af = model.GetAF(*dc->getKinshipUForAuto(), *dc->getKinshipSForAuto());
af = model.GetAF(*dc->getKinshipUForAuto(), *dc->getKinshipSForAuto(),
dc->getGenotype());
nullLogLik = model.GetNullLogLikelihood();
altLogLik = model.GetAltLogLikelihood();
pvalue = model.GetPvalue();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment