cayek / TESS3

[DEPRECATED]
GNU General Public License v2.0
8 stars 3 forks source link

maps error #4

Open jmhallas opened 3 years ago

jmhallas commented 3 years ago

Hello,

I have recieved an error

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)

any suggestions?

Thanks for the help.

zmq123zmq commented 11 months ago

Hello,

I have recieved an error, please help me.

maps(matrix = Q(q.matrix, K = 6, run = 1 ), coord = coordinates,

Error in if (class(constraints) != "NULL") { : the condition has length > 1