read.pedfile(file, first.row = NA, coded = NULL, naVal = 0, sep = " ", p2g = FALSE, non.rs.IDs = FALSE, cols4ID=FALSE)
file
also contains data for a subject.
If FALSE
, the first row is assumed to contain the SNP names. By default, read.pedfile
tries
to figure out automatically if the first column contains the SNP names or data for a subject.
"12"
,
"AB"
, "1234"
, "ATCG"
. For details, see ped2geno
. By default, read.pedfile
tries to figure out automatically how the alleles are coded.
file
are separated. Ignored
if first.row = TRUE
.
FALSE
,
a data frame in ped format is returned. Otherwise, ped2geno
is called within read.pedfile
to transform
the data frame into a matrix in genotype format, and the matrix is returned.
FALSE
, the individual IDs are used as the row names of the output matrix.
p2g = FALSE
), or a matrix in genotype format (if p2g = TRUE
).
ped2geno