processAffy
processAffy.RdProcessing pipeline for raw affymetrics array data. Utilizes affy package
Value
List of matrices. Two expression matrices from processed affy object, one of raw data, one of normalized data
Examples
# \donttest{
# Download an Affymetrix dataset
geo_accession <- "GSE6629"
temp_dir <- getwd()
gse_dir <- sprintf("%s/%s", temp_dir, geo_accession)
getSuppFiles(GEO = geo_accession,
makeDirectory = TRUE,
baseDir = temp_dir,
fetch_files = TRUE,
filter_regex = NULL,
download_method = "curl",
unpack = TRUE)
#> [[1]]
#> [1] 0
#>
# Process dataset
affy_output_list <- processAffy(gse_dir)
#> Warning: replacing previous import ‘AnnotationDbi::tail’ by ‘utils::tail’ when loading ‘hgu133plus2cdf’
#> Warning: replacing previous import ‘AnnotationDbi::head’ by ‘utils::head’ when loading ‘hgu133plus2cdf’
#>
#> Background correcting
#> Normalizing
#> Calculating Expression
# Test output
names(affy_output_list) # c("raw_expression", "normalized_expression")
#> [1] "raw_expression" "normalized_expression"
dim(affy_output_list$raw_expression) # c(1354896, 2)
#> [1] 1354896 2
dim(affy_output_list$normalized_expression) # c(54675, 2)
#> [1] 54675 2
# }