sample_names: Retrieve sample names from a musica or musica_result object

sample_namesR Documentation

Retrieve sample names from a musica or musica_result object

Description

Sample names were included in the sample column in the variant object passed to create_musica. This returns a unique list of samples names in the order they are inside the musica object.

Usage

sample_names(object)

## S4 method for signature 'musica'
sample_names(object)

## S4 method for signature 'musica_result'
sample_names(object)

Arguments

object

A musica object generated by the create_musica function or a musica_result object generated by a mutational discovery or prediction tool.

Value

A character vector of sample names

Examples

data(res)
sample_names(res)

campbio/musicatk documentation built on Oct. 22, 2023, 8:28 p.m.