Used for instance when you want to merge results from 'Linear' and 'Top 10%' enrichment modes.
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)