Build matched microbiome and metabolome matrices using the explicit sample
link table stored in a microbiome_metabolome_dataset.
Arguments
- object
A
microbiome_metabolome_datasetobject.- microbiome_data
A
microbiome_datasetobject. Used whenobjectis not supplied.- metabolome_data
A
mass_datasetobject. Used whenobjectis not supplied.- sample_link
Optional sample link table used when
objectis not supplied.- microbiome_rank
Optional taxonomy rank used to aggregate microbiome abundance before extraction.
- microbiome_transform
Optional transformation method passed to
transform_counts().- metabolome_transform
Metabolome transformation method.
Examples
data("demo_crossomics", package = "microbiomedataset")
x <- create_microbiome_metabolome_dataset(
microbiome_data = demo_crossomics$microbiome_data,
metabolome_data = demo_crossomics$metabolome_data,
sample_link = demo_crossomics$sample_link
)
y <- extract_crossomics_matrix(x, microbiome_rank = "Genus")
names(y)
#> [1] "microbiome_matrix" "metabolome_matrix"
#> [3] "sample_info" "microbiome_variable_info"
#> [5] "metabolome_variable_info" "metabolome_annotation_table"
#> [7] "sample_link"
