Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

SomaDataIO (version 6.2.0)

pivotExpressionSet: Convert to Long Format

Description

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.

Usage

pivotExpressionSet(eSet)

meltExpressionSet(eSet)

Value

A tibble consisting of the long format conversion of an ExpressionSet object.

Arguments

eSet

An ExpressionSet class object, created using adat2eSet().

Functions

  • meltExpressionSet(): [Superseded]. Please now use pivotExpressionSet().

Author

Stu Field

See Also

Other eSet: adat2eSet()

Examples

Run this code
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