summarize_batch_reduce_visium_hd | R Documentation |
This function processes and reduces spatial transcriptomics data from a Visium HD batch. It aggregates gene expression data across specified barcodes, groups the data by a new set of barcodes, and returns a summarized matrix.
summarize_batch_reduce_visium_hd(batch)
batch |
A list containing the following elements:
|
The function performs the following steps:
Subsets the count matrix to include only the barcodes listed in the data frame.
Converts the subsetted count matrix to a data frame and merges it with the barcode data frame.
Groups the data by the new barcode identifiers and sums the gene expression counts across these groups.
Converts the summarized data back into a matrix format for further analysis.
A matrix containing the aggregated gene expression data, with genes as columns and the new barcodes as rows. The values in the matrix represent the sum of gene expression counts for each gene across the grouped barcodes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.