jrs95 / hyprcoloc

Hypothesis Prioritisation in multi-trait Colocalization
https://jrs95.github.io/hyprcoloc/
GNU General Public License v3.0
46 stars 12 forks source link

Error when running hyprcoloc: #25

Closed marcora closed 1 year ago

marcora commented 1 year ago

I have no problems running hyprcoloc with the example dataset, but when applying to my dataset I get the following error:

trait.names = colnames(betas)
snp.id = rownames(betas)
binary.outcomes = c(0,1,0)

res = hyprcoloc(betas, ses, trait.names = trait.names, snp.id = snp.id, binary.outcomes = binary.outcomes, snpscores = TRUE)
Error in which.max(labf) :
  'list' object cannot be coerced to type 'double'

I have attached rds files for betas and ses.

data.zip

Thanks in advance for your help and consideration.

marcora commented 1 year ago

My bad! Did not realize hyprcoloc requires matrices (and not dataframes) as betas and ses inputs.