meltAssay | R Documentation |
SummarizedExperiment
object into a long data.framemeltAssay
Converts a
SummarizedExperiment
object into a
long data.frame which can be used for tidyverse
-tools.
meltAssay(
x,
assay.type = assay_name,
assay_name = "counts",
add_row_data = NULL,
add_col_data = NULL,
feature_name = "FeatureID",
sample_name = "SampleID",
...
)
## S4 method for signature 'SummarizedExperiment'
meltAssay(
x,
assay.type = assay_name,
assay_name = "counts",
add_row_data = NULL,
add_col_data = NULL,
feature_name = "FeatureID",
sample_name = "SampleID",
...
)
x |
A numeric matrix or a
|
assay.type |
a |
assay_name |
a single |
add_row_data |
|
add_col_data |
|
feature_name |
a |
sample_name |
a |
... |
optional arguments:
|
If the colData
contains a column “SampleID” or the
rowData
contains a column “FeatureID”, they will be renamed to
“SampleID_col” and “FeatureID_row”, if row names or column
names are set.
A tibble
with the molten data. The assay values are given in a
column named like the selected assay assay.type
. In addition, a
column “FeatureID” will contain the rownames, if set, and analogously
a column “SampleID” with the colnames, if set
Sudarshan A. Shetty
data(GlobalPatterns)
molten_tse <- meltAssay(GlobalPatterns,
assay.type = "counts",
add_row_data = TRUE,
add_col_data = TRUE
)
molten_tse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.