Join a new data frame of information to feature data of a SummarizedExperiment object. The data frame needs to have a column "Feature_ID". This function is usually used internally by some of the functions in the package, but can be useful.
Usage
join_rowData(object, dframe)
# S4 method for class 'SummarizedExperiment,data.frame'
join_rowData(object, dframe)
Examples
data(example_set)
new_info <- data.frame(
Feature_ID = rownames(example_set),
Feature_number = seq_len(nrow(example_set))
)
with_new_info <- join_rowData(example_set, new_info)
colnames(rowData(with_new_info))
#> [1] "Feature_ID" "Split" "Alignment" "Average_Mz"
#> [5] "Average_Rt_min" "Column" "Ion_mode" "Flag"
#> [9] "Feature_number"