Closed baltcir1 closed 2 years ago
Some further background on this bug.
it relates to the function read_mlx18_res
e9c11aa addressed the fact that some sim_blq
files and columns were incorrectly process
in this context it was noted that sometimes a subdirectory was added present in the path and sometimes not
logic was introcuded to add the subdirectory if not present
on adding the subdirectory using file.path
no trailing forward slash was present
this caused a subsequent call to dirname
to effectively remove the subdirectory from the path
the fix in ac41c99 invoves appending a trailing forward slash to the subdirectory when appended to a path
It seems to be a bug introduced in v.1.2.4. Problem when reading a PKPD model: ctr = pmx_mlxtran(file_name = "warfarin_PKPDeffect_project.mlxtran", endpoint = 1)
use y1_obsVsPred.txt as obsvspred file . use y1_obsVsPred.txt as obsvspred file. Using simulated BLOQs of Monolix 2018 can cause slight deviations from Monolix plots regarding simulated BLOQs of the DV! Try Monolix 2019 or later for improved ggPMX simulated BLOQ function. use y1_residuals.txt as residuals file . use y1_residuals.txt as residuals file. use predictions_y1.txt as model predictions file . y_residuals file do not exist use y1_fits.txt as finegrid file .
sim_blq
dataset could not be generated,sim_blq_npde_iwres
orsim_blq_y
is missing No data predictions provided for plot abs_iwres_ipred No data predictions provided for plot iwres_ipred No data predictions provided for plot iwres_time No data predictions provided for plot iwres_dens No data predictions provided for plot iwres_qq No data predictions provided for plot npde_time No data predictions provided for plot npde_pred No data predictions provided for plot npde_qq No data predictions provided for plot dv_pred No data predictions provided for plot dv_ipredStrangely, Reader is searching for y_residuals file, while we have 2 endpoints, so the right file is y1_residuals.txt. The Controller is still created, but all plots related to residuals are missing:
R 4.1.0> ctr
pmx object:
I have put in bold above the wrong data files (y_obsVsPred.txt and y_residuals.txt). When trying the same example and syntax with version 1.2.3, it works:
ctr = pmx_mlxtran(file_name = "warfarin_PKPDeffect_project.mlxtran", endpoint = 1) use y1_obsVsPred.txt as obsvspred file . y_obsVsPred file do not exist use y1_residuals.txt as residuals file . y_residuals file do not exist use predictions_y1.txt as model predictions file . use y1_residuals.txt as residuals file. use y1_fits.txt as finegrid file .
sim_blq
dataset could not be generated,sim_blq_npde_iwres
orsim_blq_y
is missingR 3.6.1> ctr
pmx object: