tidy_metadata: Tidying up of the metadata table. Samples belonging to...

View source: R/DEGGs_core_functions.R

tidy_metadataR Documentation

Tidying up of the metadata table. Samples belonging to unwanted subgroups (if specified) will be removed as well as subgroups with less than five samples, and NAs.

Description

Tidying up of the metadata table. Samples belonging to unwanted subgroups (if specified) will be removed as well as subgroups with less than five samples, and NAs.

Usage

tidy_metadata(subgroups, metadata, subgroup_variable)

Arguments

subgroups

optional character vector indicating which subgroups are used for comparison. If not specified, all subgroups in subgroup_variable will be used.

metadata

a data frame of sample data with rownames matching the sample IDs in normalised_counts colnames.

subgroup_variable

column name in metadata that contains the subgroup identifier for each sample in normalised_counts.

Value

tidied and aligned metadata.


elisabettasciacca/DEGGs documentation built on April 27, 2024, 12:51 a.m.