Skip to contents

The default slot is used by default by many functions including GetData,GetTable or FitKinetics

Usage

DefaultSlot(data, value = NULL)

DefaultSlot(data) <- value

Arguments

data

A grandR object

value

the name of the new default slot

Value

Either the name of the default slot for DefaultSlot(data) or the grandR data object having the new default slot

Details

The default slot can be set either by data<-DefaultSlot(data,"norm") or by DefaultSlot(data)<-"norm".

See also

Examples

sars <- ReadGRAND(system.file("extdata", "sars.tsv.gz", package = "grandR"),
                  design=c("Cell",Design$dur.4sU,Design$Replicate))
#> Warning: Duplicate gene symbols (n=1, e.g. MATR3) present, making unique!

DefaultSlot(sars)
#> [1] "count"
sars <- Normalize(sars)     # default behavior is to update the default slot
DefaultSlot(sars)
#> [1] "norm"
DefaultSlot(sars)="count"