kbroman / qtl

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

switch.alleles should give error with results of markerlrt #98

Closed kbroman closed 2 years ago

kbroman commented 2 years ago

The function switchAlleles() is expecting the results of est.rf(). If it is run with a cross that has the results of markerlrt(), the results are not meaningful. It should give an error.

Look for an attribute "onlylod" in the cross$rf object. If non-null and TRUE, stop with an error.

kbroman commented 2 years ago

Actually, it's checkAlleles() that needs to be revised.

And rather than stop with an error, I'd re-run est.rf().