readGeno: read a file in the 'geno' format

Description Usage Arguments Value Author(s) See Also Examples

Description

Read a file in the geno format.

Usage

1
read.geno(input.file)

Arguments

input.file

A character string containing a path to the input file, a genotypic matrix in the geno format.

Value

R

A matrix containing the genotypes with one line for each individual and one column for each SNP.

Author(s)

Eric Frichot

See Also

write.geno geno snmf geno2lfmm lfmm2geno ancestrymap2geno ped2geno vcf2geno

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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.geno".
# Create file:    "genotypes.geno".
write.geno(tutorial.R,"genotypes.geno")

# Read the file "genotypes.geno".
R = read.geno("genotypes.geno")

Example output

[1] "genotypes.geno"
Read 400 items

LEA documentation built on Nov. 8, 2020, 8:19 p.m.