meltSE | R Documentation |
SummarizedExperiment
object into a long data.framemeltSE
Converts a
SummarizedExperiment
object into a
long data.frame which can be used for tidyverse
-tools.
meltSE(
x,
assay.type = assay_name,
assay_name = "counts",
add.row = add_row_data,
add_row_data = NULL,
add.col = add_col_data,
add_col_data = NULL,
row.name = feature_name,
feature_name = "FeatureID",
col.name = sample_name,
sample_name = "SampleID",
...
)
## S4 method for signature 'SummarizedExperiment'
meltSE(
x,
assay.type = assay_name,
assay_name = "counts",
add.row = add_row_data,
add_row_data = NULL,
add.col = add_col_data,
add_col_data = NULL,
row.name = feature_name,
feature_name = "FeatureID",
col.name = sample_name,
sample_name = "SampleID",
...
)
x |
|
assay.type |
|
assay_name |
Deprecated. Use |
add.row |
|
add_row_data |
Deprecated. Use |
add.col |
|
add_col_data |
Deprecated. Use |
row.name |
|
feature_name |
Deprecated. Use |
col.name |
|
sample_name |
Deprecated. Use |
... |
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 <- meltSE(GlobalPatterns,
assay.type = "counts",
add.row = TRUE,
add.col = TRUE
)
molten_tse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.