userGWAS error: ReorderModel not found

24 views
Skip to first unread message

Paris Huynh

unread,
Aug 19, 2026, 5:28:48 PMAug 19
to Genomic SEM Users
Hello,

Firstly, thank you very much for your work on the package!

I am reaching out because I came across a problem when running my model on the cluster. 
Error in userGWAS(covstruc = covstruc, SNPs = SNPs, estimation = "DWLS",  :
  object 'ReorderModel' not found
Calls: userGWAS -> .rearrange -> rownames -> %||% -> inspect

My model is:
model <- "F1=~ NA*ANX+MDD+PTSD
F2=~ NA*ANO+OCD+TS
F3=~ NA*ALC+CUD
F4=~ NA*BIP+SCZ
F5=~ NA*ADHD+ASD

P =~ NA*F1+F2+F3+F4+F5

F1 ~ SNP
F2 ~ SNP
F3 ~ SNP
F4 ~ SNP
F5 ~ SNP
P ~ SNP
"

sub<- c("F1~SNP","F2~SNP","F3~SNP","F4~SNP","F5~SNP","P~SNP")

parallel <- TRUE

Q_SNP <- TRUE

P_GWAS <- userGWAS(covstruc=covstruc, SNPs=SNPs, estimation = "DWLS", model=model,sub=sub,parallel=parallel,smooth_check=TRUE,Q_SNP=Q_SNP,fix_measurement=FALSE)

I noticed in a previous email (https://groups.google.com/g/genomic-sem-users/c/c0kZQqwBgYY/m/tzJ_foPVAAAJ), Andrew had discussed this problem. I added the code to the model but had the same error message that object 'ReorderModel' not found...
F1~~1*F1
F2~~1*F2
F3~~1*F3
F4~~1*F4
F5~~1*F5
P~~1*P

I would really appreciate any help that you can provide with the problem. Thank you very much.

Warm wishes,

Paris

Elliot Tucker-Drob

unread,
Aug 19, 2026, 7:48:14 PMAug 19
to Paris Huynh, Genomic SEM Users
Did you see the message that I sent about compatibility issues with the new lavaan version?  That may be the problem. 

--
You received this message because you are subscribed to the Google Groups "Genomic SEM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to genomic-sem-us...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/genomic-sem-users/c245f424-3e86-4800-b59e-b28cd3b7c457n%40googlegroups.com.

Paris Huynh

unread,
Aug 20, 2026, 2:32:23 PMAug 20
to Genomic SEM Users
Thank you Tucker-Drob for your guidance! I downgraded to lavaan version 0.6-21 and it resolved the issue. Much appreciated!!
Reply all
Reply to author
Forward
0 new messages