prep_beam_data {BEAMR}R Documentation

Prepare data for BEAM analysis

Description

Prepare data for BEAM analysis

Usage

prep_beam_data(
  main.data,
  mtx.data,
  mtx.anns = NULL,
  set.data = NULL,
  set.anns = NULL,
  n.boot = 1000,
  seed = NULL
)

Arguments

main.data

A data.frame

mtx.data

A list, each element is a matrix

mtx.anns

A list, each element is a data.frame

set.data

A data.frame with columns set.id, mtx.id, row.id

set.anns

A data frame with set.id and other columns

n.boot

Number of bootstraps

seed

Initial seed for random number generation

Value

A beam.data object, which is a list with main.data, mtx.data, mtx.anns, anns.mtch, set.data, set.anns, and boot.index

Examples

data(clinf)
data(omicdat)
data(omicann)
data(setdat)
test.beam.data <- prep_beam_data(main.data=clinf, mtx.data=omicdat,
                                 mtx.anns=omicann, set.data=setdat,
                                 set.anns=NULL, n.boot=10, seed=123)

[Package BEAMR version 1.1.0 Index]