| read.phe {GeneticsBase} | R Documentation |
Read '.phe' phenotype file data
read.phe(filename, columns = c("family", "pid"), quiet = FALSE, ...)
read.fbat.phe(filename, columns = c("family", "pid"), quiet = FALSE, ...)
read.pbat.phe(filename, columns = c("family", "pid"), quiet = FALSE, ...)
filename |
Name of the file |
columns |
Column names for the first two columns of a pedigree file. Defaults to "family" and "pid", where "family" is a unique identifier for each family, and "pid" is a unique identifier for each individual. |
quiet |
Logical indicating whether progress display is
suppressed, Defaults to TRUE. |
... |
Additional (optional) parameters provided to function matrix |
A data frame containing the file
Gregory R. Warnes warnes@bst.rochester.edu and Nitin Jain nitin.jain@pfizer.com
# store where we are now
here <- getwd()
# move to the data directory
dir <- file.path(.path.package("GeneticsBase"),"data")
setwd(dir)
# load hapmap chromosome 1 data
xbat <- readGenes(gfile="xbat.ped", gformat="fbat.ped",
pfile="xbat.phe", pformat="fbat.phe")
# look at the data
xbat
# return to the original path
setwd(here)