chr1swallace / coloc

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

Error when running check_dataset #135

Open adoostparast opened 8 months ago

adoostparast commented 8 months ago

Hello,

I am constantly receiving this error once I want to check my data structure:

Error in if (min(p) > warn.minp) warning("minimum p value is: ", format.pval(min(p)), : missing value where TRUE/FALSE needed

I do not have any NAs, and my other data list is perfectly fine. I appreciate if you can give me a heads up on this.

Thank you

xHreinn commented 6 months ago

If beta and varbeta are provided in the dataset the pvalues are calculated as pnorm(-abs(beta/sqrt(varbeta))*2.

If varbeta is zero then NA are produced