Description Usage Arguments Details Value Author(s) Examples
Reshape a matrix so that a set of consecutive rows becomes a single row in the output.
1 | unwrapdups(M,ndups=2,spacing=1)
|
M |
a matrix. |
ndups |
number of duplicate spots. The number of rows of M must be divisible by |
spacing |
the spacing between the rows of |
This function is used on matrices corresponding to a series of microarray experiments. Rows corresponding to duplicate spots are re-arranged to that all values corresponding to a single gene are on the same row. This facilitates fitting models or computing statistics for each gene.
A matrix containing the same values as M
but with fewer rows and more columns by a factor of ndups
.
Each set of ndups
rows in M
is strung out to a single row so that duplicate values originally in consecutive rows in the same column are in consecutive columns in the output.
Gordon Smyth
1 2 3 4 | M <- matrix(1:12,6,2)
unwrapdups(M,ndups=2)
unwrapdups(M,ndups=3)
unwrapdups(M,ndups=2,spacing=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.