set_sample_annotations: Set sample level annotations for bagel object

Description Usage Arguments Value Examples

View source: R/main_class.R

Description

Set sample level annotations for bagel object

Usage

1
set_sample_annotations(bay, annotations)

Arguments

bay

Bagel object we input sample into

annotations

Sample DataFrame

Value

Sets sample_annotations slot no return

Examples

1
2
3
4
bay <- readRDS(system.file("testdata", "bagel_sbs96.rds", package = "BAGEL"))
sample_annotations <- read.table(system.file("testdata",
"sample_annotations.txt", package = "BAGEL"), sep = "\t", header=TRUE)
set_sample_annotations(bay, data.table::as.data.table(sample_annotations))

campbio/BAGEL documentation built on Oct. 6, 2020, 3:59 a.m.