Description Usage Arguments Details Value Author(s) Examples
This generic function reports or updates the channels in an object.
1 2 | channelNames(object, ...)
channelNames(object, ...) <- value
|
object |
An S4 object, typically derived from class
|
value |
Replacement value, either a character vector (to re-order existing channel names or a named character vector or list (to change channel names from the vector elements to the corresponding names). |
... |
Additional argument, not currently used. |
channelNames
returns the names of the channels in a defined
order. Change the order using the replacement method with a permuation
of the channel names as value
. Rename channels using the
replacement method with a named list, where the vector elements are a
permutation of the current channels, with corresponding names the new
identifier for the channel.
character
.
Biocore
1 2 3 4 5 6 7 8 9 10 11 | ## channelNames default to alphabetical order of channels
obj <- NChannelSet(
R=matrix(runif(100), 20, 5),
G=matrix(-runif(100), 20, 5))
channelNames(obj)
channelNames(obj) <- c(Gn="G", Rd="R") ## rename
channelNames(obj)
channelNames(obj) <- c("Rd", "Gn") ## reorder
channelNames(obj)
all(assayData(obj)[["Gn"]] <= 0)
all(assayData(obj)[["Rd"]] >= 0)
|
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which, which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
[1] "G" "R"
[1] "Gn" "Rd"
[1] "Rd" "Gn"
[1] TRUE
[1] TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.