Utility to convert an ExpressionSet
class object
from the "wide" data format to the "long" format via tidyr::pivot_longer()
.
The Biobase package is required for this function.
pivotExpressionSet(eSet)meltExpressionSet(eSet)
A tibble
consisting of the long format
conversion of an ExpressionSet
object.
An ExpressionSet
class object, created using adat2eSet()
.
Stu Field
Other eSet:
adat2eSet()
if (FALSE) { # rlang::is_installed("Biobase")
# subset into a reduced mini-ADAT object
# 10 samples (rows)
# 5 clinical variables and 3 features (cols)
sub_adat <- example_data[1:10, c(1:5, 35:37)]
ex_set <- adat2eSet(sub_adat)
# convert ExpressionSet object to long format
adat_long <- pivotExpressionSet(ex_set)
}
Run the code above in your browser using DataLab