cuelee / pleio

17 stars 6 forks source link

several errors when running example.R for the example data sets #27

Open dongwx001 opened 2 months ago

dongwx001 commented 2 months ago

I have successfully run ./pleio.py with the example data sets. But after that, when I run example.R, errors occurred at" pleioplot(snp, traits, rg_matrix, sumstats, pleioin, pleiores, h2, snp_reference)". The information was as follows:pleioplot(snp, traits, rg_matrix, sumstats, pleioin, pleiores, h2, snp_reference) Error in max(h2) : invalid 'type' (list) of argument

class(h2) [1] "list" h2_vector = unlist(h2) # This converts the list to a numeric vector if all elements are numeric. pleioplot(snp, traits, rg_matrix, sumstats, pleioin, pleiores, h2_vector, snp_reference) Error in if (degreeDiff2(theta12, theta21) <= degreeDiff2(theta22, theta21) + : missing value where TRUE/FALSE needed In addition: Warning messages: 1: In min(point1) : no non-missing arguments to min; returning Inf 2: In max(point1) : no non-missing arguments to max; returning -Inf 3: In min(point2) : no non-missing arguments to min; returning Inf 4: In max(point2) : no non-missing arguments to max; returning -Inf

cuelee commented 1 month ago

Hi dongwx001,

Thanks for letting me know this. I will soon investigate on this issue.

Best regards, Cue