MRCIEU / gwasglue

Linking GWAS data to analytical tools in R
Other
117 stars 39 forks source link

traits should have the same length with column numbers of z in coloc_to_gassocplot function. #39

Open gahoo opened 6 months ago

gahoo commented 6 months ago

Since z only have two columns, traits should be a vector of two. So I think there should be a unique function in L70 :

traits <- unique(c(coloclist[["dataset1"]][["id"]], coloclist[["dataset2"]][["id"]]))
names(z) <- traits