powered by
The script extracts the SNP data from the gl object as a matrix and transposes it to comply with the format expected by stockR.
gl.stockR(x, verbose = 2)
-- name of the genlight object containing SNP genotypes [required]
-- verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2]
A matrix with the SNP scores in the form expected by stockR
The script returns the transposed SNP matrix
# NOT RUN { gl <- gl.stockR(testset.gl) # }
Run the code above in your browser using DataLab