kbroman / qtl

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

pull.rf gives error with duplicate marker names #91

Closed kbroman closed 3 years ago

kbroman commented 3 years ago

Should give a better warning, or do something to avoid this:

data(hyper)
colnames(hyper$geno[[1]]$data)[2] <- colnames(hyper$geno[[1]]$data)[3]
names(hyper$geno[[1]]$map)[2] <- names(hyper$geno[[1]]$map)[3]

out <- est.rf(hyper)
pull.rf(out)
Error in `.rowNamesDF<-`(x, value = value) : 
  duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique value when setting 'row.names': ‘D1Mit156’