Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message from frem #254

Open
eniclas opened this issue Oct 26, 2023 · 0 comments
Open

Error message from frem #254

eniclas opened this issue Oct 26, 2023 · 0 comments

Comments

@eniclas
Copy link
Collaborator

eniclas commented Oct 26, 2023

I get this error when I run frem-5.3.0

N$ frem run24.mod -mu -no-rescale -dir=frem24-test1.dir -no-estimate_covariates -skip_omegas=1,2 -cov=WT,HT,AGE,CRCL -nm_version=75_mpi -nodes=12
Running dummy model to filter data and add FREMTYPE for FREM data set
Starting 1 NONMEM executions. 1 in parallel.
S:1 ..
All executions started.
F:1 .. Evaluating model 2
Starting 1 NONMEM executions. 1 in parallel.
S:1 ..
All executions started.
F:1 .. Evaluating model 3
Starting 1 NONMEM executions. 1 in parallel.
S:1 ..
All executions started.
F:1 .. /opt/noarch/psn/psn-5.3.0/PsN_5_3_0/pyvenv/lib64/python3.9/site-packages/pharmpy/plugins/nonmem/model.py:554: UserWarning: The parameter names {GENO3, GENO4} are also names of variables in the model code. Falling back to the in naming scheme config names for these.
warnings.warn(
Traceback (most recent call last):
File "/opt/noarch/psn/psn-5.3.0/PsN_5_3_0/pyvenv/bin/psn-pharmpy-wrapper", line 8, in
sys.exit(pharmpy_wrapper())
File "/opt/noarch/psn/psn-5.3.0/PsN_5_3_0/pyvenv/lib64/python3.9/site-packages/pharmpy/tools/psn_helpers.py", line 145, in pharmpy_wrapper
exec(args[0], globals(), locs)
File "", line 1, in
File "/opt/noarch/psn/psn-5.3.0/PsN_5_3_0/pyvenv/lib64/python3.9/site-packages/pharmpy/tools/frem/tool.py", line 78, in update_model3b_for_psn
model3b = create_model3b(model1b, model3, int(ncovs))
File "/opt/noarch/psn/psn-5.3.0/PsN_5_3_0/pyvenv/lib64/python3.9/site-packages/pharmpy/tools/frem/models.py", line 49, in create_model3b
parcov_inits = calculate_parcov_inits(model3, ncovs)
File "/opt/noarch/psn/psn-5.3.0/PsN_5_3_0/pyvenv/lib64/python3.9/site-packages/pharmpy/tools/frem/models.py", line 17, in calculate_parcov_inits
eta_corr = ie[rvs].corr()
TypeError: 'NoneType' object is not subscriptable
The model file model_3b.mod in /share/Projects/Pharmetheus/PMX-REP-PMX-2/Analysis/Model/SimVal/frem24-test1.dir/m1/ does not exist. at /opt/noarch/psn/psn-5.3.0/PsN_5_3_0/tool/frem.pm line 2257.

The model file already implements models for GENO1, GENO3 and GENO4 but they are not included in the frem model (see below).

The same model works fine in PsN 4.9.0.

$PROBLEM run 1
$INPUT NO ID STUDYID TAD TIME DAY AMT RATE ODV DV EVID BLQ DOSE
FOOD FORM TYPE WT HT AGE SEX RACE ETHNIC GENO SMOK AST ALT
BILI BMI CRCL NCI NCIL RACEL RACEL1 RACEL2 RACEL3 GENO1
GENO2 GENO3 GENO4
$DATA ../../ProducedData/Dataset/DAT-1-MI-PMX-2.csv
IGNORE=@ IGNORE(TYPE.EQN.2) IGNORE(BLQ.EQN.1)
IGNORE=(ID.EQN.895)
$SUBROUTINE ADVAN2 TRANS2
$PK
;;; FRELGENO4-DEFINITION START
IF(GENO4.EQ.0.0000E+00) FRELGENO4 = 1 ; Most common
IF(GENO4.EQ.1.0000E+00) FRELGENO4 = ( 1 + THETA(13))
;;; FRELGENO4-DEFINITION END

;;; FRELFORM-DEFINITION START
IF(FORM.EQ.1.0000E+00) FRELFORM = 1 ; Most common
IF(FORM.EQ.0.0000E+00) FRELFORM = ( 1 + THETA(12))
;;; FRELFORM-DEFINITION END

;;; FREL-RELATION START
FRELCOV = FRELGENO4
FRELCOVTIME = FRELFORM
;;; FREL-RELATION END

;;; CLFOOD-DEFINITION START
IF(FOOD.EQ.1.0000E+00) CLFOOD = 1 ; Most common
IF(FOOD.EQ.0.0000E+00) CLFOOD = ( 1 + THETA(11))
;;; CLFOOD-DEFINITION END

CLWT = (WT/75)**THETA(2)
CLGENO1 = 1
CLGENO2 = 1
CLGENO3 = 1
CLGENO4 = 1
IF(GENO1.EQ.1) CLGENO1 = (1+THETA(8))
IF(GENO3.EQ.1) CLGENO3 = (1+THETA(9))
IF(GENO4.EQ.1) CLGENO4 = (1+THETA(10))

;;; CL-RELATION START
CLCOVTIME = CLFOOD
CLCOV = CLGENO1CLGENO2CLGENO3*CLGENO4
;;; CL-RELATION END

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant