Error in y[, k] * w : non-numeric argument to binary operator
In addition: Warning message:
In if (class(constraints) != "NULL") { :
Error in y[, k] * w : non-numeric argument to binary operator
I am trying to use my ancestry coefficients estimated in ENTROPY. I don't know what might be the issue. The file is a "matrix" "array" like the A_thaliana_chr1.geno example but they are in decimal format not scientific. here is my code.
### a raster grid is needed to visualize admixture coefficients across the landscape
asc.raster="http://membres-timc.imag.fr/Olivier.Francois/RasterMaps/North_America.asc"
grid=createGridFromAsciiRaster(asc.raster)
constraints=getConstraintsFromAsciiRaster(asc.raster,cell_value_min = 0)
### Use maps function to preform interpoltation of ancestry coefficients
maps(matrix = qmatrix.AT, long.lat, grid, constraints, method = "max",
main = "Ancestry coefficients", xlab = "Longitude", cex = .5)
Hello,
I have recieved an error
I am trying to use my ancestry coefficients estimated in ENTROPY. I don't know what might be the issue. The file is a "matrix" "array" like the A_thaliana_chr1.geno example but they are in decimal format not scientific. here is my code.
any suggestions?
Thanks for the help.