Description Usage Arguments Details Value Author(s) See Also Examples
This function can decrypt Illumina gene expression iDAT
files (aka version 1 iDAT files). It will temporarily
create GenomeStudio-compatible output files, and then run
lumiR
.
1 2 3 4 5 6 7 8 9 10 | lumiR.idat(files = NULL, path = NULL, zipfile = NULL,
clmfile = NULL,
probeID = c("ProbeID", "ArrayAddressID", "Sequence", "NuID"),
manifestfile = NULL,
collapseMode = c("none", "max", "median", "mean"),
backgroundCorrect = FALSE, controls = TRUE,
detectionTh = 0.01, na.rm = TRUE,
parseColumnName = FALSE, checkDupId = TRUE, QC = TRUE,
columnNameGrepPattern = list(exprs = "AVG_SIGNAL", se.exprs = "BEAD_STD", detection = "DETECTION", beadNum = "Avg_NBEADS"),
verbose = FALSE, memory = "-Xmx1024m", ...)
|
controls |
logical: if |
detectionTh |
the p-value threshold of determining
detectability of the expression. See more details in
|
na.rm |
logical: remove |
parseColumnName |
logical: parse the column names and retrieve the sample information? (Assume the sample information is separated by “\_” from the column type, eg “5356583020_A_AVG_Signal”.) |
checkDupId |
logical: check duplicated TargetIDs or ProbeIds? The duplicated ones will be averaged. |
QC |
logical: do quality control assessment after reading in the data? |
columnNameGrepPattern |
list of named
character(1)'s: the grep patterns used to determine which
column name corresponds to which slot. Eg the column
named “AVG_SIGNAL” will be put into the
|
... |
other parameters used by
|
files |
A character vector of at least one file name |
path |
The path to the directories where the files are. This defaults to the current working directory. |
zipfile |
the path to a zip file containing idat
files. This over-rides the |
clmfile |
|
probeID |
This controls which value to identify each probe by. Allowable values are “ArrayAddressID”, “ProbeID”, “Sequence”, “NuID”. |
manifestfile |
The full path to the Array manifest
file in TXT format. See
|
collapseMode |
Collapse probes to genes using the specified mode. Valid values are “none” (the default), “max”, “median” and “mean” (the GenomeStudio default). |
backgroundCorrect |
logical, if TRUE then peform background correction on only the gene-level probes; if FALSE, do no correction. |
verbose |
logical, if |
memory |
The maximum Java memory heapsize. eg: "-Xmx1024m", or "-Xmx4g", which reserves 1GB or 4G of RAM, respectively. default="-Xmx1024m" |
See preprocess.illumina.idat
for more
details on Illumina arrays, manifest files, probeID
naming options, collapsing probes to genes, and
background correcting. Note that lumi provides
lumiB
for doing background correction
(so we usually set backgroundCorrect=FALSE
). Also,
we usually prefer to collapse from probes to genes after:
normalizing, and filtering on probe quality, and
expression level, thus we usually select
collapseMode="none"
.
See lumiR
for more details on all
parameters from detectionTh
onwards.
return a LumiBatch-class
object
Mark Cowley, with contributions from Mark Pinese, David Eby.
preprocess.illumina.idat
lumiR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # iDAT files+path as input
library(lumi)
path <- system.file("extdata", package="lumidat")
files <- c("5356583020_A_Grn.idat", "5356583020_B_Grn.idat")
manifestfile <- system.file("extdata", "HumanHT-12_V3_0_R1_99999999.txt", package="lumidat")
res <- lumiR.idat(files, path, manifestfile=manifestfile, probeID="ProbeID")
res
# zipfile as input
path <- system.file("extdata", package="lumidat")
files <- c("5356583020_A_Grn.idat", "5356583020_B_Grn.idat")
manifestfile <- system.file("extdata", "HumanHT-12_V3_0_R1_99999999.txt", package="lumidat")
zipfile <- tempfile(fileext=".zip")
zip(zipfile, file.path(path, files), flags="-r9Xq")
res <- lumiR.idat(zipfile=zipfile, manifestfile=manifestfile, probeID="ProbeID", verbose=FALSE)
res
# clm file
clmfile <- system.file("extdata", "5356583020.clm", package="lumidat")
res <- lumiR.idat(zipfile=zipfile, manifestfile=manifestfile, probeID="ProbeID", verbose=FALSE, clmfile=clmfile)
sampleNames(res)
# [1] "A" "B"
## Not run:
# Get the Human HT12 V4 manifest file:
manifestfile <- download_illumina_manifest_file("HumanHT-12_V4_0_R2_15002873_B", "txt")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.