Function that allows for the renaming of the columns of the counts table in a DEprot object.

# S3 method for class 'samples'
rename(DEprot.object, metadata.column = "column.id")

Arguments

DEprot.object

An object of class DEprot.

metadata.column

A string indicating any column from the metadata table to use to rename the counts table columns. Default "column.id" (no renaming).

Value

An object of class DEprot (S4 vector). A column called old.column.id will be added to the metadata in order to keep track of the original names.

Author

Sebastian Gregoricchio

Examples

dpo_renamed <- rename.samples(DEprot.object = DEprot::test.toolbox$dpo.imp,
                              metadata.column = "sample.id")