Description Usage Arguments Value Author(s) See Also Examples
Write a file in the lfmm
format.
1 | write.lfmm(R, output.file)
|
R |
A matrix containing the genotypes with one line for each individual and one column for each SNP. The missing genotypes have to be encoded with the value 9. |
output.file |
A character string containing a path to the output file,
a genotypic matrix in the |
output.file |
A character string containing a path to the output file,
a genotypic matrix in the |
Eric Frichot
read.lfmm
lfmm.data
lfmm
geno2lfmm
lfmm2geno
ancestrymap2lfmm
ped2lfmm
1 2 3 4 5 6 7 8 9 10 | # Creation of a file called "genotypes.geno" in the working directory,
# with 1000 SNPs for 165 individuals.
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")
|
[1] "genotypes.lfmm"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.