sampleLabels | R Documentation |
sampleLabels
gets or sets the labels and colors of CAGE datasets
(samples) from CAGEr
objects.
sampleList
is an accessory function for convenience
iteration in functions such as lapply
or mapply
.
There is no set method for sampleList
.
sampleLabels(object)
## S4 method for signature 'CAGEexp'
sampleLabels(object)
## S4 method for signature 'CTSS'
sampleLabels(object)
sampleList(object)
## S4 method for signature 'CAGEr'
sampleList(object)
sampleLabels(object) <- value
## S4 replacement method for signature 'CAGEexp'
sampleLabels(object) <- value
## S4 replacement method for signature 'CTSS'
sampleLabels(object) <- value
object |
A CAGEr object. |
value |
A character vector with a unique and valid name for each sample.
The |
In CAGEexp
objects, renaming samples is possible only before
data is loaded.
sampleLabels
returns a named character vector representing labels of all
CAGE datasets present in the CAGEr object. The vector values are the labels and the
vector names are the colors.
sampleList
returns a named list where elements and their
names are the sample names, for instance: list(sampleA = "sampleA",
sampleB = "sampleB")
. Thus, after iterating on it with lapply
, the
element names will be sample names.
If no colors are supplied, then default colors will be assigned
usign the rainbow
function. Assigned colors are not guaranteed
to be stable.
Vanja Haberle
Charles Plessy
setColors
Other CAGEr accessor methods:
CTSScoordinatesGR()
,
CTSScumulativesTagClusters()
,
CTSSnormalizedTpmDF()
,
CTSStagCountDF()
,
GeneExpDESeq2()
,
GeneExpSE()
,
consensusClustersGR()
,
expressionClasses()
,
filteredCTSSidx()
,
genomeName()
,
inputFiles()
,
inputFilesType()
,
librarySizes()
,
seqNameTotalsSE()
,
tagClustersGR()
Other CAGEr setter methods:
genomeName()
,
inputFiles()
,
inputFilesType()
,
setColors()
sampleLabels(exampleCAGEexp)
sampleList(exampleCAGEexp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.