snames: Get/Set snames

snamesR Documentation

Get/Set snames

Description

Get/Set sample names

Usage

snames(object)

## S4 method for signature 'SummarizedExperiment'
snames(object)

snames(object) <- value

## S4 replacement method for signature 'SummarizedExperiment,character'
snames(object) <- value

Arguments

object

SummarizedExperiment

value

string vector with sample names

Value

sample names vector (get) or updated eSet (set)

Examples

file <- system.file('extdata/billing19.proteingroups.txt', package = 'autonomics')
object <- read_maxquant_proteingroups(file)
head(snames(object))
head(snames(object) %<>% paste0('SAMPLE_', .))

bhagwataditya/autonomics documentation built on Dec. 1, 2024, 12:27 a.m.