Here is how the data files contained in this package were produced:

1) Download the following files from UCSC to a DOWNLOAD dir:

   ftp://hgdownload.cse.ucsc.edu/goldenPath/ce2/bigZips/
     chromFa.zip (31M)
     upstream1000.zip (307K)
     upstream2000.zip (589K)
     upstream5000.zip (1.4M)

2) Shell commands:

   cd DOWNLOAD
   for i in `ls *.zip` ; do unzip $i ; done
   for i in `ls *.gz` ; do gunzip $i ; done
   R CMD INSTALL BSgenome.Celegans.UCSC.ce2

3) R commands:

   library(BSgenome.Celegans.UCSC.ce2)
   file <- system.file("scripts", "comments.R", package="BSgenome.Celegans.UCSC.ce2")
   source(file)
   buildDataFiles("DOWNLOAD", "DATA", seqnames(Celegans), "", ".fa", seqcomments)
   buildDataFiles("DOWNLOAD", "DATA", mseqnames(Celegans), "", ".fa", mseqcomments, FALSE)

