createProbeCoords {biocDatasets} | R Documentation |
Create probe coordinates
Description
Create probe coordinates
Usage
createProbeCoords(nrows, ncols,
meta_nrows = 1, meta_ncols = 1,
meta_padding = 5)
Arguments
nrows |
Number of rows per sub-array |
ncols |
Number of columns per sub-array |
meta_nrows |
Number of sub-arrays per row |
meta_ncols |
Number of sub-arrays per column |
meta_padding |
Padding between sub-arrays |
Value
A data.frame
of columns:
row |
row position within the sub-array |
col |
column position within the sub-array |
metarow |
sub-array index in the row |
metacol |
sub-array index in the column |
x |
fictitious x coordinate |
y |
fictitious y coordinate |
Examples
# array with 10,000 probes
one_plex <- createProbeCoords(100, 100)
plot(y ~ x, data=one_plex, pch=".",
main = "array 1x10k")
# 4x2.5k array
four_plex <- createProbeCoords(50, 50, 2, 2)
plot(y ~ x, data=four_plex, pch=".",
main = "array 4x2.5k")
[Package
biocDatasets version 1.0.0
Index]