| readGenes.pfizer {GeneticsBase} | R Documentation |
Read genetics data files that use Pfizer's data format.
readGenes.pfizer(filename, phase=list(F),
format=c("Pivot", "Listing"),...)
filename |
Name of the file in which data is stored |
phase |
see below |
format |
Format of the file to be read, one of "Pivot" or "Listing" |
... |
Additional arguments to function read.table |
The argument phase may be:
a geneSet object
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 Pfizer Data
PfizerExample <- readGenes.pfizer("PfizerExample.txt", format="Listing")
# look at the data
PfizerExample
# return to the original path
setwd(here)