View source: R/processNimblegenArrays.R
| loadSampleDirectory | R Documentation |
Reads all files in Nimblegen pair format within the specified directory, returning log2 intensities of probes referenced by the supplied ndf data frame.
loadSampleDirectory(path = NULL, ndf = NULL, what="Cy3", ncols = 768)
path |
the directory containing the pair files to be read. |
ndf |
a data frame produced by |
what |
specifies the channel(s) to be read in - either |
ncols |
the number of columns of probes on the array - must be the same value as used in |
Reads in intensities of all arrays contained within path. The parameter what determines which fluorescent channels are read, and how the are returned.
Cy3 and Cy5 return the log2 intensity of the specified single channel.
Cy3/Cy5 and Cy5/Cy3 return the log2 ratio of the two channels.
Cy3andCy5 and Cy5andCy3 return the log2 intensity of both channels in separate columns of the matrix.
a matrix of log2 intensites, with the same number of rows as the supplied ndf and depending on the value of what either one or two columns per array.
Aaron Statham
loadPairFile for reading a single pair files. processNDF
# Not run
#
## Read in the NDF file
# ndfAll <- processNDF("080310_HG18_chr7RSFS_AS_ChIP.ndf")
#
## Subset the NDF to only probes against chromosomes
# ndf <- ndfAll[grep("^chr", ndfAll$chr),]
#
## Read in a directory of pair files, returning both the Cy3 and Cy5 fluorescence in separate columns
# arrayIntensities <- loadSampleDirectory("Arrays", ndf, what="Cy3andCy5")
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.