Description Usage Arguments Value Author(s) See Also Examples
A function that converts from the ped
format to the
geno
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
ped
geno
ancestrymap2lfmm
ancestrymap2geno
geno2lfmm
ped2lfmm
vcf2geno
lfmm2geno
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Creation of a file called "example.ped"
# with 4 SNPs for 3 individuals.
data("example_ped")
write.table(example_ped,"example.ped",
col.names = FALSE, row.names = FALSE, quote = FALSE)
# Conversion from the ped format ("example.ped")
# to the geno format ("example.geno").
# By default, the name of the output file is the same name
# as the input file with a .geno extension.
# Create file: "example.geno".
output = ped2geno("example.ped")
# Conversion from the ped format ("example.ped")
# to the geno format with the output file called "plop.geno".
# Create file: "plop.geno".
output = ped2geno("example.ped", "plop.geno")
# As force = false and the file "example.geno" already exists,
# nothing happens.
output = ped2geno("example.ped", force = FALSE)
|
- number of detected individuals: 3
- number of detected loci: 4
- number of detected individuals: 3
- number of detected loci: 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.