read.lfmm {LEA} | R Documentation |
lfmm
formatRead a file in the lfmm
format.
read.lfmm(input.file)
input.file |
A character string containing a path to the input file,
a genotypic matrix in the |
R |
A matrix containing the genotypes with one line per individual and one column per SNP. |
Eric Frichot
write.lfmm
lfmm.data
lfmm
geno2lfmm
lfmm2geno
ancestrymap2lfmm
ped2lfmm
# tutorial contains a matrix of genotypes R with 1000 SNPs for 165 individuals. # and a matrix with an environmental variable C. data("tutorial") # write R in a file called "genotypes.lfmm" # Create file: "genotypes.lfmm". write.lfmm(tutorial.R,"genotypes.lfmm") # read the file "genotypes.lfmm". R = read.lfmm("genotypes.lfmm")