Learn R Programming

DECIPHER (version 1.12.0)

Array2Matrix: Create a Matrix Representation of a Microarray

Description

Converts the output of DesignArray into the sparse matrix format used by NNLS.

Usage

Array2Matrix(probes, verbose = TRUE)

Arguments

probes
A set of microarray probes in the format output by DesignArray.
verbose
Logical indicating whether to display progress.

Value

A list specifying the hybridization efficiency of each probe to its potential templates.
i
Element's row index in the sparse matrix.
j
Element's column index in the sparse matrix.
x
Non-zero elements' values representing hybridization efficiencies.
dimnames
A list of two components: the names of each probe, and the names of each template.

Details

A microarray can be represented by a matrix of hybridization efficiencies, where the rows represent each of the probes and the columns represent each the possible templates. This matrix is sparse since microarray probes are designed to only target a small subset of the possible templates.

See Also

DesignArray, NNLS

Examples

Run this code
fas <- system.file("extdata", "Bacteria_175seqs.fas", package="DECIPHER")
dna <- readDNAStringSet(fas)
names(dna) <- 1:length(dna)
probes <- DesignArray(dna)
A <- Array2Matrix(probes)

Run the code above in your browser using DataLab