sample_names: Retrieve sample names from a musica object

sample_namesR Documentation

Retrieve sample names from a musica object

Description

Sample names were included in the sample column in the variant object passed to create_musica_from_variants, or in the colnames of the count table object passed to create_musica_from_counts. 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)

Arguments

object

A musica object generated by the create_musica_from_variants or create_musica_from_counts function.

Value

A character vector of sample names

Examples

data(res)
sample_names(res)

campbio/musicatk documentation built on Dec. 25, 2024, 9:34 p.m.