merge_magma_results: Merge MAGMA results

View source: R/merge_magma_results.r

merge_magma_resultsR Documentation

Merge MAGMA results

Description

Used for instance when you want to merge results from 'Linear' and 'Top 10%' enrichment modes.

Usage

merge_magma_results(ctAssoc1, ctAssoc2)

Arguments

ctAssoc1

Output from either calculate_celltype_associations or calculate_conditional_celltype_associations.

ctAssoc2

Output from either calculate_celltype_associations or calculate_conditional_celltype_associations.

Value

List with same format as output from either calculate_celltype_associations or calculate_conditional_celltype_associations.

Examples

res <- MAGMA.Celltyping::enrichment_results
ctAssoc1 <- res[[1]]$ctAssocsLinear
ctAssoc2 <- res[[1]]$ctAssocsTop
ctAssocs <- merge_magma_results(ctAssoc1=ctAssoc1, ctAssoc2=ctAssoc2)

NathanSkene/MAGMA_Celltyping documentation built on Aug. 21, 2023, 8:55 a.m.