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

merge_magma_results(ctAssoc1, ctAssoc2)

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)