# Creation of a file called "genotypes.lfmm" in the working directory,
# with 400 SNPs for 50 individuals.
data("tutorial")
write.lfmm(tutorial.R, "genotypes.lfmm")
# Conversion from the lfmm format ("genotypes.lfmm")
# to the geno format ("genotypes.geno").
# By default, the name of the output file is the same name
# as the input file with a .geno extension.
# Create file: "genotypes.geno".
output = lfmm2geno("genotypes.lfmm")
# Conversion from the lfmm format ("genotypes.lfmm")
# to the geno format with the output file called "plop.geno".
# Create file: "plop.geno".
output = lfmm2geno("genotypes.lfmm", "plop.geno")
# As force = false and the file "genotypes.geno" already exists,
# nothing happens.
output = lfmm2geno("genotypes.lfmm", force = FALSE)
Run the code above in your browser using DataLab