aggregate_metadata: Performs aggregation on metadata contained in the association...

Description Usage Arguments Value See Also Examples

View source: R/aggregate-functions.R

Description

\lifecycle

experimental Groups metadata by grouping_keys and returns a summary of info for each group. For more details on how to use this function: vignette("Working with aggregate functions", package = "ISAnalytics")

Usage

1
2
3
4
5
aggregate_metadata(
  association_file,
  grouping_keys = c("SubjectID", "CellMarker", "Tissue", "TimePoint"),
  import_stats = TRUE
)

Arguments

association_file

The imported association file (via import_association_file)

grouping_keys

A character vector of column names to form a group

import_stats

Should Vispa2 stats files be imported and included?

Value

A tibble

See Also

Other Aggregate functions: aggregate_values_by_key()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
op <- options("ISAnalytics.widgets" = FALSE, "ISAnalytics.verbose" = FALSE)
path_AF <- system.file("extdata", "ex_association_file.tsv",
    package = "ISAnalytics"
)
root_correct <- system.file("extdata", "fs.zip", package = "ISAnalytics")
root_correct <- unzip_file_system(root_correct, "fs")
association_file <- import_association_file(path_AF, root_correct,
    dates_format = "dmy"
)
aggregated_meta <- aggregate_metadata(association_file, import_stats = FALSE)
options(op)

ISAnalytics documentation built on April 9, 2021, 6:01 p.m.