unwindAggregation: Map aggregated to pre-aggregated barcodes

View source: R/u.R

unwindAggregationR Documentation

Map aggregated to pre-aggregated barcodes

Description

Map aggregated to pre-aggregated barcodes

Map aggregated to pre-aggregated barcodes

Usage

unwindAggregation(object, var_names = NULL)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

var_names

Optional. A character vector specifying the names of metadata variables to include in the output. If NULL, only the original and aggregated barcodes are returned.

Details

This function reconstructs the original barcodes before the aggregation process was applied. It retrieves the pre-aggregation state of the data and, if specified, adds selected metadata variables.

This function reconstructs the original barcodes before the aggregation process was applied. It retrieves the pre-aggregation state of the data and, if specified, adds selected metadata variables.

Value

A data.frame containing the original barcodes (barcodes_orig), the corresponding aggregated barcodes (barcodes_aggr), and any additional metadata variables specified in var_names.

A data.frame containing the original barcodes (barcodes), the corresponding aggregated barcodes (barcodes_aggr), and any additional metadata variables specified in var_names.

See Also

reduceResolutionVisiumHD for aggregating barcodes by reducing resolution in VisiumHD data sets.

reduceResolutionVisiumHD for aggregating barcodes by reducing resolution in VisiumHD data sets.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.