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 Oct. 11, 2024, 7:19 a.m.