Closed a-jartseva closed 3 years ago
Hello,
I found a bug in the fit_model function, which only reveals itself if one tries to use some other name for the trainset variable.
fit_model
trainset
Here: https://github.com/bioinform/ecTMB/blob/abf9b3722b3688ac9857bbf3b3166ee3fc8a3ed1/R/stats.R#L412-L417 Instead of trainset in the CalTMB function calls (both the first argument and the sampleN), the argument should be Data, so that it refers to the argument specified in the fit_model function call.
sampleN
Data
It will be great if you fix it in the next release!
Best wishes, Aleksandra
Thanks. It is fixed.
Best Lijing
Hello,
I found a bug in the
fit_model
function, which only reveals itself if one tries to use some other name for thetrainset
variable.Here: https://github.com/bioinform/ecTMB/blob/abf9b3722b3688ac9857bbf3b3166ee3fc8a3ed1/R/stats.R#L412-L417 Instead of
trainset
in the CalTMB function calls (both the first argument and thesampleN
), the argument should beData
, so that it refers to the argument specified in thefit_model
function call.It will be great if you fix it in the next release!
Best wishes, Aleksandra