| readIntensities | R Documentation |
readIntensities reads image ‘intensity’ files (such as
Illumina's _int.txt and (optionally) _nse.txt) into a
single object.
readIntensities(dirPath, pattern=character(0), ...)
dirPath |
Directory path or other object (e.g.,
|
pattern |
A length 1 character vector representing a regular
expression to be combined with |
... |
Additional arguments used by methods. |
Additional methods are defined on specific classes, see, e.g.,
SolexaPath.
The readIntensities,character-method contains an argument
type that determines how intensities are parsed. Use the
type argument to readIntensities,character-method, as
described below. All readIntensities,character methods accepts
the folling arguments:
Include estimates of variability (i.e., from
parsing _nse files).
Report on progress when starting to read each file.
The supported types and their signatures are:
type="RtaIntensity"Intensities are read from Illumina _cif.txt and
_cnf.txt-style files. The signature for this method is
dirPath, pattern=character(0), ..., type="RtaIntensity",
lane=integer(0), cycles=integer(0), cycleIteration=1L,
tiles=integer(0),
laneName=sprintf("L
cycleNames=sprintf("C
tileNames=sprintf("s_
posNames=sprintf("s_
withVariability=TRUE, verbose=FALSE
integer(1) identifying the lane in which
cycles and tiles are to be processed.
integer() enumerating cycles to be
processed.
integer(1) identifying the
iteration of the base caller to be summarized
integer() enumerating tile numbers to be
summarized.
character() vectors identifying the lane and
cycle directories, and the ‘pos’ and tile file names
(excluding the ‘.cif’ or ‘.cnf’ extension) to be
processed.
The dirPath and pattern arguments are combined as
list.files(dirPath, pattern), and must identify a single
directory. Most uses of this function will focus on a single tile
(specified with, e.g., tiles=1L); the laneName,
cycleNames, tileNames, and posNames
parameters are designed to work with the default Illumina pipeline
and do not normally need to be specified.
type="IparIntensity"Intensities are read from Solexa _pos.txt,
_int.txt.p, _nse.txt.p-style file triplets. The
signature for this method is
dirPath, pattern=character(0), ...,
type="IparIntensity",
intExtension="_int.txt.p.gz",
nseExtension="_nse.txt.p.gz",
posExtension="_pos.txt",
withVariability=TRUE, verbose=FALSE
Files to be parsed are determined as, e.g., paste(pattern,
intExtension, sep="").
type="SolexaIntensity"Intensities are read from Solexa _int.txt and
_nse.txt-style files. The signature for this method is
dirPath, pattern=character(0), ...,
type="SolexaIntensity",
intExtension="_int.txt",
nseExtension="_nse.txt",
withVariability=TRUE, verbose=FALSE
Files to be parsed are determined as, e.g., paste(pattern,
intExtension, sep="").
An object derived from class Intensity.
Martin Morgan <mtmorgan@fhcrc.org>, Michael Muratet <mmuratet@hudsonalpha.org> (RTA).
fl <- system.file("extdata", package="ShortRead")
sp <- SolexaPath(fl)
int <- readIntensities(sp)
int
intensity(int)[1,,] # one read
intensity(int)[[1:2,,]] # two reads, as 'array'
head(rowMeans(intensity(int))) # treated as 'array'
head(pData(readIntensityInfo(int)))
## Not run: ## RTA Lane 2, cycles 1:80, cycle iteration 1, tile 3
int <- readIntensities("Data/Intensities", type="RtaIntensity",
lane=2, cycles=1:80, tiles=3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.