R version 4.5.0 RC (2025-04-04 r88112 ucrt) -- "How About a Twenty-Six" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library("aroma.apd") Loading required package: affxparser aroma.apd v0.7.1 successfully loaded. See ?aroma.apd for help. > library("R.utils") ## Arguments Loading required package: R.oo Loading required package: R.methodsS3 R.methodsS3 v1.8.2 (2022-06-13 22:00:14 UTC) successfully loaded. See ?R.methodsS3 for help. R.oo v1.27.0 (2024-11-01 18:00:02 UTC) successfully loaded. See ?R.oo for help. Attaching package: 'R.oo' The following object is masked from 'package:R.methodsS3': throw The following objects are masked from 'package:methods': getClasses, getMethods The following objects are masked from 'package:base': attach, detach, load, save R.utils v2.13.0 (2025-02-24 21:20:02 UTC) successfully loaded. See ?R.utils for help. Attaching package: 'R.utils' The following object is masked from 'package:affxparser': findFiles The following object is masked from 'package:utils': timestamp The following objects are masked from 'package:base': cat, commandArgs, getOption, isOpen, nullfile, parse, use, warnings > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > # 1. Scan for existing CEL files > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > # a) Scan for CEL files > files <- list.files(pattern="[.](cel|CEL)$") > files <- files[!file.info(files)$isdir] > if (length(files) > 0 && require("affxparser")) { + cat("Create an optimal read map for CEL file:", files[1], "\n") + cdffile <- findCdf(readCelHeader(files[1])$chiptype) + res <- cdfToApdMap(cdffile) + + cat("Converting CEL file to APD file:", files[1], "\n") + apdfile <- celToApd(files[1]) + cat("Created APD file:", apdfile, "\n") + file.remove(apdfile) + + cat("Converting CEL file to APD file with an optimized read map:", files[1], "\n") + apdfile <- celToApd(files[1], mapType=res$mapType) + cat("Created APD file:", apdfile, "\n") + + writeMap <- invertMap(res$readMap) + for (file in files[-1]) { + cat("Converting CEL file to APD file with an optimized read map:", file, "\n") + apdfile <- celToApd(file, mapType=res$mapType, writeMap=writeMap) + cat("Created APD file:", apdfile, "\n") + } + } # if (length(files) > 0) > > proc.time() user system elapsed 0.21 0.07 0.28