verena-zuber / demo_AMD

MIT License
32 stars 13 forks source link

codes problem #1

Closed zqcrystal325 closed 5 years ago

zqcrystal325 commented 5 years ago

Hi, guys When I run with the codes:

amd_nmr_input=new("mvMRInput", betaX = as.matrix(betaX_ivw), betaY = as.matrix(amd_beta_ivw), snps=rs, exposure=rf, outcome = "amd")

and I got the error bellow: Error in getClass(Class, where = topenv(parent.frame())) : “mvMRInput” is not a defined class

Do you know how to solve this? Thanks

zqcrystal325 commented 5 years ago

Never mind, I got this!

verena-zuber commented 5 years ago

So sorry for the late reply. The class is defined as

setClass("mvMRInput", representation(betaX = "matrix", betaY = "matrix", betaXse = "matrix", betaYse = "matrix", exposure = "character", outcome = "character", snps = "character", effect_allele = "character", other_allele = "character", eaf = "numeric",
correlation = "matrix") )

Please let us know if you have any other issues.