kbroman / qtl

R/qtl: A QTL mapping environment
https://rqtl.org
GNU General Public License v3.0
77 stars 45 forks source link

stepwiseqtl has problems with X chr and sex covariate #93

Closed kbroman closed 3 years ago

kbroman commented 3 years ago

stepwiseqtl() seems to get messed up with X chr QTL if sex (or presumably cross direction) are included as covariates. I think it has to do with the treatment of the null LOD when X chr QTL are included versus not.

Solution is maybe to force inclusion of null covariates like sex and cross direction whenever the X chr is included among the chromosomes being searched.

kbroman commented 3 years ago

Fixed in this commit