Description Usage Arguments Details Value Examples
View source: R/utils_transpose_assay.R
Transpose an object of class data.frame
that contains
assay measurements while preserving row (feature) and column (sample)
names.
1 2 3 4 5 | TransposeAssay(
assay_df,
omeNames = c("firstCol", "rowNames"),
stringsAsFactors = FALSE
)
|
assay_df |
A data frame with numeric values to transpose |
omeNames |
Are the data feature names in the first column or in the row
names of |
stringsAsFactors |
Should columns containing string information be
coerced to factors? Defaults to |
This function is designed to transpose "tall" assay data frames (where genes or proteins are the rows and patient or tumour samples are the columns). This function also transposes the row (feature) names to column names and the column (sample) names to row names. Notice that all rows and columns (other than the feature name column, as applicable) are numeric.
Recall that data frames require that all elements of a single column to
have the same class
. Therefore, sample IDs of a "tall" data
frame must be stored as the column names rather than in the
first row.
The transposition of df
, with row and column names preserved
and reversed.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.