Reorganize multi-modal data after import with Read10X() or scCustomize read functions. Organizes sub-lists by data modality instead of by sample.

Extract_Modality(matrix_list)

Arguments

matrix_list

list of matrices to split by modality

Value

list of lists, with one sublist per data modality. Sub-list contain 1 matrix entry per sample

Examples

if (FALSE) {
multi_mat <- Read10X(...)
new_multi_mat <- Extract_Modality(matrix_list = multi_mat)
}