add_sample_metadata: Add data frame with sample metadata to an SCE object

View source: R/add_sample_metadata.R

add_sample_metadataR Documentation

Add data frame with sample metadata to an SCE object

Description

Add data frame with sample metadata to an SCE object

Usage

add_sample_metadata(sce, metadata_df)

Arguments

sce

SingleCellExperiment object to add metadata too

metadata_df

A dataframe with metadata to add to the sce. Must contain a column named 'sample_id'.

Value

SingleCellExperiment object with a 'metadata_df' added to the 'sample_metadata' slot of the metadata list


AlexsLemonade/scpcaTools documentation built on July 12, 2024, 8:34 a.m.