cnfoley / hyprcoloc

R package for performing high dimensional multi-trait colocalization analyses using GWAS summary data
39 stars 10 forks source link

'list' object cannot be coerced to type 'double' #3

Open MiaoranZhang opened 3 years ago

MiaoranZhang commented 3 years ago

Thanks for this excellent package. Well when I use this command res <- hyprcoloc(betas2, ses2, trait.names=traits, snp.id=rsid, trait.subset = c("T1","T2")) I received a error report

my files looks like these str(betas) 'data.frame': 106073 obs. of 2 variables: $ T1: num -0.0206 0.0238 0.0086 0.0306 -0.015 ... $ T2: num 0.03462 0.0854 -0.00517 -0.06531 -0.00654 ... str(ses) 'data.frame': 106073 obs. of 2 variables: $ T1: num 0.0421 0.1032 0.0254 0.0253 0.0425 ... $ T2: num 0.0176 0.0478 0.0102 0.0102 0.0175 ...

MiaoranZhang commented 3 years ago

Error in which.max(labf) : 'list' object cannot be coerced to type 'double'

MiaoranZhang commented 3 years ago

I have worked out that my data format is wrong, it should be a matrix