Assign samples to treatments in a strollur object
Usage
xdev_assign_treatments(
data,
table,
sample = "samples",
treatment = "treatments",
verbose = TRUE
)Arguments
- data,
a strollur object
- table,
a data.frame containing sample treatment assignments
- sample,
a string containing the name of the column in 'table' that contains the samples. Default column name is 'samples'.
- treatment,
a string containing the name of the column in 'table' that contains the treatments. Default column name is 'treatments'.
- verbose,
a boolean indicating whether or not you want progress messages. Default = TRUE.
Examples
data <- new_dataset("my_dataset")
sequence_abundance <- readRDS(strollur_example("miseq_abundance_by_sample.rds"))
xdev_assign_sequence_abundance(data, sequence_abundance)
#> Assigned 2425 sequence abundances.
#> [1] 2425
sample_assignments <- readRDS(strollur_example("miseq_sample_design.rds"))
xdev_assign_treatments(data, sample_assignments)
#> Assigned 19 samples to treatments.
#> [1] 19
