Description Usage Arguments Details Value Author(s) See Also Examples
Search for CDF files in multiple directories.
1 |
chipType |
A |
paths |
A |
recursive |
If |
pattern |
A regular expression file name pattern to match. |
... |
Additional arguments passed to |
Note, the current directory is always searched first, but never recursively (unless it is added to the search path explicitly). This provides an easy way to override other files in the search path.
If paths
is NULL
, then a set of default paths are searched.
The default search path constitutes:
getOption("AFFX_CDF_PATH")
Sys.getenv("AFFX_CDF_PATH")
One of the easiest ways to set system variables for R is to
set them in an .Renviron
file, e.g.
1 2 3 4 | # affxparser: Set default CDF path
AFFX_CDF_PATH=${AFFX_CDF_PATH};M:/Affymetrix_2004-100k_trios/cdf
AFFX_CDF_PATH=${AFFX_CDF_PATH};M:/Affymetrix_2005-500k_data/cdf
|
See Startup
for more details.
Returns a vector
of the full pathnames of the files found.
Henrik Bengtsson
This method is used internally by readCelUnits
() if the CDF
file is not specified.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ##############################################################
if (require("AffymetrixDataTestFiles")) { # START #
##############################################################
# Find a specific CDF file
cdfFile <- findCdf("Mapping10K_Xba131")
print(cdfFile)
# Find the first CDF file (no matter what it is)
cdfFile <- findCdf()
print(cdfFile)
# Find all CDF files in search path and display their headers
cdfFiles <- findCdf(firstOnly=FALSE)
for (cdfFile in cdfFiles) {
cat("=======================================\n")
hdr <- readCdfHeader(cdfFile)
str(hdr)
}
##############################################################
} # STOP #
##############################################################
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.