chr1swallace / coloc

Repo for the R package coloc
138 stars 44 forks source link

Sample size (N or n) not recognised by coloc.susie #119

Closed ChrisShore closed 1 year ago

ChrisShore commented 1 year ago

When I run coloc.susie on my data, I get the warning:

"WARNING: Providing the sample size (n), or even a rough estimate of n, is highly recommended. Without n, the implicit assumption is n is large (Inf) and the effect sizes are small (close to zero)."

This is despite my data objects being lists including the sample size under the name 'N' (I have also tried naming the sample size 'n'). I have tried forcing 'N' to be the class integer (it was simply numeric before), but I still get the error. check_dataset() returns NULL, indicating everything is okay.

ChrisShore commented 1 year ago

I have realised that I simply needed to add n as a separate argument within runsusie.