Description Usage Arguments Value Author(s) See Also Examples
A function that converts from the geno
format to the
lfmm
format.
1 |
input.file |
A character string containing a path to the input file,
a genotypic matrix in the |
output.file |
A character string containing a path to the output file,
a genotypic matrix in the |
force |
A boolean option. If FALSE, the input file is converted only if the output file does not exist. If TRUE, convert the file anyway. |
output.file |
A character string containing a path to the output file,
a genotypic matrix in the |
Eric Frichot
lfmm.data
geno
ancestrymap2lfmm
ancestrymap2geno
ped2lfmm
ped2geno
vcf2geno
lfmm2geno
read.geno
write.geno
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Creation of a file called "genotypes.geno" in the working directory
# with 400 SNPs for 50 individuals.
data("tutorial")
write.geno(tutorial.R, "genotypes.geno")
# Conversion from the geno format ("genotypes.geno")
# to the lfmm format ("genotypes.lfmm").
# By default, the name of the output file is the same name
# as the input file with a .lfmm extension.
# Create file: "genotypes.lfmm".
output = geno2lfmm("genotypes.geno")
# Conversion from the geno format ("genotypes.geno")
# to the lfmm format with the output file called "plop.lfmm".
# Create file: "plop.lfmm".
output = geno2lfmm("genotypes.geno", "plop.lfmm")
# As force = false and the file "genotypes.lfmm" already exists,
# nothing happens.
output = geno2lfmm("genotypes.geno", force = FALSE)
|
[1] "genotypes.geno"
- number of detected individuals: 50
- number of detected loci: 400
- number of detected individuals: 50
- number of detected loci: 400
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.