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
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