View source: R/utils_stdExpr_2_tidyAssay.R
SE2Tidy | R Documentation |
Extract the assay information from a
SummarizedExperiment-class
-object,
transpose it, and and return it as a tidy data frame that contains assay
measurements, feature names, and sample IDs
SE2Tidy(summExperiment, whichAssay = 1)
summExperiment |
A
|
whichAssay |
Because |
This function is designed to extract and transpose a "tall" assay
data frames (where genes or proteins are the rows and patient or tumour
samples are the columns) from a SummarizedExperiment
object.
This function also transposes the row (feature) names to column names and
the column (sample) names to row names via the
TransposeAssay
function.
NOTE: if this function stops working (again), please add a comment here: https://github.com/gabrielodom/pathwayPCA/issues/83
The transposition of the assay in summExperiment
to tidy form,
with the column data (from the colData
slot of the object) appended
as the first columns of the data frame.
# THIS REQUIRES THE SummarizedExperiment PACKAGE.
library(SummarizedExperiment)
data(airway, package = "airway")
airway_df <- SE2Tidy(airway)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.