View source: R/addSampleMetaData.R
addSampleMetaData | R Documentation |
Function to populate slot @meta_sample of the SPATA2
object.
addSampleMetaData(object, meta_data)
object |
An object of class |
meta_data |
A named list of meta data. |
source_df
for meta slots known to the SPATAData package.
# example code
library(SPATA2)
data("example_data")
object <- example_data$object_UKF275T_diet
meta_list <- list(donor_id = "UKF275", organ = "Cerebrum", hist_class = "Glioblastoma")
# prior
getSampleMetaData(object)
# add meta data
object <- addSampleMetaData(object, meta_data = meta_list)
# afterwards
getSampleMetaData(object)
getSampleMetaData(object, as_list = FALSE) # return as data.frame
getSampleMetaData(object, na_rm = FALSE) # return all source_df slots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.