Learn R Programming

PALMO (version 0.1.2)

annotateMetadata: annotateMetadata Function

Description

This function allows to add user-defined sample, participant, and time column to a PALMO object in standard format.

Usage

annotateMetadata(
  data_object,
  sample_column = "Sample",
  donor_column = "PTID",
  time_column = "Time",
  group_column = NULL
)

Value

PALMO object

Arguments

data_object

Input PALMO S4 object. Contains annotation table and expression matrix or data frame. Rows represent gene/proteins column represents participant samples (same as annotation table Sample column)

sample_column

Name of Sample column in user input annotation data frame. Default 'Sample'

donor_column

Name of Donor/participant column in user input annotation data frame. Default 'PTID'

time_column

Name of Time column in user input annotation data frame. Default 'Time'

group_column

Optional. Calculate average expression by given group like 'celltype' or 'cluster'

Examples

Run this code
if (FALSE) {
annotateMetadata(data_object=palmo_obj, sample_column='Sample',
donor_column='PTID', time_column='Time')
}

Run the code above in your browser using DataLab